vim-dispatch icon indicating copy to clipboard operation
vim-dispatch copied to clipboard

feature request: re-zoom tmux pane when dispatch completes if it was zoomed at the start

Open devth opened this issue 10 years ago • 5 comments

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

devth avatar Aug 05 '15 17:08 devth

I guess the best way to put it is "you tell me." I am open to the addition if a robust solution is possible.

tpope avatar Aug 07 '15 04:08 tpope

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.

devth avatar Aug 11 '15 15:08 devth

Yeah I won't be implementing it until I need it personally.

tpope avatar Aug 12 '15 17:08 tpope

Understandable. Yesterday I dove into the src a bit. We'll see if the pain gets bad enough.

devth avatar Aug 12 '15 17:08 devth

any updates on this one?

stfl avatar Oct 13 '17 10:10 stfl