added new C-S-H and C-S-L mappings to move windows around
This commit is contained in:
parent
5c87d7b3d2
commit
065da52c67
1 changed files with 8 additions and 4 deletions
12
.tmux.conf
12
.tmux.conf
|
@ -14,7 +14,9 @@
|
|||
|
||||
set -g default-terminal "screen-256color"
|
||||
|
||||
setw -g xterm-keys on
|
||||
%if #{>=:#{version},3.2}
|
||||
set -g extended-keys on # needed by Control + Shift bindings
|
||||
%endif
|
||||
set -s escape-time 10 # faster command sequences
|
||||
set -sg repeat-time 600 # increase repeat timeout
|
||||
set -s focus-events on
|
||||
|
@ -98,9 +100,11 @@ bind -r L resize-pane -R 2
|
|||
# window navigation
|
||||
unbind n
|
||||
unbind p
|
||||
bind -r C-h previous-window # select previous window
|
||||
bind -r C-l next-window # select next window
|
||||
bind Tab last-window # move to last active window
|
||||
bind -r C-h previous-window # select previous window
|
||||
bind -r C-l next-window # select next window
|
||||
bind -r C-S-H swap-window -t -1 \; select-window -t -1 # swap current window with the previous one
|
||||
bind -r C-S-L swap-window -t +1 \; select-window -t +1 # swap current window with the next one
|
||||
bind Tab last-window # move to last active window
|
||||
|
||||
# toggle mouse
|
||||
bind m run "cut -c3- '#{TMUX_CONF}' | sh -s _toggle_mouse"
|
||||
|
|
Loading…
Reference in a new issue