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 ID | Default keys | Behavior |
|---|---|---|
prompt.submit | Enter | Send a prompt, or queue a follow-up while running |
prompt.alternate_submit | Alt+Enter | Insert a newline while idle, or steer the active run |
prompt.newline | Shift+Enter, Ctrl+J | Insert newline |
queue.restore | Alt+Up | Restore newest queued draft |
queue.manage | Unbound (/queue) | Inspect queues, change drain modes, restore or clear |
history.open | Ctrl+R | Search submitted prompts |
transcript.find | Ctrl+F | Find 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_editor | Ctrl+O | Edit the draft, or open a browsed card’s file, in $VISUAL or $EDITOR |
theme.toggle | Unbound (/theme) | Toggle Paper / last dark theme |
panel.toggle | Ctrl+P | Show or hide the side panel |
run.background | Ctrl+B | Move the running shell command to the background |
panel.focus | F8 | Focus the side panel (Session, Files, Browser, Shortcuts; [ / ] tabs, t turn timeline, / file filter); Esc returns to the composer |
panel.background | Unbound (Down, /ps) | Focus the side panel’s background processes |
session.tree | Ctrl+T | Open the session tree to switch branches (/tree) |
transcript.browse | F6 | Browse and copy transcript messages, code blocks, and cards |
transcript.copy_last_response | Alt+Y | Copy the last assistant response (raw source Markdown) |
transcript.turn_diff | Alt+G | Open /diff filtered to the latest editing turn |
shell.attach_output | Alt+S | Attach or detach local ! shell output for the next prompt |
transcript.page_up, transcript.page_down | PgUp, PgDn | Scroll one page |
transcript.home, transcript.tail | Ctrl+Home, Ctrl+End | Oldest content / live tail |
transcript.line_up, transcript.line_down | Ctrl+Up, Ctrl+Down | Scroll 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:
| Keys | Behavior |
|---|---|
| Shift+arrows, Shift+Home/End | Extend selection by character, line, or to a line edge |
| Ctrl+Shift+Home/End | Extend selection to the start/end of the draft |
| Alt+A | Select the whole draft; Ctrl+A retains line-start behavior |
| Alt+Home/End | Move to the start/end of the draft |
| Ctrl/Alt+Left/Right, Alt+B/F | Move across a Unicode word or punctuation segment, skipping whitespace; add Shift to select |
| Ctrl+W, Ctrl/Alt+Backspace | Delete backward to the word boundary |
| Alt+D, Ctrl/Alt+Delete | Delete forward to the word boundary |
| Ctrl+U/K | Delete to line start/end; at that edge, remove the adjacent newline |
| Ctrl+Z | Undo the latest edit group |
| Ctrl+Y, Ctrl+Shift+Z | Redo the latest undone edit group |
| Ctrl+C, Ctrl+Insert | Copy selected composer text |
| Ctrl+X, Shift+Delete | Cut selected composer text as one undoable edit |
| Ctrl+V, Shift+Insert | Paste 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
| Key | Action |
|---|---|
Enter | Submit a prompt, queue a follow-up during a run, or activate the selected slash/file-picker item |
Alt+Enter | Steer the active run, or insert a newline while idle |
Alt+Up | While a prompt runs, restore the newest queued item to the composer |
Ctrl+J | Insert newline when a terminal cannot distinguish Shift+Enter from Enter |
Shift+Enter | Insert newline in Rust when the terminal reports the modified key |
Tab | Switch fuzzy/tree for an active file picker; complete an active slash command |
Up / Down | Move through an active suggestion menu |
Down | From an empty composer while background processes run, focus the first one in the side panel |
Left / Right | Collapse/expand the selected directory in tree mode |
Shift+Tab | Toggle plan/build mode |
Ctrl+T | Open the session tree to switch branches (/tree) |
Ctrl+P | Hide or show the side panel on a wide terminal; open or close it as an overlay otherwise |
Ctrl+B | While the agent runs a shell command in the foreground, move it to the background (in tmux, press it twice) |
F8 | Focus the side panel for keyboard navigation ([/] switches between the four tabs; f expands/restores; b jumps Browser; i enters browser takeover; r refreshes) |
F6 | Browse transcript messages, code blocks, and cards (Tab/↑/↓/j/k select, y copies, Right expands, Left collapses, Enter opens retained detail) |
Alt+Y | Copy the last assistant response as raw source Markdown (with OSC 52 fallback over SSH) |
Alt+G | Open /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+S | Attach or detach local ! shell output for the next prompt (Backspace on an empty draft detaches; !<command> runs a local shell command) |
Ctrl+G | Toggle contextual help for the focused Rust surface |
Ctrl+L | Edit the address of the visible live Chromium tab, or focus the Browser view’s address bar when no page is open |
Ctrl+R | Search prompt history for this TUI run |
Ctrl+F | Find text in the session transcript, including retained tool output; Enter jumps to the selected match |
Ctrl+O | Edit the draft in $VISUAL, $EDITOR, or vi, then return with the saved text; while browsing cards, open the selected card’s file |
| Mouse wheel / trackpad | Scroll the transcript without moving editor focus |
PageUp / PageDown | Scroll the transcript by one page |
Ctrl+Up / Ctrl+Down | Scroll the transcript by one line |
Ctrl+Home / Ctrl+End | Traverse to the session beginning / return to the latest output |
Esc twice | Rewind to a prompt from an empty, idle composer |
Escape | Dismiss nearest menu or overlay, then cancel an active prompt |
Ctrl+C | Cancel the active workflow or quit when idle |
Ctrl+D | Delete 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.