-
Notifications
You must be signed in to change notification settings - Fork 407
latexmk callback commands (e.g. success_cmd) not respected #1237
Description
I have set success_cmd in my global ~/.latexmkrc:
$success_cmd = 'my shell command';This works as expected when running latexmk outside of vimtex. However, vimtex overrides success_cmd, and my custom command never runs.
The *_cmd variables are discussed in the vimtex docs and there is even an example using xdotool. There is a note that says:
If you define these options similar to the above xdotool trick and still want to enable the vimtex callbacks, then one must include a semicolon at the end of the cmd strings so that vimtex may append safely to the options.
I have tried this, i.e. in ~/.latexmkrc:
$success_cmd = 'my shell command;';But it still does not work. Indeed, I can see that in vimtex/autoload/vimtex/compiler/latexmk.vim there is no logic for appending to the command strings.
Any thoughts? Thanks for building vimtex!