Zoom a pane
Pane B is zoomed, filling window 0.
C-b z zooms the active pane to fill the window. The other panes are hidden, not closed; press it again to put everything back. A zoomed window shows Z after its name in the status line — often the only sign that anything happened.
Zoom is a temporary view over the layout, not a change to it. Unzooming restores every pane to its exact size. Anything that does change the layout — resizing a pane, applying a preset layout — unzooms the window first, so zoom last.
Pane A on the left is active; B is top right, C bottom right.
Press C-b o.
B is active.
Press C-b z.
B fills the window, A and C vanish, and the list shows 0:editor*Z.
Press C-b z twice.
B shrinks back and A and C return, then B fills the window again. Leave it zoomed.
The window flags
*, - and Z are window flags, and more than one can show at once:
*— the current window-— the last windowZ— the window is zoomed
Here is what just happened.
C-b z runs resize-pane -Z, a toggle on the active pane. Nothing about the split changed while B was zoomed, which is why unzooming restored the three-pane layout exactly.
- Toggle zoom: the active pane fills the window, press again to restoreC-bthenz
Go further
resize-pane -Z -t 1zooms a pane by number from the prompt, without moving to it.
- 1Zoom acts on the active pane. Move to B first, or you zoom A.
- 2
C-b osteps to the next pane by number: from A to B. ThenC-b z. - 3If nothing seems to change, look for
Zafter the window name in the status line. Do not pressC-b za second time at the end.
This is a live terminal. Typing goes to the machine, including Tab. Press Shift and Tab together to move focus back out to the page.
A real terminal, in this tab
Alpine Linux and tmux 3.4 on an x86 emulator. Nothing to install, and no server behind it.
about 15 MB, once
Done when
not started- Window 0 of session learn is zoomed with pane 1 (B) active— not done yet