From 183f0ea978b05e9d7d11dd99010ff2889c2310da Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Fri, 23 Aug 2024 16:04:45 +0200 Subject: [PATCH] fix(tmux): change navigation bindings --- .config/tmux/tmux.conf | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 61c5728..6947e69 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -173,7 +173,7 @@ unbind C-b bind-key C-z send-prefix # Reload config -bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "~/.config/tmux/tmux.conf reloaded" +bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "~/.config/tmux/tmux.conf reloaded" # Use Ctrl to select unbind -T root MouseDrag1Pane @@ -185,9 +185,19 @@ bind-key -T copy-mode-vi C-MouseDrag1Pane select-pane \; send-keys -X begi unbind -T copy-mode-vi MouseDragEnd1Pane # More vim-like selection -bind-key -T copy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode. -bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode. -bind-key -T copy-mode-vi 'y' send -X copy-selection # Yank selection in copy mode. +bind-key -T copy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode. +bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode. +bind-key -T copy-mode-vi 'y' send -X copy-selection # Yank selection in copy mode. + +bind-key -r k select-pane -U +bind-key -r j select-pane -D +bind-key -r h select-pane -L +bind-key -r l select-pane -R +bind-key -r C-k resize-pane -U +bind-key -r C-j resize-pane -D +bind-key -r C-h resize-pane -L +bind-key -r C-l resize-pane -R +bind-key o last-window # Plugins set -g @plugin 'tmux-plugins/tpm'