Add a binding for S to swap the active pane with the marked one

This commit is contained in:
Kevin MacMartin 2021-03-18 22:29:17 -04:00
parent 9853d7af9a
commit ca8c64dd30
3 changed files with 7 additions and 0 deletions

View file

@ -25,6 +25,7 @@
| `[` and `]` | Split the window vertically and horizontally respectively |
| `-` and `=` | Select an even layout vertically and horizontally respectively |
| `_` and `+` | Rotate the window counter-clockwise and clockwise respectively |
| `S` | Run the `swap-pane` command to swap the current pane with the marked one |
| `.` and `,` | Move and swap the current window with the provided window number respectively |
| `$` and `#` | Rename the current session and window with the provided name respectively |
| `<Space>` and `<Ctrl><Space>` | Move to the previously selected pane and window respectively |

View file

@ -68,6 +68,9 @@ bind = select-layout even-horizontal
bind -r _ rotate-window -U
bind -r + rotate-window -D
#
# S to run the swap-pane command
bind S swap-pane
#
# . and , to move and swap the current window respectively (. is set by default)
bind , command-prompt "swap-window -t '%%'"
#

View file

@ -68,6 +68,9 @@ bind = select-layout even-horizontal
bind -r _ rotate-window -U
bind -r + rotate-window -D
#
# S to run the swap-pane command
bind S swap-pane
#
# . and , to move and swap the current window respectively (. is set by default)
bind , command-prompt "swap-window -t '%%'"
#