Hi

Can you drop the option so this is the default behaviour and send me a unified 
diff by email?




-------- Original message --------
From: Maykel Moya <mm...@mmoya.org> 
Date: 16/11/2013  14:17  (GMT+01:00) 
To: tmux-users@lists.sourceforge.net 
Subject: Restore zoom state 
 
Hello

I just began to use the recently added zoom feature and came across an
anoying thing.

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
invisible.

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
pane A.

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[1] but I'm not sure if PRs are being
looked at.

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.

Kind regards,
maykel

[1] https://github.com/ThomasAdam/tmux/pull/5/files

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to