Skip to content

Commit 642c14d

Browse files
author
Bruno Sutic
committed
Add swap window key bindings
Closes #1
1 parent 9d92317 commit 642c14d

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- update readme to reflect github organization change
55
- update readme - more precise binding definition
66
- switch to tab indentation
7+
- add swap-window bindings
78

89
### v0.0.2, 2014-06-03
910
- split-window bindings "|" and "-" now create a new pane with the same path as

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ Newly created pane always has the same path as the original pane.
6060

6161
<br/><br/><br/><br/><br/>
6262

63+
**Swapping windows**
64+
65+
- `prefix + alt + h` - moves current window one position to the left
66+
- `prefix + alt + l` - moves current window one position to the right
67+
6368
### Installation with [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm) (recommended)
6469

6570
Add plugin to the list of TPM plugins in `.tmux.conf`:

pain_control.tmux

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ pane_navigation_bindings() {
2626
tmux bind-key C-l select-pane -R
2727
}
2828

29+
window_move_bindings() {
30+
tmux bind-key -r M-h swap-window -t -1
31+
tmux bind-key -r M-l swap-window -t +1
32+
}
33+
2934
pane_resizing_bindings() {
3035
local pane_resize=$(get_tmux_option "@pane_resize" "$default_pane_resize")
3136
tmux bind-key -r H resize-pane -L "$pane_resize"

0 commit comments

Comments
 (0)