feat(tmux): Alt+Left/Right switch windows without the prefix (macOS: Cmd+arrow via iTerm2 escape-sequence mapping); CHANGELOG
This commit is contained in:
1 parent
e7d870905f
commit
6ba4e55e86
2 files changed
+7
No files matched your search
@@ -128,6 +128,12 @@ bind-key -r C-j resize-pane -D 5
|
||||
bind-key -r C-k resize-pane -R 5
|
||||
bind-key -r C-n next-window \; set status on
|
||||
bind-key -r C-p previous-window \; set status on
|
||||
# Alt+arrow too (no prefix): native on Linux/PC. On macOS iTerm2 sends Esc b/f
|
||||
# for Option+arrow, so map Cmd+arrow there to the xterm Alt+arrow sequences
|
||||
# (Send Escape Sequence `[1;3D` / `[1;3C`); it then shadows iTerm2's own
|
||||
# Cmd+arrow tab switching in that profile (Cmd+Shift+[ ] still work).
|
||||
bind-key -n M-Left previous-window \; set status on
|
||||
bind-key -n M-Right next-window \; set status on
|
||||
|
||||
# Moving across panes (and vim), no prefix: ctrl + u/h/j/k laid out as arrows
|
||||
# (u up, h left, j down, k right). These keys sit at the same place on AZERTY
|
||||
|
||||
Reference in new issue
Block a user