Fix tmux shift and control window navigation.

This commit is contained in:
Shawn Anderson 2022-11-24 17:50:35 -08:00
parent 35a7315ffc
commit be0e96469b
1 changed files with 4 additions and 10 deletions

View File

@ -10,17 +10,11 @@ unbind ^C
bind c new-window -c '#{pane_current_path}'
#urxvt tab like window switching (-n: no prior escape seq)
bind -n S-down new-window
bind -n S-left prev
bind -n S-right next
bind -n C-left swap-window -t -1
bind -n C-right swap-window -t +1
bind -n C-left prev
bind -n C-right next
bind -n S-Left { swap-window -t -1; previous-window }
bind -n S-Right { swap-window -t +1; next-window }
# zoom a pane into a new window for temporary work
# unbind +
bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom
# unbind -
bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom
#detach ^D d
unbind ^D
bind ^D detach