-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed behavior of swap-window #1879
Comments
The behaviour was fixed to what was intended (and what swap-pane does). Use -d to keep the current window the same. |
@nicm, though that seems reasonable, passing |
I think the change was wrong, please try this: x.diff.txt |
@nicm, thank you for the suggestion and proposed patch. I will give it a shot here when I have a moment. |
@nicm, indeed that patch solves the problem perfectly. It causes Would you like me to PR that change, or would you rather handle the patch yourself? |
Applied now, thanks! |
Tmux changed the behavior of `swap-window` to keep the focus instead of following the swapped window (s. [tmux issue 1879](tmux/tmux#1879)). This commit adds the `-d` switch to `swap-window` bindings to restore the old behavior.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue description
With a build of
tmux
from git-master,swap-window
has changed its behavior from the last major release. Namely, instead of the window being swapped and the focus following the window that was originall focused, the windows are swapped and focus changes to the window it was swapped with.edit for clarity: suppose I have two windows in this state:
[A]B
([]
denoting focus). Previously, I would doswap-window -t +1
which would result inB[A]
(A and B are swapped and A remains focused). When doing so now, the result is[B]A
(this windows are swapped, but the focus stays in the first position, so it is no longer on A). Passing-d
in addition does not seem to change the behavior at all.I use tmux's windows similar to tabs, so being able to move a window multiple times is a common use-case for me. Now, I would either need to know how far I want to move the window right away, or I need to swap windows, switch focus, and repeat till I have the windows in the order I would like. If I am going about this the WrongWay™, and there is a preferred method for accomplishing this, I would be happy to switch.
Required information
tmux-git
from the AURMinimal configuration example:
I am not able to post the logs at the moment (as I have work open in
tmux
for$DAYJOB
, but I will try to remember to do this when I get home and can provide them:The text was updated successfully, but these errors were encountered: