Keybindings

June 21, 2026 · View on GitHub

This is the source-of-truth catalog of every keyboard shortcut the TUI recognizes. Bindings are grouped by context — the focus or modal state they fire in. A binding listed under "Composer" only takes effect when the composer is focused; one under "Transcript" only when the transcript has focus; and so on.

Bindings are not (yet) user-configurable — tracked for a future release (#436, #437). This document is the contract that future config-file overrides will name into.

Global (any context)

ChordAction
F1 or Ctrl-/Toggle the help overlay
Ctrl-KOpen the command palette (slash-command finder)
Ctrl-CCancel current turn / dismiss modal / arm-then-confirm quit
Ctrl-BBackground the running foreground shell command (turn continues; the command becomes a /jobs background job)
Ctrl-DQuit (only when the composer is empty)
TabCycle TUI mode: Plan → Agent → YOLO → Plan
Shift-TabCycle reasoning effort for the active provider. DeepSeek-style providers cycle off → high → max → off; OpenAI Codex cycles low → medium → high → xhigh → low.
Ctrl-ROpen the resume-session picker
Ctrl-LRefresh / clear the screen
Ctrl-OOpen Activity Detail for selected/live/recent tool work, or the full reasoning timeline for thinking blocks when the composer is empty
Ctrl-Shift-E / Cmd-Shift-EToggle the file-tree sidebar
Alt-GScroll transcript to top when the composer is empty
Alt-! / Alt-@ / Alt-# / Alt-$ / Alt-0Focus Pinned / Tasks / Agents / Context / Auto sidebar
Ctrl-Alt-0Hide/show the pinned sidebar
EscClose topmost modal · cancel slash menu · dismiss toast

Composer

Editing the message you're about to send.

ChordAction
EnterSend the message (or run the slash command)
Alt-Enter / Ctrl-JInsert a newline without sending (Ctrl-J force-steers while a turn is running)
Ctrl-Enter / Cmd-EnterForce a live steer into the current turn when supported by the terminal
Ctrl-UDelete to start of line
Ctrl-WDelete previous word
Ctrl-A / HomeMove to start of line
Ctrl-E / EndMove to end of line
Ctrl-← / Alt-←Move backward one word
Ctrl-→ / Alt-→Move forward one word
Ctrl-V / Cmd-VPaste from clipboard (also bracketed-paste auto-handled)
Ctrl-YYank (paste) from kill buffer
/ Cycle composer history (also selects popup/attachment items)
Ctrl-P / Ctrl-NCycle composer history (alternative)
Ctrl-SStash current draft; with queued follow-ups during a running turn, send the next queued item now
Alt-RSearch prompt history (Alt-R to exit)
TabSlash-command / @-mention completion (popup-aware)
Ctrl-OOpen external editor for the composer draft when it has focus
! commandRun a shell command through normal approval, sandbox, and output surfaces

@ mentions

Type @<partial> to open the file mention popup. / cycle the entries, Tab or Enter accepts. Esc hides the popup. As of v0.8.10 (#441), completions are re-ranked by mention frecency — files you mention often + recently float to the top.

# quick-add (memory)

When [memory] enabled = true, typing # foo and pressing Enter appends foo as a timestamped bullet to your memory file without sending a turn. See docs/MEMORY.md.

Transcript (when transcript has focus)

ChordAction
/ / j / kScroll one line (v0.8.13+: bare arrows also scroll when composer empty)
PgUp / PgDnScroll one page
Home / gJump to top
End / GJump to bottom
EscReturn focus to composer
yYank selected region to clipboard
vBegin / extend visual selection
oOpen URL under cursor (OSC 8 capable terminals)
ChordAction
/ / j / kMove selection
EnterActivate the selected item (open / focus / cancel)
TabCycle to next sidebar panel (Work → Tasks → Agents → Context)
Ctrl-XCancel all running background shell jobs when the Tasks panel is focused
EscReturn focus to composer

Slash-command palette (after Ctrl-K or typing /)

ChordAction
/ / Ctrl+P / Ctrl+NMove selection
Enter / TabRun / complete the highlighted command
EscDismiss palette

Session Picker (Ctrl-R or /sessions)

ChordAction
/ / j / kMove selection in the session list
1-9Open the visible session history at that list slot
PgUp / PgDnPage the history pane
EnterResume the selected session
/Search sessions
sCycle sort order
aToggle current-workspace scope vs all workspaces
dDelete selected session after confirmation
Esc / qClose the picker

Approval modal (when a tool requests approval)

ChordAction
y / YApprove once
a / AApprove all (auto-approve subsequent calls)
n / N / EscDeny
eEdit the approved input before running

Onboarding (first-run flow)

ChordAction
EnterAdvance to next step (Welcome → Language → API → …)
EscStep back one screen
15Pick a language (Language step)
y / YTrust the workspace (Trust step)
n / NSkip the trust prompt

v0.8.29 audit notes

  • Shift+Enter / Alt+Enter newlines now work in VSCode on Windows (#1359). crossterm's PushKeyboardEnhancementFlags command unconditionally returns Unsupported on Windows (is_ansi_code_supported() == false), so the Kitty keyboard protocol escape was never written to the terminal. Without it, VSCode's xterm.js stays in legacy mode where Shift+Enter is indistinguishable from plain Enter, causing the composer to send the message instead of inserting a newline. The fix writes the push/pop escapes (\x1b[>1u / \x1b[<1u) directly on Windows, bypassing crossterm's capability gate. VSCode integrated terminal and Windows Terminal ≥1.17 both honour the Kitty keyboard protocol; terminals that do not understand the sequences silently discard them.

v0.8.13 audit notes

  • Ctrl-S is stash, not history search. Fixed in this revision — Alt-R is history search.
  • Phantom Alt+Up removed. The "Edit last queued message" binding was listed in README but never existed in the key dispatch code.
  • Bare Up/Down arrows scroll transcript when composer empty (v0.8.13). Previously the should_scroll_with_arrows gate was hardcoded to false, meaning bare arrows always navigated composer history even when the composer was empty. Users in virtual terminals (Ghostty, Codex, Kitty-protocol) were especially affected because they couldn't use Cmd+Up / Alt+Up shortcuts.
  • Configurable keymap (#436) and tui.toml (#437) remain deferred. The TuiPrefs struct and loader exist in settings.rs but are not wired at startup. The named-binding registry that would let ~/.codewhale/tui.toml override individual entries is still pending.
  • No other broken bindings found. Every other chord listed above resolves to a live handler in crates/tui/src/tui/ui.rs (key-event dispatch) or crates/tui/src/tui/app.rs (mode + state transitions).