Panes and tabs
A session's terminals are panes, arranged in tabs. Pane keys start with ⌃w, as in vim.
| Key | |
|---|---|
⌃w v |
Split right |
⌃w s |
Split below |
⌃w h ⌃w j ⌃w k ⌃w l |
Focus the pane left, below, above, right (h and l alone work too) |
⌃w z |
Zoom the focused pane (again to unzoom) |
⌃w q |
Close the focused pane; the agent's pane asks first |
gt / gT |
Next / previous tab |
gn |
New tab with a shell (or click +) |
⌃w c |
Close the tab and every pane in it (or click its ×); a tab with the agent asks first |
g> / g< |
Move the tab right / left (or drag it) |
A split starts equal. Drag the line between two panes to resize them: the pointer turns into a resize arrow over it, and the terminals on both sides reflow as you drag. No pane gets smaller than about twenty columns by four rows, however far you drag or however small the window gets. Double-click the line to make that split equal again.
| Key | |
|---|---|
⌃w > / ⌃w < |
Widen / narrow the focused pane |
⌃w + / ⌃w - |
Make the focused pane taller / shorter |
⌃w = |
Make every pane in the tab the same size |
Each press moves the line by a twentieth of its split; a count moves it further (4⌃w >). The sizes are part of the
session's layout: they come back when heed relaunches, and when a session is resumed.
Drag a tab along the strip to move it: the other tabs make room as it passes them, and it lands where you let go. g>
and g< move the open tab one place right or left; a count moves it further (3g>). The tab you were in stays the
one you are in.

![]()
The right of the tab strip shows the keys that matter where you are looking, as you have them bound: in NORMAL,
i to type into the pane, the splits and the next tab; in INSERT, how to get back out.
![]()
A pane closes when its terminal ends: exit or ⌃D in a shell, or a command that finishes. The last pane of a tab
takes the tab with it.
When a session has no terminal left, whether by exit, × or ⌃w q, heed asks what to do with it. The safe
answer is the default one:
- Keep (
↩,yor⎋): the session stays, with a new shell in its worktree. - Close, keep the worktree (
c): the session moves to History; the worktree stays. - Delete (
d): the session moves to History and its worktree is removed, with its local branch. A worktree with work not saved anywhere else is kept, and the dialog says so.
Terminals that end together across several sessions were lost, not closed (heed quitting, or being replaced while it runs), and no session is touched: they reopen on the next launch. The same goes for every terminal while heed quits.

New sessions open with the agent alone; set shell_split = true under [sessions] for a shell beside it.
Pinned tasks open as tabs in new sessions, one each, running their command. The tab's glyph shows the last run: done when it passed, a red square when it failed.
[repos."acme/docs-toolkit".tasks]
test = "dotnet test"
! (:task.run) runs any task of the session's worktree in a new tab of the same kind. The picker lists the pinned
tasks, then what heed finds in the worktree, each marked with where it comes from:
- mise: the repo's own tasks from
mise tasks ls, not global or hidden ones, run withmise run. A mise config that is not trusted yet offers none, and the picker says so. - make: the Makefile's targets, with the description from a
target: ## Descriptioncomment, run withmake. - package.json: its scripts, without install and publish hooks or a script's
preandposthooks, run with the repo's package manager:pnpm run,bun runoryarnby its lockfile, elsenpm run.

Type to narrow the list, ↩ runs the task under the cursor. What a worktree offers is read the first time the picker
opens on it; ⌃r in the picker (:task.refresh) reads it again, after a branch added a target or you trusted a mise
config. :task.run <name> runs one by name without the picker.
