I have a window called 'Codes' in window 1, and I want to move it to window 7, is it possible?
1 Answer
Yes, it is possible. Go to window 1, type the command character (e.g. CTRL-A
) and then type: :number 7
. If there is already a window at 7, then the two windows will be swapped (window 7 will become window 1). From the manpage:
Change the current windows number. If the given number n is already
used by another window, both windows exchange their numbers. If no
argument is specified, the current window number (and title) is shown.
-
13@Arcege , Thanks for this answer. Following your answer I figured out from screen's manual that it is possible to provide the target window number with relative values. For example:
:number +1
would swap current window with the one just right to it. I find this option useful with key binding that controls the current window location (where one does not know the absolute index of the windows to swap).– ElazarRAug 28, 2017 at 13:44