vim-dispatch
vim-dispatch copied to clipboard
feature request: re-zoom tmux pane when dispatch completes if it was zoomed at the start
This may be a long shot, and it's tmux-specific: I often zoom the tmux pane that vim lives in when I want to focus on writing code. I still need to dispatch to run builds/tests, but when it finishes it leaves me in a non-zoomed state. Could it detect zoom state at the start and re-establish that state at finish?
Info on how to detect zoom state: http://unix.stackexchange.com/questions/183370/tmux-identify-if-pane-is-zoomed-and-active
I guess the best way to put it is "you tell me." I am open to the addition if a robust solution is possible.
tmux list-panes -F '#F' | grep -q Z
Returns 0 if the current pane is zoomed and return error 1 in case it isn't.
Are you expecting a PR? I guess that would involve me actually learning vimscript.
Yeah I won't be implementing it until I need it personally.
Understandable. Yesterday I dove into the src a bit. We'll see if the pain gets bad enough.
any updates on this one?