Skip to content

Layouts and split panes

A Next Term window has three parts: the project sidebar, the editor for open files, and the terminal tabs, each of which can be split into panes. Arrange them the way you work: a wide terminal under the code, agents in a column beside it, or an agent next to its test run. The terminal’s tabs can run along its top or down its side as a list.

A Next Term window with the terminal on the right of the editor: the sidebar on the left, long.ts open with soft-wrapped lines in the middle, and a terminal tab on the right.

Any tab can hold several terminals, side by side or one above the other, as many as fit: an agent beside its test run, or two agents next to each other.

ActionKeys
Split Right (File menu, or the terminal’s ⋯; in the editor ⌘D duplicates the line)⌘D
Split Down⇧⌘D
Select the pane on the left, right, above or below⌥⌘← ⌥⌘→ ⌥⌘↑ ⌥⌘↓
Select the next or previous pane⌥⌘], ⌥⌘[
Maximize the pane, and back⇧⌘↩︎
Make Panes EqualWindow menu
Close the pane (the menu says Close Pane)⌘W
  • A new pane starts in the folder of the pane you split.
  • Each pane has a header while the tab shows more than one: the pane’s mark, its title (a pane on a server with its server mark) and a × that closes that pane alone. The × shows on the pane with the keyboard and on the one under the pointer. Like ⌘W on that pane, it asks first when something runs there, or when the pane’s session is kept on a server. Middle-click a header to close its pane too.
  • Click a header to type in that pane. Double-click it to rename the pane; the tab shows that name while the pane has the keyboard. An empty name goes back to the automatic one.
  • You can tell where your typing goes: the pane with the keyboard has the header with the blue line, as the selected tab has, and the others are shaded.
  • The header takes its room from the pane, above the terminal. It is never part of the terminal’s rows: programs in the pane see a terminal a little shorter, and nothing of the header. A tab of one pane, or a maximized pane, has no header.
  • The tab bar still shows one tab, named after the pane with the keyboard plus how many others there are, such as “claude +2”. Its mark is the most urgent of its panes, so a pane waiting on you is never hidden. In a tab list, each pane is a row of its own under the tab.
  • Drag a divider to resize. Panes keep their proportions when the window resizes or you split again.
  • Maximize Pane gives one pane the whole tab while the others keep running; press it again to bring them back.
  • The tab’s × closes all its panes, asking once if that would stop anything. A pane goes when you close it with its × or its shell exits: its neighbour takes its room, and the keyboard if it had it. The pane you are typing in keeps the keyboard when you close another.
  • Agents can split too: an orchestrator can open a worker in a pane beside another tab (new_tab with split_beside). The pane you are typing in keeps the keyboard.

The terminal can sit below the editor (the default), on its right, on its left, or above it.

  • Click the ⋯ button at the right end of the terminal’s tab bar and choose under Move Terminal To. The same menu splits the terminal.
  • Or use View › Terminal Position, or Position in Settings › Terminal.

A new position opens the terminal if it was folded. Choosing the position it already has changes nothing: a folded terminal stays folded, and the line between the editor and the terminal stays where it is. Moving the project sidebar leaves them as they are too.

The editor area appears when you open a file and hides again when the last one closes, giving the terminal the whole window. Choose a position while no file is open and a notice says what happens, such as “The terminal moves to the right when a file is open”.

The project sidebar sits on the left (the default) or the right.

  • Click the ⋯ button in the sidebar’s header, or the terminal’s ⋯, and choose Move Project Sidebar to the Right (or to the Left).
  • Or use View › Project Sidebar Position › Right.
  • Hide or show it with ⌘B. The sidebar’s ⋯ menu has Hide Project Sidebar too.

The terminal’s tabs run along its bar at the top (the default), or down its left or right as a list, under the bar. Only the tabs move: the sidebar, the editor, the terminal’s position and every split stay where they are, and the bar keeps its +, its fold arrow and its ⋯.

  • Click the terminal’s ⋯ and choose Top, Left or Right under Terminal Tabs.
  • Or use View › Terminal Tabs, or Tabs in Settings › Terminal, beside Position.
  • An agent can move them with set_layout, after you approve.

The choice applies to every window. None of the Terminal Tabs commands has a key until you give it one in Settings › Keyboard Shortcuts.

  • Each row is a tab, as on the bar: its status mark, its title (with a dev server’s port, such as “app · :5173”), the hollow branch mark when its agent works elsewhere, and the key that selects it, such as ⌘3. The selected row and the one under the pointer show the × in the key’s place. A tab on a server has its server mark before the title (with Show Folders, at the start of its second line).
  • A split tab’s panes are rows under it, each with its own mark and title. Click one to bring its tab forward with that pane in front and the keyboard in it. The tab’s own row has the most urgent of its panes’ marks, as on the bar.
  • The keys work as on the bar: ⌘T, ⌘W, ⌘1–⌘9 and ⌃⇥.
  • Drag a tab’s row up or down to reorder the tabs; its pane rows go with it. Held near the list’s top or bottom, the list scrolls.
  • Double-click a tab’s row to rename the tab, as ⌥⌘R does. The × or a middle-click closes it. A double-click below the last row opens a new tab.
  • Right-click a row for the tab’s menu, the same as on the bar, with Close Tabs Below in place of Close Tabs to the Right. A pane’s row has its tab’s menu.
  • Show Folders (View › Terminal Tabs) gives each tab’s row a second line: its folder, such as ~/Code/app (web-1: ~/app on a server), or the question its agent is waiting on.
  • Scrolling: the list scrolls to the tab you select. When a tab out of view is done, failed or needs you, a chip at that edge says how many, such as “↓ 2”, with the most urgent mark. Click it to scroll to the most urgent one.
  • Folded: with the terminal folded to its bar above or below the editor, the bar shows the tabs again, so their marks stay in sight. Beside the editor, the rail shows them, as with Top.
  • Its height is the terminal’s, under the bar: with the terminal below or above the editor, the list is only as tall as the terminal.
  • Drag its edge, the side that meets the terminal, between 160 and 400 points. Drag it in past 120 points and it collapses to a column of marks.
  • Double-click the edge, or choose View › Terminal Tabs › Collapse Tab List (Expand Tab List while it is collapsed; also in the terminal’s ⋯), to collapse it or to open it again at its width.
  • Collapsed, it shows each tab’s mark; click one to select its tab, or drag it up or down to reorder the tabs, as a row drags in the open list. The arrow at the top opens the list, and so does the “+3” for the tabs it has no room for. Rename Tab (⌥⌘R) opens it over the terminal for the name, and it collapses again after.
  • When room is short, it collapses by itself rather than leave the terminal beside it narrower than 240 points, and opens again once there is room. A list you collapsed stays collapsed.
  • Each project keeps its width, and whether you collapsed the list. A window for a project without one starts at the width you set last, 220 points at first.

Right-click the empty part of a bar for what that place can do. The menus show your own keys, as the menu bar does.

  • The project sidebar’s top bar: Hide Project Sidebar, and Move Project Sidebar to the Right (or to the Left).
  • The terminal’s tab bar, or its folded rail: Collapse Terminal (or Expand Terminal), Terminal Position ▸ and Terminal Tabs ▸. A tab has its own menu.
  • The window column: Keep Window Column Open (checked while it is, as a double-click on the column does), Collapse Window Column (or Expand), Move to the Left Edge (or Right), Merge All Windows and Hide Window Column.

Each menu ends with Project Color ▸ while the window has a project; on the window column, its top row has it. Each acts on the window you right-clicked, not the one in front. Positions and the window column’s look apply to every window, as View’s do.

  • Drag the line between the editor and the terminal to share the space. The line is easy to grab: anywhere within a few points of it works. Next Term remembers the split you chose, one for the terminal beside the editor and one for it above or below. A split kept in a bigger window never squeezes the editor or the terminal under its smallest size in a smaller one.
  • Fold the terminal away: the arrow before the terminal’s ⋯ (or ⌘J, View › Collapse Terminal, or a double-click on the empty part of the terminal’s tab bar) folds it so the editor gets the room. Below or above the editor it folds down to its tab bar. Beside the editor it folds to a slim rail at the window’s edge: the arrow back at the top, and under it each tab’s mark (the spinner while an agent works, ✓ done, ✗ failed, ! needs you). When a tab fails or needs you while folded, the rail pulses a few times and then stays still with the mark showing; a tab that finishes only gets its mark (with Reduce Motion on, the mark just appears). Click a mark to open the terminal on that tab; click anywhere else on the rail or press ⌘J to bring it back at its size, or drag the line out to open it. Folded either way, a tab that takes the keyboard opens the terminal: a new tab (⌘T), or switching tabs from the keyboard (⌘1–⌘9, ⌃⇥). A click on a tab in the folded tab bar selects it and leaves the terminal folded. While it is folded no tab is on screen, so the tab in front keeps its marks until you open the terminal, and notifies like any other.
  • Resizing the window gives the change to the editor; the terminal keeps its size.
  • Drag the sidebar’s edge to make it wider or narrower.
  • Hide the sidebar with the sidebar icon in its header, next to its ⋯ (or ⌘B). While it is hidden, the same icon sits just after the window’s traffic lights; click it to bring the sidebar back. Both icons, like the fold arrow and the +, show their key just before them while there is room (they follow your keys).
  • Full screen: ⌃⌘F (View › Enter Full Screen).

Your layout applies to every window and is remembered across launches.

  • ⌃` moves the keyboard between the editor and the terminal (View › Focus Editor).
  • The tab bars along the top of the window drag the window, like a title bar.
  • ⌘+, ⌘- and ⌘0 change the font size of the terminal and the editor together.