Files
Codeman/docs/wiki/Keyboard-Shortcuts.md
T
Michael GrundbergandClaude Opus 5.5 c6fff5e6a8 feat(web): a chat view shows a Claude session's conversation, rendered and live
A local or Docker Claude session can show its conversation as rendered text,
the way the Response Viewer draws it, in place of the terminal. The terminal
stays attached and sized underneath, so switching views never resizes the pane,
and the user still types in the terminal. Discussion #858 has the background.

- A Chat / Terminal switch and Alt+Shift+C change the view, and each session
  remembers its choice on this device until the session is gone. Two per-device
  settings pick the default view and hide the switch. Phones, remote and
  adopted sessions keep the terminal.
- The server broadcasts `transcript:update`, at most one per 750 ms per session,
  and the view re-reads the conversation on it, so an answer fills in mid-turn.
- The server keeps each transcript's parse and the byte offset it reached, so a
  read parses only the bytes appended since the last one, in chunks with an await
  between them. Overlapping reads of one file share one pass. The Response
  Viewer and the Discord bridge read through it too.
- A full conversation read starts a transcript watcher for a session that has
  none, such as one picked up after a server restart.
- A Docker session's hook reports the container's transcript path, and the
  server watches the host's copy of that file.
- After `/clear`, Claude Code runs the statusline command with the new
  conversation's id and transcript path. The statusline exporter posts them, and
  the server follows the new conversation the way it follows a hook's report.
- Keep-warm turns are hidden, long prompts fold, a "Working" line shows the turn's
  running time, and a pending dialog shows a notice that opens the terminal.

The design note, docs/chat-view-plan.md, covers this and the four steps that
follow it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 10:18:29 +01:00

7.5 KiB

Keyboard Shortcuts

Every binding, and how to change them. Ctrl also accepts Cmd on macOS.

Press Ctrl+? in the app for the same list in a floating overlay.

Sessions and tabs

Shortcut Action
Ctrl+K (also Cmd+K, Alt+K) Find an open session or start a new one. On the New session row, Left / Right change the agent it starts.
Ctrl+Tab Next session.
Alt+[ / Alt+] Previous / next tab.
Alt+1 to Alt+9 Switch to tab N. Physical keys, so macOS Option layouts work.
Ctrl+Shift+{ / Ctrl+Shift+} Move the active tab left / right.
Alt+B Collapse / expand the session sidebar, when that layout is on.
Alt+Shift+C Switch a Claude session between Chat and Terminal view, when the chat view applies to it.

Ctrl+W is not a Codeman shortcut: it goes to the terminal, where shells and agent CLIs use it to delete the previous word. Close Session has no key by default; close a session from its tab, or bind a key to it in App Settings → Shortcuts.

Terminal

Shortcut Action
Enter Send.
Shift+Enter Insert a newline without sending.
Ctrl+Enter Same.
Ctrl+C Copy the selection, or interrupt when nothing is selected.
Ctrl+Shift+C Copy the selection. Never interrupts.
Ctrl+V Paste. An image on the clipboard uploads and pastes its file path instead.
Ctrl+L Clear the terminal.
Ctrl+Shift+R Restore terminal size.
Ctrl + / Ctrl - Font size.
Shift+Wheel Scroll the local buffer, even where the wheel is forwarded to the CLI.
Shift+drag Start a selection in a pane whose mouse events go to the CLI.
Right-click Copy the selection. With nothing selected the native menu is left alone.
Ctrl+Z Swallowed in agent sessions so a running CLI cannot be suspended. Normal job control in a shell.

Anything you copy is cleaned on the way to the clipboard: each line loses the padding spaces a full-screen program paints across the rest of the row. Leading indentation is left exactly as it is, so indented code, a git log message body and git diff context lines paste back the way they looked on screen. An Alt+drag rectangular selection is copied exactly as it looks, so its columns stay lined up.

Tile grid

Shortcut Action
Ctrl+Shift+G Open or close the tile grid (needs the Tiles setting on).
Alt+Shift+Arrows Focus the tile to the left, right, above or below.
Ctrl+Shift+Arrows Move the focused tile one place: into an empty slot, or swap.
Drag a tile's header Move the tile: onto another tile they swap, onto an empty slot it moves there.
Alt+Shift+Enter Zoom the focused tile, or restore the grid.
Ctrl+click / Cmd+click a tab Add that session to the grid.
Right-click the Tiles button Choose how many tiles: 2, 4 or 6 (remembered).

While the grid is open, Ctrl+Tab and Alt+[ / Alt+] cycle through the tiles, and the terminal shortcuts above act on the focused tile. Remove Focused Tile has no key by default. See Tile Grid.

Everything else

Shortcut Action
Ctrl+Shift+V Toggle voice input.
Ctrl+? Shortcut reference overlay.
Escape Close panels and modals.
Alt+← / Alt+→ File Viewer window: back / forward between previewed files.

Rebinding

App Settings → Shortcuts. Bindings live in a registry with per-user overrides, so a rebind is stored as an override on top of the default rather than replacing the table. Previous Session (Alt+[) and Next Session (alternate, Alt+]) are rows like any other, so they can be rebound too.

A chord another action already uses is refused, and the message names that action. The same check runs when you re-enable a disabled shortcut and when you press Reset: if its chord was given to something else in the meantime, it stays as it was. Alt+1 to Alt+9, Shift+Enter/Ctrl+Enter and Ctrl+V/Cmd+V are reserved.

Two things are deliberately not rebindable:

  • Ctrl+C smart copy. The generic dispatch loop calls preventDefault() on every shortcut it handles, and doing that to Ctrl+C would swallow the interrupt when nothing is selected. It is handled separately for that reason.
  • Escape, which closes whatever is open.

Why some chords behave oddly

The terminal sees keystrokes before the app does. Any chord the app claims has to also be swallowed at the terminal layer, or xterm writes the control byte into the session as well as triggering the action. A chord you rebind an action to is kept out of the terminal too, so rebinding Previous Session to Alt+J switches the session and sends nothing to the CLI. Several built-in defaults are held back too, each by a check of its own:

  • the tab switches (Alt+1 to Alt+9, Alt+[ and Alt+]) and the session finder (Ctrl+K, Alt+K);
  • Alt+B, while the sidebar layout is on;
  • Alt+Shift+C, while the active session can show the chat view;
  • Copy Selection, whose Ctrl+Shift+C never reaches the CLI and whose Ctrl+C does not while text is selected;
  • the tile grid chords.

None of those chords types anything into the CLI when it acts as its shortcut; Ctrl+C with nothing selected is the interrupt and reaches the CLI. The other defaults still reach it: Ctrl+L clears the screen and also reaches the CLI, which redraws on it. Binding an action back onto its own default behaves like the default.

Alt+1 through Alt+9 are matched on physical key position rather than the character produced, so macOS Option layouts that produce ¡™£ still switch tabs.

On phones

There is no physical keyboard, so the equivalents live in the keyboard accessory bar: Esc, Ctrl as a one-shot modifier, Tab, arrows, and quick actions. See Mobile Guide.