Browse documentation
On this page

TUI keys and keybindings

Keybinding preferences

Add tui_keybindings to your user ~/.wisp/settings.json, alongside existing settings:

{
  "tui_keybindings": {
    "prompt.submit": ["F3", "Ctrl+Enter"],
    "history.open": ["F4"],
    "transcript.browse": []
  }
}

Restart Wisp to apply changes. Missing actions inherit defaults; an array replaces all keys for that one action. [] disables an optional action. prompt.submit and prompt.newline must each retain at least one key. To recover, remove tui_keybindings and restart. Invalid shapes, unknown action IDs, malformed chords, duplicate keys, and overlapping action bindings produce a warning and restore the entire default keymap; other valid user settings still apply.

Action IDDefault keysBehavior
prompt.submitEnterSend a prompt, or queue a follow-up while running
prompt.alternate_submitAlt+EnterInsert a newline while idle, or steer the active run
prompt.newlineShift+Enter, Ctrl+JInsert newline
queue.restoreAlt+UpRestore newest queued draft
queue.manageUnbound (/queue)Inspect queues, change drain modes, restore or clear
history.openCtrl+RSearch submitted prompts
transcript.findCtrl+FFind a literal phrase in session messages and retained tool output, including older history. Type or paste to search, ↑/↓ to change match, Enter to jump, Esc to close without moving.
prompt.external_editorCtrl+OEdit the draft, or open a browsed card’s file, in $VISUAL or $EDITOR
theme.toggleUnbound (/theme)Toggle Paper / last dark theme
panel.toggleCtrl+PShow or hide the side panel
run.backgroundCtrl+BMove the running shell command to the background
panel.focusF8Focus the side panel (Session, Files, Browser, Shortcuts; [ / ] tabs, t turn timeline, / file filter); Esc returns to the composer
panel.backgroundUnbound (Down, /ps)Focus the side panel’s background processes
session.treeCtrl+TOpen the session tree to switch branches (/tree)
transcript.browseF6Browse and copy transcript messages, code blocks, and cards
transcript.copy_last_responseAlt+YCopy the last assistant response (raw source Markdown)
transcript.turn_diffAlt+GOpen /diff filtered to the latest editing turn
shell.attach_outputAlt+SAttach or detach local ! shell output for the next prompt
transcript.page_up, transcript.page_downPgUp, PgDnScroll one page
transcript.home, transcript.tailCtrl+Home, Ctrl+EndOldest content / live tail
transcript.line_up, transcript.line_downCtrl+Up, Ctrl+DownScroll one line

Chords accept case-insensitive Ctrl, Alt and Shift, an ASCII character, Enter, navigation keys, or F1–F12, for example Ctrl+F, Alt+Enter, or Ctrl+Shift+F3. Printable keys require Ctrl or Alt. Escape, Ctrl+C, Ctrl+G, Ctrl+A/E, editor selection, clipboard, and word/line editing keys listed below, unmodified editor arrows/Home/End, and Tab/BackTab/Backspace/Delete are reserved. Default Ctrl+Enter submits; other combined Enter modifiers preserve legacy newline behavior. Default Ctrl+J and Ctrl+navigation accept extra modifiers, except that Shift+navigation selects text while editing the composer. Replacing an action removes these inherited aliases too. Some terminals cannot distinguish every modified chord; use a function key if your chosen combination does not arrive distinctly.

The Rust composer supports these fixed editing keys:

KeysBehavior
Shift+arrows, Shift+Home/EndExtend selection by character, line, or to a line edge
Ctrl+Shift+Home/EndExtend selection to the start/end of the draft
Alt+ASelect the whole draft; Ctrl+A retains line-start behavior
Alt+Home/EndMove to the start/end of the draft
Ctrl/Alt+Left/Right, Alt+B/FMove across a Unicode word or punctuation segment, skipping whitespace; add Shift to select
Ctrl+W, Ctrl/Alt+BackspaceDelete backward to the word boundary
Alt+D, Ctrl/Alt+DeleteDelete forward to the word boundary
Ctrl+U/KDelete to line start/end; at that edge, remove the adjacent newline
Ctrl+ZUndo the latest edit group
Ctrl+Y, Ctrl+Shift+ZRedo the latest undone edit group
Ctrl+C, Ctrl+InsertCopy selected composer text
Ctrl+X, Shift+DeleteCut selected composer text as one undoable edit
Ctrl+V, Shift+InsertPaste system-clipboard text, replacing the selection

Ctrl+O (prompt.external_editor) opens the whole draft, including folded pastes, in $VISUAL, else $EDITOR, else vi. The command may carry arguments, such as code --wait; a graphical editor needs its wait flag so Wisp knows when editing ends. The editor runs as the terminal’s foreground job: the TUI steps aside, keeps handling a running prompt’s events without redrawing, and repaints when the editor exits. Ctrl+C in the editor cancels only the edit, and suspending the editor with Ctrl+Z is ignored, since Wisp waits for it. Saving replaces the draft as one undoable edit; quitting without saving keeps the draft exactly, and an editor that exits with an error leaves it unchanged and says why. The draft goes through a temporary file only you can read, removed afterwards. A long draft comes back folded, as a restored prompt does.

While browsing transcript cards (F6), or in a card’s retained detail, the same key opens the file the selected card names in the same editor, at the right line: a read’s start line, a search’s first match, or the top of an edited or written file. The path is resolved against the folder the card’s run used and must name an existing file. Most editors are given +LINE path; VS Code and its forks (code, cursor, codium, windsurf) get --goto path:line, and Zed, Helix and Sublime Text get path:line.

