Add zooming capability to tmux.conf

vimbundler
nirenjan 2013-01-16 15:03:39 -08:00
parent 80f475256d
commit 61002f9564
1 changed files with 12 additions and 0 deletions

View File

@ -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