tmux-zoom / Zoom (Maximize) your panes - Printable Version +- nixers (https://nixers.net) +-- Forum: Operating Systems & Administration (https://nixers.net/Forum-Operating-Systems-Administration) +--- Forum: GNU/Linux (https://nixers.net/Forum-GNU-Linux) +--- Thread: tmux-zoom / Zoom (Maximize) your panes (/Thread-tmux-zoom-Zoom-Maximize-your-panes) |
tmux-zoom / Zoom (Maximize) your panes - eye - 24-02-2013 Hi everyone Just wanted to share something I came across today. Those of you using tmux daily may or may not find this useful. So I had for a long time bound this command for tmux to get a pane zoomed out (maximized): Code: bind C-z run "if [[ $(tmux list-window) =~ z00m ]]; then tmux last-window; tmux swap-pane -s z00m.0;tmux kill-window -t z00m; else tmux new-window -d -n z00m 'clear && echo TMUX ZOOM && read'; tmux swap-pane -s z00m.0; tmux select-window -t z00m;fi" This worked more or less fine (you couldn't change window during the maximizing process, and you could only zoom out one pane at the time). Thanks to gotbletu YouTube I came across tmux-zoom, which works way better than that oneliner... github - jipumarino Even zooming out more than one pane is working fine. RE: tmux-zoom / Zoom (Maximize) your panes - Dritz - 25-02-2013 gotbletu is great isn't he? I've had 'figure out how to use tmux' on a to do list on my wall since April of last year. I suppose I should really give it a shot now that you've mentioned it. (it's crazy how I don't really look at my walls) |