Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: compilation mode (a la emacs) #22

Open
AmerM137 opened this issue Jan 6, 2025 · 0 comments
Open

Feature request: compilation mode (a la emacs) #22

AmerM137 opened this issue Jan 6, 2025 · 0 comments

Comments

@AmerM137
Copy link

AmerM137 commented Jan 6, 2025

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.

@AmerM137 AmerM137 changed the title Feature request:: compilation mode (a la emacs) Feature request: compilation mode (a la emacs) Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant