diff --git a/tmux.conf b/tmux.conf index 1e86c9e..3726462 100644 --- a/tmux.conf +++ b/tmux.conf @@ -119,6 +119,18 @@ bind-key -r l resize-pane -R # Allow the escape key to quit the command mode bind-key -ct vi-edit Escape cancel +# Pane zooming +# Unbind the - key first +unbind-key - +bind-key + \ + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \;\ + swap-pane -s tmux-zoom.1 \;\ + select-window -t tmux-zoom +bind-key - \ + last-window \;\ + swap-pane -s tmux-zoom.1 \;\ + kill-window -t tmux-zoom + # Terminator style pane switching # OSX Terminal.app, enable Use option as meta key # and delete the key bindings for Option Cursor left & Option Cursor right