From ca8c64dd30a1478d99443f9ff601fed38d6508a3 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 18 Mar 2021 22:29:17 -0400 Subject: [PATCH] Add a binding for S to swap the active pane with the marked one --- README.md | 1 + tmux.normal.conf | 3 +++ tmux.powerline.conf | 3 +++ 3 files changed, 7 insertions(+) diff --git a/README.md b/README.md index a4a2b7a..568866b 100644 --- a/README.md +++ b/README.md @@ -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 | | `` and `` | Move to the previously selected pane and window respectively | diff --git a/tmux.normal.conf b/tmux.normal.conf index 8a624c1..53e1570 100644 --- a/tmux.normal.conf +++ b/tmux.normal.conf @@ -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 '%%'" # diff --git a/tmux.powerline.conf b/tmux.powerline.conf index 53ab8cf..52576d7 100644 --- a/tmux.powerline.conf +++ b/tmux.powerline.conf @@ -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 '%%'" #