Skip to content

Allow running arbitrary commands in lieu of choosing a compiler backend #1898

@ashpil

Description

@ashpil

Is your feature request related to a problem? Please describe it.
I would like to use tectonic as my backend, but it does not natively support a continuous mode, so it would be nice if I could instruct vimtex to use a manual workaround.

Describe the solution you'd like
Using a wrapper like watchexec, one can have tectonic recompile a file every time it is changed, as described here: watchexec --exts tex tectonic file.tex.
If instead of explicitly instructing vimtex to use a given backend (vimtex_compiler_x) one could specify an arbitrary command to be run at the compile/livereload phase (vimtex_compiler_custom: tectonic [file] or vimtex_compiler_custom_live: watchexec --exts tex tectonic [file]), this would open vimtex up to a lot more customization at a very low cost, and allow users to use more backends without extra work for the maintainers.

Describe alternatives you've considered
I suppose you could just build some sort of watchexec feature into vimtex itself, but that doesn't seem nearly as appealing.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions