From 9157eb062f7e8c0ca51eca55d56c018eb4c09a3b Mon Sep 17 00:00:00 2001 From: David Morgan Date: Tue, 19 Jan 2021 12:07:31 +0000 Subject: [PATCH] Improve tmux pane navigation --- .tmux.conf | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 158b6ba..2b675e2 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -9,12 +9,25 @@ set-option -g default-terminal "screen-256color" set -g bell-action current -bind-key . source-file ~/.tmux.conf +bind-key . source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" + +bind-key -n M-h select-pane -L +bind-key -n M-j select-pane -D +bind-key -n M-k select-pane -U +bind-key -n M-l select-pane -R + +# Fine adjustment (1 or 2 cursor cells per bump) +bind -n S-Left resize-pane -L 2 +bind -n S-Right resize-pane -R 2 +bind -n S-Down resize-pane -D 1 +bind -n S-Up resize-pane -U 1 + +# Coarse adjustment (5 or 10 cursor cells per bump) +bind -n C-Left resize-pane -L 10 +bind -n C-Right resize-pane -R 10 +bind -n C-Down resize-pane -D 5 +bind -n C-Up resize-pane -U 5 -bind-key -n C-h select-pane -L -bind-key -n C-j select-pane -D -bind-key -n C-k select-pane -U -bind-key -n C-l select-pane -R set -g status-bg black set -g status-fg white