Don't require shift for navigation around (tmux 3.5 breaks ctrl+alt+shift+n/p)

This commit is contained in:
Kevin MacMartin 2024-10-16 15:03:48 -04:00
parent 5320d98687
commit 10ed3ecea9
3 changed files with 19 additions and 19 deletions

View file

@ -43,9 +43,9 @@
| Key(s) | Behaviour |
|-----------------------------------------|--------------------------------------------------------------------|
| `<Alt><Shift><Up,Down,Left,Right>` | Navigate to the pane in the respective direction |
| `<Alt>N` and `<Alt>P` | Switch to the next and previous window |
| `<Ctrl><Alt>N` and `<Ctrl><Alt>P` | Swap the current window with the next and previous window |
| `<Alt><Up,Down,Left,Right>` | Navigate to the pane in the respective direction |
| `<Alt>n` and `<Alt>p` | Switch to the next and previous window |
| `<Ctrl><Alt>n` and `<Ctrl><Alt>p` | Swap the current window with the next and previous window |
| `Alt-[0-9]` | Switch to the window with the respective index |
| `Alt-?` | Start searching up |

View file

@ -110,18 +110,18 @@ bind P switch-client -p
bind N switch-client -n
#
# (without prefix) <alt><shift> + up,down,left and right to navigate between panes
bind -n M-S-Up select-pane -U
bind -n M-S-Down select-pane -D
bind -n M-S-Left select-pane -L
bind -n M-S-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
#
# (without prefix) <alt> + N and P to move to the next and previous windows
bind -n M-N next-window
bind -n M-P previous-window
bind -n M-n next-window
bind -n M-p previous-window
#
# (without prefix) <ctrl><alt> + N and P to swap with the next and previous windows
bind -n C-M-N swap-window -d -t +
bind -n C-M-P swap-window -d -t -
bind -n C-M-n swap-window -d -t +
bind -n C-M-p swap-window -d -t -
#
# (without prefix) <alt>[0-9] to switch directly to the window with the respective index
bind -n M-1 select-window -t 1

View file

@ -110,18 +110,18 @@ bind P switch-client -p
bind N switch-client -n
#
# (without prefix) <alt><shift> + up,down,left and right to navigate between panes
bind -n M-S-Up select-pane -U
bind -n M-S-Down select-pane -D
bind -n M-S-Left select-pane -L
bind -n M-S-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
#
# (without prefix) <alt> + N and P to move to the next and previous windows
bind -n M-N next-window
bind -n M-P previous-window
bind -n M-n next-window
bind -n M-p previous-window
#
# (without prefix) <ctrl><alt> + N and P to swap with the next and previous windows
bind -n C-M-N swap-window -d -t +
bind -n C-M-P swap-window -d -t -
bind -n C-M-n swap-window -d -t +
bind -n C-M-p swap-window -d -t -
#
# (without prefix) <alt>[0-9] to switch directly to the window with the respective index
bind -n M-1 select-window -t 1