In screen, I can just type C-a :number 0 to move a window to the top of the window list and push all the other windows down one. What's the equivalent command sequence for tmux? I looked at the man page, but I'm finding it confusing on this point.
|
|
||||
|
|
migrated from stackoverflow.com Oct 6 '11 at 10:36
|
The "Prefix :" (that is "Ctrl-B :" by default) brings you to the tmux-command prompt. There you enter:
to let window number 3 and window number 1 swap their positions. To move the current window to the top, do:
(if base-index is 0, as it is by default). You can bind that command to a key (T for "top" for example) by adding the following to your
|
|||||
|
|
The tmux equivalent to |
|||||||||||||||||||||
|
|
Adding to Gareth's answer, you can use the following key bindings
Pressing Ctrl+Shift+Left (will move the current window to the left. Similarly right. No need to use the modifier (C-b). |
|||
|
|
|
Using swap-window to move to any id: [closest to screen's :number]
[m for move --> hit prefix-m and enter say 3 . .to renumber window to 3] |
|||||
|
|
You can implement an equivalent to
|
|||||
|
|
I think you want to bind a new key combination to the 'choose-window' command. I know you said you've already read the man page, but you should refer back to it. you need to modify your ~/.tmux.conf file to add a bind-key command. Specifically, look at page 4 of the following. |
|||
|
|