From 418cb5b9c5cff083c7b33b37399a3caec331dc06 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sat, 10 Feb 2024 14:19:36 +0100 Subject: [PATCH] tmux: small tweak to navigation commands --- config/tmux/tmux.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index bd7d248..027a81f 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -4,7 +4,7 @@ set -g prefix C-space # Key bindings # bind C-space send-prefix -bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" \; display "RELOADED" +bind R source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"\; display "RELOADED" # Window/pane management (new windows/panes use the path in current pane) bind c new-window -c '#{pane_current_path}' @@ -12,12 +12,14 @@ bind | split-window -h -c '#{pane_current_path}' bind - split-window -v -c '#{pane_current_path}' bind x kill-pane bind X kill-window -bind n command-prompt 'rename-window %%' -bind N command-prompt 'rename-session %%' +bind W command-prompt 'rename-window %%' +bind S command-prompt 'rename-session %%' +bind s set synchronize-panes # Move around -bind . next-window -bind , previous-window +bind ^ last-window +bind -r C-n next-window +bind -r C-p previous-window bind h select-pane -L bind j select-pane -D bind k select-pane -U