learntmux.dev

Resize panes

Goal

The left pane is at least 80 columns wide.

Three sizes of step, all of them resize-pane:

C-b C-Left / C-Right / C-Up / C-Down
move the border one cell
C-b M-Left and friends (Alt)
move it five cells
resize-pane -R 20 at C-b :
any exact count

The arrow names the direction the border moves, not which pane grows. To make the left pane wider, push its right border right.

Resizing moves a border, taking columns or rows from the neighbour, so growing one pane always shrinks another. After one C-b, further arrow presses repeat without another prefix.

Do this

Press C-b C-Right, then keep tapping C-Right.

The border moves right a column at a time.

Press C-b M-Right a few times.

Five columns per press, until the left pane passes 80 of the 120 columns.

If neither moved the border, press C-b :, type resize-pane -R 20, Enter.

The border jumps 20 columns at once.

Why the resize keys repeat

The arrows repeat because they are bound with the repeat flag: presses within repeat-time (500 ms) count as one sequence.

Not every terminal passes Ctrl or Alt plus arrows through to tmux. The prompt form works everywhere, which is why it is worth knowing.

Stuck on this one?

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

about 15 MB, once

session learn

Done when

not started
  1. The left pane of window 0 in session learn is at least 80 columns wide— not done yet