feat(tmux): Ctrl+Alt+arrow moves between panes without the prefix, copy-mode too (macOS: Ctrl+Cmd+arrow via iTerm2 escape-sequence mapping); CHANGELOG
This commit is contained in:
1 parent
4cbc54511e
commit
5b6d2f2232
2 files changed
+12
No files matched your search
@@ -151,6 +151,17 @@ bind -T copy-mode-vi C-u select-pane -U
|
||||
bind -T copy-mode-vi C-h select-pane -L
|
||||
bind -T copy-mode-vi C-j select-pane -D
|
||||
bind -T copy-mode-vi C-k select-pane -R
|
||||
# Ctrl+Alt+arrow too (no prefix), straight to the pane, no vim pass-through.
|
||||
# Native on Linux/PC; on macOS map Ctrl+Cmd+arrow in iTerm2 to the xterm
|
||||
# Ctrl+Alt+arrow sequences (Send Escape Sequence `[1;7A` `[1;7B` `[1;7D` `[1;7C`).
|
||||
bind -n C-M-Up select-pane -U
|
||||
bind -n C-M-Down select-pane -D
|
||||
bind -n C-M-Left select-pane -L
|
||||
bind -n C-M-Right select-pane -R
|
||||
bind -T copy-mode-vi C-M-Up select-pane -U
|
||||
bind -T copy-mode-vi C-M-Down select-pane -D
|
||||
bind -T copy-mode-vi C-M-Left select-pane -L
|
||||
bind -T copy-mode-vi C-M-Right select-pane -R
|
||||
|
||||
bind Escape copy-mode # bind vi-like 'normal' mode
|
||||
bind -Tcopy-mode-vi 'v' send -X begin-selection # bind vi-like visual mode
|
||||
|
||||
Reference in new issue
Block a user