aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2025-01-19 22:47:55 +0000
committerBlake Romero <blake@blkrom.com>2025-01-19 22:47:55 +0000
commita3409d7bf659875c9c7855e0247d3c29a257dfa7 (patch)
tree8102706e6643e7994e5bacb852ce0cdee353204b
parent110967e58ed4dfd4d861312c29f22938b03922a9 (diff)
Update tmux keybindings
-rw-r--r--dot-config/tmux/tmux.conf22
1 files changed, 14 insertions, 8 deletions
diff --git a/dot-config/tmux/tmux.conf b/dot-config/tmux/tmux.conf
index 23f4e89..df4ee87 100644
--- a/dot-config/tmux/tmux.conf
+++ b/dot-config/tmux/tmux.conf
@@ -30,7 +30,7 @@ set -g display-panes-time 2000
set -g display-time 2000
# Reload config
-bind r source-file ~/.config/tmux/tmux.conf\; display "Tmux reloaded"
+bind g source-file ~/.config/tmux/tmux.conf\; display "Tmux reloaded"
# Command prompt
bind Enter command-prompt
@@ -48,23 +48,22 @@ bind m resize-pane -Z
bind y copy-mode
# Switch to next window
-bind Tab next-window
+bind C-w next-window
# Rename session
-bind S command-prompt "rename-session %%"
+bind R command-prompt "rename-session %%"
# Rename window
-bind W command-prompt "rename-window %%"
+bind r command-prompt "rename-window %%"
# Close session
-bind Escape confirm-before -p "Kill session '#S'? (y/n)" kill-session
+bind C-q confirm-before -p "Kill session '#S'? (y/n)" kill-session
# Close window
-bind q confirm-before -p "Kill window '#W'? (y/n)" kill-window
+bind C-x confirm-before -p "Kill window '#W'? (y/n)" kill-window
# Close pane
bind BSpace kill-pane
-bind 0 kill-pane
# Split pane
bind - split-window -v
@@ -83,4 +82,11 @@ bind [ run "if [ #{pane_at_left} -eq 0 ]; then tmux swap-pane -s '{left-of}'; fi
bind ] run "if [ #{pane_at_right} -eq 0 ]; then tmux swap-pane -s '{right-of}'; fi"
# Detach session
-bind _ detach
+bind C-d detach
+
+# Choose session/window
+bind s choose-session
+bind w choose-window
+
+# Next session
+bind C-s switch-client -n