From c4c3ede83e7db0f747dcc26adcabc4f034a3025c Mon Sep 17 00:00:00 2001 From: Ingo Heimbach Date: Thu, 12 Dec 2019 14:41:03 +0100 Subject: [PATCH] Restore the old `swap-window` behavior (`<` and `>` key bindings) Tmux changed the behavior of `swap-window` to keep the focus instead of following the swapped window (s. [tmux issue 1879](https://github.com/tmux/tmux/issues/1879)). This commit adds the `-d` switch to `swap-window` bindings to restore the old behavior. --- pain_control.tmux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pain_control.tmux b/pain_control.tmux index 2c08e00..fd48409 100755 --- a/pain_control.tmux +++ b/pain_control.tmux @@ -27,8 +27,8 @@ pane_navigation_bindings() { } window_move_bindings() { - tmux bind-key -r "<" swap-window -t -1 - tmux bind-key -r ">" swap-window -t +1 + tmux bind-key -r "<" swap-window -d -t -1 + tmux bind-key -r ">" swap-window -d -t +1 } pane_resizing_bindings() {