1
0
Fork 0
mirror of synced 2025-01-08 06:22:13 -05:00

added new C-S-H and C-S-L mappings to move windows around

This commit is contained in:
Gregory Pakosz 2024-12-28 15:19:05 +01:00
parent 5c87d7b3d2
commit 065da52c67

View file

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