Undo and redo retain at most 100 states and 4 MiB of draft text in each direction. Consecutive typing and repeated character deletion are grouped; paste, completion, file insertion, prompt-history restoration, and queued-draft restoration are individual steps. Sending or clearing a draft starts a new editing session and clears this process-local history.

Typing, pasting, Tab, and newline insertion replace the selection. Backspace and Delete remove it. Unmodified Left/Right collapse the selection to its start/end; a composer click clears it. Explicitly selecting a folded paste selects its exact underlying text, and replacement removes that selected text in one edit. Without a selection, a destructive edit into a paste marker expands it first. Rejected oversized edits preserve the draft and selection. Submission sends the entire draft. Ctrl+C copies when the composer owns a non-empty selection; without one it retains run-cancellation and idle-exit behavior. A failed cut preserves the selected draft, and clipboard paste follows the same control-character filtering, size limits, compact-fold handling, and undo behavior as bracketed paste. Native desktop clipboard access supports copy, cut, and paste; copy also emits an OSC52 fallback for remote terminals. From the transcript, Alt+Y (transcript.copy_last_response) copies the latest assistant response as raw Markdown, F6 browse mode selects messages, code blocks, thoughts, or cards with Tab/Shift+Tab, ↑/↓, or j/k and copies the selection on y, and dragging across painted transcript text copies on release.

Focused controls retain their local keys: picker arrows/Enter, completion Tab/Enter, card browsing Tab/Shift+Tab/Enter/Space, decision approval/denial, and editor navigation. They take precedence over custom application bindings. A bound theme toggle stays global except during theme preview. Binding theme.toggle to Ctrl+T also needs "session.tree": [], since two actions cannot share a chord. Ctrl+G opens read-only help for the current workflow, with resolved keys; Ctrl+G or Escape closes it without closing the underlying workflow. Ctrl+C keeps that workflow’s cancellation behavior. Approval/trust requests preempt help, and positive decisions require the request to be visible. Scroll help with arrows, PageUp/PageDown, Home/End, including at 30×9.

Only user settings supply this preference; project files are ignored even after trust. There is no public environment or CLI keybinding override. The launcher resolves user settings once and passes a private snapshot to Rust; the backend child does not inherit it. Bindings change frontend input only, not runtime policy. Limits are 64 KiB of configuration, 64 entries, eight chords per action, and 64 characters per chord.

Keybindings

KeyAction
EnterSubmit a prompt, queue a follow-up during a run, or activate the selected slash/file-picker item
Alt+EnterSteer the active run, or insert a newline while idle
Alt+UpWhile a prompt runs, restore the newest queued item to the composer
Ctrl+JInsert newline when a terminal cannot distinguish Shift+Enter from Enter
Shift+EnterInsert newline in Rust when the terminal reports the modified key
TabSwitch fuzzy/tree for an active file picker; complete an active slash command
Up / DownMove through an active suggestion menu
DownFrom an empty composer while background processes run, focus the first one in the side panel
Left / RightCollapse/expand the selected directory in tree mode
Shift+TabToggle plan/build mode
Ctrl+TOpen the session tree to switch branches (/tree)
Ctrl+PHide or show the side panel on a wide terminal; open or close it as an overlay otherwise
Ctrl+BWhile the agent runs a shell command in the foreground, move it to the background (in tmux, press it twice)
F8Focus the side panel for keyboard navigation ([/] switches between the four tabs; f expands/restores; b jumps Browser; i enters browser takeover; r refreshes)
F6Browse transcript messages, code blocks, and cards (Tab/↑/↓/j/k select, y copies, Right expands, Left collapses, Enter opens retained detail)
Alt+YCopy the last assistant response as raw source Markdown (with OSC 52 fallback over SSH)
Alt+GOpen /diff filtered to the latest turn that edited files (click or press Enter on any turn’s change summary in Browse for that turn’s diff)
Alt+SAttach or detach local ! shell output for the next prompt (Backspace on an empty draft detaches; !<command> runs a local shell command)
Ctrl+GToggle contextual help for the focused Rust surface
Ctrl+LEdit the address of the visible live Chromium tab, or focus the Browser view’s address bar when no page is open
Ctrl+RSearch prompt history for this TUI run
Ctrl+FFind text in the session transcript, including retained tool output; Enter jumps to the selected match
Ctrl+OEdit the draft in $VISUAL, $EDITOR, or vi, then return with the saved text; while browsing cards, open the selected card’s file
Mouse wheel / trackpadScroll the transcript without moving editor focus
PageUp / PageDownScroll the transcript by one page
Ctrl+Up / Ctrl+DownScroll the transcript by one line
Ctrl+Home / Ctrl+EndTraverse to the session beginning / return to the latest output
Esc twiceRewind to a prompt from an empty, idle composer
EscapeDismiss nearest menu or overlay, then cancel an active prompt
Ctrl+CCancel the active workflow or quit when idle
Ctrl+DDelete right; EOF only from an empty editor

Ctrl+G and /help open the same native contextual guide. It follows focus across the editor, tool cards, pickers, context reports, and safety decisions; its key reference is derived from live bindings. From composer or side-panel help, press k to open the full Keyboard shortcuts reference. Use / to filter by action or key, and Esc to clear the filter and return. The contextual help panel moves below the conversation on narrow terminals and never runs a tool, changes the session, or resolves an approval.