-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Emacs has a great feature called compilation mode -> https://www.gnu.org/software/emacs/manual/html_node/emacs/Compilation-Mode.html
In essence, it's a very simple feature. It gives the user a prompt so he can key in whatever build command he wants. Very useful if you have a one-off build command you want to run or you're just testing things with a scratch script and don't want to create a command for it in the makefile.
The flexibility is nice too because it allows for a different build system entirely. For example, sometimes I like to use this for running different python tasks:
https://github.com/go-task/task
Since the command is whatever I type in, I can use task instead of make or meson. This way the plugin is no longer restricted to a few build systems, any program or custom command can be used to build the project.
References for how other editors do this. Textadept's implementation seems very straightforward.
https://orbitalquark.github.io/textadept/manual.html#compile-run-build-and-test
Prior to running a compile, run, build, or test command, Textadept will prompt you with either:
A command it thinks is appropriate for the current file or project.
A command you have specified for this current context.
A command you have previously run in this context.
A blank command for you to fill in.
A plugin I use when working in neovim:
https://github.com/ej-shafran/compile-mode.nvim
Note: Having the ability to jump to errors is nice too, but I am not sure if it's in the works for this plugin.