We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ef5b53 commit a2895b1Copy full SHA for a2895b1
pain_control.tmux
@@ -27,8 +27,15 @@ pane_navigation_bindings() {
27
}
28
29
window_move_bindings() {
30
- tmux bind-key -r "<" swap-window -d -t -1
31
- tmux bind-key -r ">" swap-window -d -t +1
+ # V3.0 changed the way tmux handles focus in swap-window. -d is now
+ # required to keep focus on the current window.
32
+ if [ "$(tmux -V | cut -d' ' -f2)" ">" 3.0 ]; then
33
+ tmux bind-key -r "<" swap-window -d -t -1
34
+ tmux bind-key -r ">" swap-window -d -t +1
35
+ else
36
+ tmux bind-key -r "<" swap-window -t -1
37
+ tmux bind-key -r ">" swap-window -t +1
38
+ fi
39
40
41
pane_resizing_bindings() {
0 commit comments