Swap Panes by Number or by Click
Directional swaps move a pane across a shared edge. When the destination is farther away, use Swap Pane to pick it directly. In Nash 0.13.11, that picker uses the numbers you already know from pane navigation, and a click works too.
Choose the Destination, Then Choose Where Focus Goes
Open the command palette with SUPER+Shift+P and choose Swap Pane, or find
it under Window → Move Pane. SUPER means Command on macOS.
The picker labels the available destination panes. Type a label or left-click the pane to exchange it with the active pane. Swap Pane leaves focus in the original position, now occupied by the other pane. Swap Pane (Keep Focus) follows the pane you moved, keeping the same program focused.
For example, use the keep-focus variant to move your editor and keep typing in it. Use ordinary Swap Pane when you want to bring another program into the position where you are working.
Reuse the Numbers You Already Know
The swap modes now use pane-navigation numbers instead of letters. With three panes and the first one active, destinations are labeled 2 and 3. The active pane has no label because it cannot swap with itself, but its place in the numbering is retained. Folded panes have no destination label.
When one number is also the start of another, the picker waits for more input.
With destinations 1 and 10, type 1, then Enter to choose 1, or type 10
to choose 10. You do not need a separate letter alphabet for a large layout.
There is one zoom caveat: the picker temporarily unzooms a tab to show its panes. Ordinary number navigation in a zoomed tab sees only the zoomed pane, so its numbers can differ from the picker in that situation. Leaving the picker restores the zoom it temporarily removed.
Leave the Picker Without Losing Your Next Action
The labels no longer trap every mouse click:
- Left-click a labeled pane to select it.
- Left-click the active, unlabeled pane to cancel.
- Click a tab, divider, folded pane, or scrollbar to dismiss the labels and carry out that click normally. Other mouse buttons also pass through.
- Run another bound action, such as switching tabs, to dismiss the labels before the action runs. Escape cancels without swapping.
A pane click used only to focus an inactive window is still swallowed when focus-click swallowing is enabled; it does not select a destination.
The picker is for a specific destination. Keep using directional shortcuts when the next pane is the one you want. See pane navigation for the surrounding navigation and layout controls.