ctermdocs HomeBlogSign in

Keyboard shortcuts

cterm has a key for most of what you do with it every day: open the roadmap, go to the project's page, move to the next session or the one that needs you, open a panel beside the session, stop a turn, give the window in front the whole screen. Press H (or ?) anywhere outside a text field and the terminal to see every one of them, grouped by where it works.

The sheet of keyboard shortcuts over the app: the keys that work anywhere, the sessions' keys, the panels beside a session, the windows, the palettes, the prompt box and the terminal pane.
The sheet of keyboard shortcuts over the app: the keys that work anywhere, the sessions' keys, the panels beside a session, the windows, the palettes, the prompt box and the terminal pane. ui-keys-sheet-dark.png, drawn by keys-shot.mjs

What it is for

The keys are learnt from inside the app: the sheet lists all of them, and every button that has a key names it in its tooltip, so hovering a button once teaches its key. The mouse stays for the rare things.

How to use it

The sheet

Press H or ? with the focus outside a text field and the terminal. H again, Esc or a click beside it closes it. A phone has no keyboard, so the sheet opens only on a computer.

Single letters

A single letter (R, P, J…) works when the focus is on nothing that takes typing: not the prompt box, not a field, not the terminal. There the letter types itself as usual, so h in the prompt box is an h. Click an empty part of the page to give the keys back to the app. They also stay off while a dialog is open over the app, except the dialog's own key (H for the sheet, A for the Active list) and F.

  • R opens the roadmap of the open session's project, or of the project whose page you are on; R again closes it (back to the project page it was opened from). Shift+R opens it with the focus in its search field.
  • P opens the project's page; P again goes back to where you pressed it: the session, with its roadmap beside it if it was open, or the roadmap alone.
  • J and K open the next and the previous session in the sidebar's list, as the list shows it (a docked session is opened in full); U opens the next session that needs you.
  • 1 to 9 open the session you gave that number, from any view (see below).
  • N starts a Claude session in the New session form's folder, Shift+N one in the current project on its defaults.
  • E files, B the brief, I the index, G the artifacts, Y the memory and S the setup (admins) open their panel beside the session, and close it again.
  • O opens the open session's model and effort menu.
  • F expands the window in front, or puts it back: the file viewer's full screen, an item's card opened large (the card selected in the roadmap opens large, a large one goes back), the task popover laid out large, the roadmap's full view beside a session and the project page's tabs given the whole page, in that order of what is in front.
  • M the master chat, L My list, Q an entry added to it, A the Active list opened large, D the master view and / the sidebar's session finder work as before.

A number for a session

The few sessions you go back to all day can each have a number from 1 to 9, the way a browser's tabs have theirs. Give one from the session's ⋯ menu in the sidebar or the # button in its head: the choices are 1 to 9 and None, and a number another session holds names that session. A session holds one number at most, so giving it 5 after 3 leaves it only 5, and giving a number another session holds moves it here: the other one loses its chip.

Then press the number with the focus outside a text field, the prompt box and the terminal, and with no dialog open: the session opens in the main view at once, from another session, the project page, the master chat or the settings. A session sent to a tab at the bottom opens in full, an ended one opens as its row does (shown, not resumed). The number shows as a small chip after the session's name on its row and beside the name in its head, apart from the red badge of cards waiting.

A number no session holds opens nothing and a short note says so and where a number is given. A session removed from the list frees its number. Typing a digit in the prompt box, a field or the terminal types it as always, and Cmd/Ctrl with a number still switches the browser's tabs: the page never sees those.

The numbers are yours: kept with your account, the same in every browser and on every device you sign in on, and never shown to anyone else who sees the session.

A session's ⋯ menu with the numbers 1 to 9: 3 is this session's, 7 names the session that holds it, and None takes the number away; the rows show their chips after the name.A session's ⋯ menu with the numbers 1 to 9: 3 is this session's, 7 names the session that holds it, and None takes the number away; the rows show their chips after the name.
A session's ⋯ menu with the numbers 1 to 9: 3 is this session's, 7 names the session that holds it, and None takes the number away; the rows show their chips after the name. ui-session-keys-dark.png and ui-session-keys-light.png, drawn by session-keys-shot.mjs
The head's # button open, with the session's number 3 beside its name.The head's # button open, with the session's number 3 beside its name.
The head's # button open, with the session's number 3 beside its name. ui-session-keys-head-light.png and ui-session-keys-head-dark.png, drawn by session-keys-shot.mjs

Keys with Cmd or Ctrl

On a Mac these use Cmd, elsewhere Ctrl.

  • Cmd/Ctrl+K jumps to a session by its name, Cmd/Ctrl+I opens the idea palette, from a text field too.
  • Cmd/Ctrl+J shows or hides the terminal pane; from inside the terminal only as Cmd+J, since Ctrl+J is its newline.
  • Cmd/Ctrl+. stops the open session's turn, from the prompt box too (in the terminal, Esc does it).
  • Cmd/Ctrl+' moves the focus between the session's prompt box and the prompt box of a docked session's small chat: from the session's box (or anywhere outside the chat) it goes into the chat's, and pressed there it comes back. With no small chat open it does nothing, and it never fires inside the terminal. Esc still folds the small chat back to its tab.
  • On the idea palette Cmd/Ctrl+B flips Build it once placed; with text selected in the chat Cmd/Ctrl+Shift+M comments on it.

None of them is a key Chrome keeps for itself (Cmd+N, Cmd+T, Cmd+W, Cmd+Shift+N, Cmd and a number), which the page never sees; that is why a new session is a plain N. Cmd/Ctrl+F stays the terminal's find and the browser's.

The same sheet in the light theme.
The same sheet in the light theme. ui-keys-sheet-light.png, drawn by keys-shot.mjs

How it works

One table in the web app, the keymap, holds every shortcut with its group and its words; the app's one key handler reads a key press through it, and the sheet and the tooltips are drawn from the same table, so a key and what the sheet says of it cannot drift apart. The keys a feature keeps for itself (the palette's, the comment's, the dock's Esc, the prompt box's and the terminal's) are in the table too, for the sheet. The windows that can be expanded each say, while they are shown, how to expand themselves and how far in front they are, and F takes the one furthest in front. Nothing of the keys is sent to the daemon, and rebinding them is for later; the one thing kept is the sessions' numbers, one setting of your account (a number to a session for each one given) that the daemon checks (numbers 1 to 9, a session you see, one number a session) and sends back to every browser of yours with only the sessions you still see.

Screenshots on this page are drawn by docs/spike/keys-shot.mjs, docs/spike/session-keys-shot.mjs from fake data, and refreshed when a view changes.

Written in docs/site/pages/keyboard.md and built by docs/site/build.mjs.