Consolidate tmux window and pane switching

This commit is contained in:
Martin Pander
2026-02-15 20:18:30 +01:00
parent 0012b07304
commit 4049d3981b
2 changed files with 16 additions and 16 deletions

View File

@@ -23,11 +23,11 @@ in
unbind S
bind S command-prompt "switch -t %1"
bind-key -n M-K switch-client -p
bind-key -n M-J switch-client -n
bind-key -n M-K if -F "#{pane_at_top}" "switch-client -p" "select-pane -U"
bind-key -n M-J if -F "#{pane_at_bottom}" "switch-client -n" "select-pane -D"
bind-key -n M-L next-window
bind-key -n M-H previous-window
bind-key -n M-L if -F "#{pane_at_right}" "next-window" "select-pane -R"
bind-key -n M-H if -F "#{pane_at_left}" "previous-window" "select-pane -L"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"