learntmux.dev
Challenge · no new keys

Challenge: tidy a messy session

Goal

Session project: 0:editor with four panes in main-vertical, unzoomed; 1:logs on tail; the stray client on old detached.

Nothing new. Every fix is a command from this level:

C-b z
unzoom
C-b $ / C-b ,
rename the session / the current window
select-layout main-vertical
reflow the panes
C-b &
kill a window
C-b D
drop a client
movew -r
close the gaps in the index list

The new part is reading the mess off the status line before you touch anything. It tells you almost everything: Z after a window name means zoomed, the window list shows names and index gaps, and C-b D lists every client on the server, not just yours.

Do this

Starting from messy, reach this state:

Session renamed to project.

Window 0 named editor, unzoomed, four panes in main-vertical.

The empty window killed.

The window running tail named logs.

The client attached to session old detached.

Windows renumbered so only 0:editor and 1:logs remain.

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 session messy has been renamed to project— not done yet
  2. Window 0 is named editor and is not zoomed— not done yet
  3. Window 0 has four panes arranged as main-vertical— not done yet
  4. No client is attached to session old any more— not done yet
  5. Session project has exactly two windows, 0:editor and 1:logs— not done yet