about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-01-19 12:07:31 +0000
committerDavid Morgan <djm_uk@protonmail.com>2021-01-19 12:07:31 +0000
commit9157eb062f7e8c0ca51eca55d56c018eb4c09a3b (patch)
tree92c1e46e2f4d1c56d54f9aec91770f856d349eef
parent005658dcc88282a5acb78da2006063af54b780dd (diff)
downloaddotfiles-9157eb062f7e8c0ca51eca55d56c018eb4c09a3b.tar.gz
Improve tmux pane navigation
-rw-r--r--.tmux.conf23
1 files 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