I just began to use the recently added zoom feature and came across an
You have panes A and B. A is zoomed, if you switch to pane B, then A is
forcibly unzoomed. This is expected, of course, otherwise B would remain
If you switch back to pane A I expect to get A zoomed again because it
wasn't me who unzoomed it.
First I started to play with these binding (hjkl and HJKL):
bind h select-pane -L
bind j select-pane -D
bind H select-pane -L \; resize-pane -Z
bind J select-pane -D \; resize-pane -Z
and yes, they worked but I had to mentally keep track of the previous
pane state and use the corresponding key combination when returning to
Find attached a patch implementing zoom restoration. The feature is
controlled by window setting restore-zoom, which is 0 by default so the
current behaviour is not altered.
I first submitted a PR to github but I'm not sure if PRs are being
Would appreciate some feedback on this, specially if you consider that
restoring zoom should (not) be the expected behaviour.
Needless to say how cool tmux is.