Use <Alt>/ (without prefix) to search, use <Alt>) and <Alt>( (without prefix) to switch sessions, update the readme and make the readme a bit more consistent

This commit is contained in:
Kevin MacMartin 2025-01-07 21:27:41 -05:00
parent 93b691d152
commit e3117c19ea
3 changed files with 15 additions and 6 deletions

View file

@ -47,8 +47,9 @@
| `<Ctrl><Alt><Up,Down,Left,Right>` | Swap the current pane with 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 |
| `<Alt>[0-9]` | Switch to the window with the respective index |
| `<Alt>)` and `<Alt>(` | Switch to the next and previous session |
| `<Alt>/` | Start searching up |
### Copy Mode

View file

@ -141,8 +141,12 @@ bind -n M-8 select-window -t 8
bind -n M-9 select-window -t 9
bind -n M-0 select-window -t 10
#
# (without prefix) <alt>? to start searching
bind -n M-? copy-mode \; send-key ?
# (without prefix) <alt> + ) and ( to swap to the next and previous sessions
bind -n M-) switch-client -n
bind -n M-( switch-client -p
#
# (without prefix) <alt>/ to start searching
bind -n M-/ copy-mode \; send-key ?
#
# (copy mode) v,y and escape to select, copy and cancel
bind -Tcopy-mode-vi v send -X begin-selection

View file

@ -141,8 +141,12 @@ bind -n M-8 select-window -t 8
bind -n M-9 select-window -t 9
bind -n M-0 select-window -t 10
#
# (without prefix) <alt>? to start searching
bind -n M-? copy-mode \; send-key ?
# (without prefix) <alt> + ) and ( to swap to the next and previous sessions
bind -n M-) switch-client -n
bind -n M-( switch-client -p
#
# (without prefix) <alt>/ to start searching
bind -n M-/ copy-mode \; send-key ?
#
# (copy mode) v,y and escape to select, copy and cancel
bind -Tcopy-mode-vi v send -X begin-selection