# window moving/number changing ## Syntax ##
WINDOW NUMBER [-sticky] <number>
WINDOW MOVE PREV
WINDOW MOVE NEXT
WINDOW MOVE FIRST
WINDOW MOVE LAST
WINDOW MOVE <number>|<direction>
WINDOW MOVE LEFT [-directional]
WINDOW MOVE RIGHT [-directional]
## Parameters ## | | | | --- | --- | | `NUMBER`: | Change the active window number to the specified number, swapping the window already in that place if required. With -sticky, protect the window number from renumbering done by windows_auto_renumber. (To re-set the sticky attribute, use WINDOW NUMBER again without -sticky.) | | `MOVE PREV`: | Move the window to the place of the numerically previous window. At the first position, move the window to the end and renumber the consecutive block that it was part of. | | `MOVE NEXT`: | Move the window to the place of the numerically next window. At the last position, move the window to the first position and renumber the consecutive block at first position (if any) | | `MOVE FIRST`: | Move the window to the first position. Any windows inbetween are moved to their numerically next positions. | | `MOVE LAST`: | Move the window to the last position. Any windows inbetween are moved to their numerically previous positions. | | `MOVE`: | Move the window to the specified number or the first number that is in use when moving the window in the direction of the specified position. Any windows inbetween are shifted towards the old position of the window (unused positions remain empty) | | `MOVE LEFT`: | Move the window to the numerically previous location inside the current sticky group. | | `MOVE RIGHT`: | Move the window to the numerically next location inside the current sticky group. | | | | | --- | --- | | `-directional`: | Set the split window in the given direction to the current one active, or move the current window to the sticky group of the split window in the given direction. (If no sticky group remains, the split window collapses.) | Add the required arguments for the given command. Without arguments, the details (size, immortality, levels, server, name and sticky group) of the currently active window are displayed. If used with a number as argument, same as WINDOW REFNUM. ## Description ## Manipulates the window layout and positioning attributes. ## Examples ## ## See also ## [JOIN](/documentation/help/1.2/join), [LEVELS](/documentation/help/1.2/levels), [LOG](/documentation/help/1.2/log), [QUERY](/documentation/help/1.2/query)