3 ms·
GUI apps should be multi-threaded. But, process handling is OS task. Unix already provides facility for backgrounding of processes. :!long-process&
by njharman 13y ago
GUI apps should be multi-threaded. But, process handling is OS task. Unix already provides facility for backgrounding of processes.
:!long-process&
- seren 13y agoI think there are some use cases, like getting the syntax highlighting being processed by vim in another thread, that would help the responsiveness (or feeling of) if this was supported natively.
- tarruda 13y agoI agree, but how do you get notified that 'long-process' finished running? Even if you poll using CursorHold-like hacks the user still needs to type something.
- dllthomas 13y ago:!{ long-process ; notify-send "done" ; } &
- tarruda 13y agoAll that does is display a popup on the desktop, it does nothing to notify/callback to the vimscript code that started the process
- dllthomas 13y agoYes. For many things that's what you want. I wasn't trying to say "this will meet all needs and make this entire discussion irrelevant"; I was posting lest anyone find it interesting/useful.