skywind3000 / asyncrun.vim

:rocket: Run Async Shell Commands in Vim 8.0 / NeoVim and Output to the Quickfix Window !!
https://www.vim.org/scripts/script.php?script_id=5431
MIT License
1.84k stars 109 forks source link

Terminal output doesn't populate quickfix #203

Open ychin opened 3 years ago

ychin commented 3 years ago

Currently, asyncrun allows configuration to use the terminal instead of quickfix to display the output of the job. However, it does not allow using terminal to run a job, and outputting results to quickfix.

Reasons as to why that would be useful: Quickfix is Vim's default way of populating a list of errors / jumps that you can navigate through. Running a job like make in the terminal is cool, but what would actually make it useful is to populate quickfix at the end so you can quickly browse compilation / run errors. And the reason why using terminal is better than the default async job is that sometimes some tools work better if there is an interactive terminal (e.g. if they require a password), and you can Ctrl-C out of stuck jobs.

Just wondering if there are thoughts on adding quickfix support to terminal jobs? I actually have been running some local scripts to use the terminal to run make and other jobs and output the results to quickfix and was contemplating release as a plugin, but then I realized asyncrun could already run jobs in terminal so thought it would be better if a commonly used plugin could do that instead.

symbolix commented 3 months ago

Hi, I'm after this functionality as well. It would be amazing to get the terminal run and also populate the quickfix buffer.

I don't know an elegant way to navigate the errors after a terminal build. It would be only possible through the qf buffer.