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

Job queues #269

Open meijieru opened 1 year ago

meijieru commented 1 year ago

A use case is that fugitive will use initiate a job (eg Gwrite), while writing this file also trigger other autocmds which launches other jobs. Currently, we can run only one command each time. So it raises ERROR: background job is still running. Could we have a flag for adding jobs into a queue and executing it later?

skywind3000 commented 1 year ago
:AsyncRun job1 && job2 && job3
meijieru commented 1 year ago

They are triggered through different positions. So it requires modifying the fugitive sources and coupling things together.