Propose a setting to run tmux foreground jobs in a separate window when possible#209
Propose a setting to run tmux foreground jobs in a separate window when possible#209tpope merged 1 commit intotpope:masterfrom
Conversation
|
I rebased this PR on master now that #210 has landed, in order to use the new has_callback. |
|
So if height is zero and Edit: |
|
In all my tests, |
|
Oooh how about |
|
Nice ;-) I updated. |
|
|
When the requested height for a tmux split is 0 or less and that the spawned job will be able to call back, spawn the foreground job in a new background window, just as if it were a background job If no callback mechanism is available, use a split of -height lines
|
Ok, done. |
Propose to extend the meaningful settings for the height of the tmux split for foreground jobs with 0, to state that it should be run in a different (background) window when the GUI subsystem is enabled (so that the job will be able to call back when it finishes).
With this setting, one can obtain the same behaviour with tmux than with screen.
I find this especially convenient whenever I use compilers which takes a long time to start and output eventual messages in one go at the end.
This PR consists of one real commit, but it’s based on #208 since it modifies related lines.
I’d be happy to reorganise (and document) all this if there’s a better way.
Edit: changed the commit number to a reference to the PR.