It would be nice if, in mouse mode, one could drag window titles to reorder/renumber them (like tabs in a browser).
It would be nice to leave a comment like 'won't do this' or something instead of just closing with no explanation at all.
This can be achieved by adding the following lines to the tmux configuration file (~/.tmux.config)
# Drag windows on the status bar
bind-key -n MouseDrag1Status swap-window -t=
For those who find this issue in a Google search, you need to add a -d flag to swap-window now (as of version 3.0 I believe). This prevents the window you are swapping from being selected. If you don't do this, you will get tons of stuttering behavior when dragging windows.
bind-key -n MouseDrag1Status swap-window -d -t=
(Thanks to @nicm for pointing this out)
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.
Most helpful comment
This can be achieved by adding the following lines to the tmux configuration file (~/.tmux.config)