From 065da52c67c2c9021957f8a3164003695740418d Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sat, 28 Dec 2024 15:19:05 +0100 Subject: [PATCH] added new C-S-H and C-S-L mappings to move windows around --- .tmux.conf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index f6c385f..a895dee 100644 --- a/.tmux.conf +++ b/.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"