skywind3000/asyncrun.vim

Job queues

meijieru opened this issue · 2 comments

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?

:AsyncRun job1 && job2 && job3

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