Skip to content

Keybindings

This page lists Chord’s TUI key bindings. Insert and Normal mode actions can be remapped via keymap: in config.yaml; dialogs use the keys shown in their action hints.

The TUI has two modes:

  • Insert mode: the input box is focused; you type messages
  • Normal mode: the transcript is focused; you navigate, search, fold, scroll, etc.

Press Esc to leave Insert mode for Normal mode; press i (or any unbound printable key) to return to Insert mode. While the agent is running, pressing Esc a second time in Normal mode cancels the current turn.

Key Action
Esc Leave Insert mode, switch to Normal mode
Enter Complete the visible slash-command suggestion; otherwise send the message
Alt+Enter MainAgent: save a task to run after the current task ends normally
Shift+Enter Insert a newline
Ctrl+J Insert a newline (alternative when terminal does not deliver Shift+Enter)
Up Recall the previous user message into the composer (or move history up if composer non-empty)
Down / Ctrl+N Move history down
Ctrl+V / Alt+V Attach an image or PDF from the system clipboard asynchronously; Alt+V works when the terminal reserves Ctrl+V
Cmd+V / paste Paste text only; terminal paste events never probe clipboard attachments
Ctrl+U Clear the input box and pending attachments
Ctrl+Z Undo the last composer edit, including text, inline pastes, and attachments
Alt+← Open the newest pre-compaction snapshot, preserving the draft and cursor
PgUp / PgDown Page the transcript up / down without leaving Insert mode
Shift+Tab Cycle the focused agent view without changing the role.
Tab Complete the visible slash-command or @-mention suggestion; otherwise does nothing

Undo keeps at most 64 edits within an 8 MiB budget, including attachment bytes. Consecutive typing within 750 ms is merged; cursor movement, paste, completion, and deletion split transactions. An oversized snapshot clears undo history; large attachments can therefore also prevent undoing ordinary text edits. Pressing Undo when that limit prevents restoration shows a size-limit notice. Sending, switching session or agent, and history navigation end the undo history. Restoring clears the selection. Remap the shortcut with insert_undo.

Key Action
i Return to Insert mode
q Press twice within ~2s to quit
Ctrl+C Press twice within ~2s to quit; inside an overlay or dialog it performs the same back, close, or cancel action as Esc
? Toggle the in-app help / cheatsheet overlay
Esc (when agent is running) Cancel the current turn
Shift+Tab Cycle the focused agent view without changing the role.

Shift+Tab cycles agent views in both Insert and Normal modes. Alt+R changes the role in the main agent view. Ctrl+X stops the active turn and running subagents, leaves loop mode, and keeps the unsent draft.

Key Action
↓ / ↑ Scroll one line
Ctrl+F / PgDown Scroll one full page down
Ctrl+B / PgUp Scroll one full page up
G Jump to the bottom
gg Jump to the top (two-key sequence)
Key Action
j Move to the next message card
k Move to the previous message card
} / { Jump to the next / previous user message card (turn boundary)
) / ( Jump to the next / previous assistant message card
] / [ Jump to the next / previous message card of the same type as the current card
o / Enter / Space Toggle collapse / expand on the current card; on an image card, open the image
e Edit the focused user message; forks only when that message is not the transcript tail

The structural jumps (}, ), ] and their counterparts) accept a count prefix, so 3} moves three user cards forward and 2( moves two assistant cards backward. Each jump skips all other card types and never lands on error cards; when no matching card exists in that direction the view stays put. ] / [ use the focused card’s type as the template, or the card at the top of the viewport when nothing is focused.

Key Action
Ctrl+T Open the message directory (jump-to-card overlay)
Ctrl+E Open the error panel
$ Open the usage statistics overlay
Alt+← Open the newest pre-compaction snapshot

Alt+← opens history in both Insert and Normal modes. Within history, Alt+← / Alt+→ visit earlier / later snapshots. Moving forward from the newest returns to the live session, restoring the draft and cursor; Alt+→ in the live session keeps its mode-specific behavior. Search fields and dialogs keep their editing keys. See Compaction history browser.

The defaults also accept Alt+b / Alt+f, which terminals such as Ghostty on macOS send for Option+← / Option+→. Remapping an action replaces all of its defaults; an empty list disables it.

History hides the message input and keeps the sidebar and bottom status bar. Esc returns to the live session; while searching, it first closes the history search field. The left side of the status bar shows the corresponding Esc hint.

Key Action
/ Start a search
n Jump to the next match
N Jump to the previous match

While entering a search, Enter confirms it and Esc cancels it. Backspace edits a non-empty query normally; when the query is already empty, Backspace cancels the search like Esc. Therefore, deleting the final character keeps search mode active, and one more Backspace exits it, matching Vim behavior.

Search covers visible textual content across conversation cards, including user and assistant text, original and translated thinking, tool arguments and output, file diffs, completion reports, compaction summaries, local shell output, and visible attachment or file-reference labels. A matching collapsed card is expanded before Chord scrolls to and highlights the text. Search remains card-based: each matching card counts once, and only the current card’s first visible occurrence is highlighted. Image pixels are not OCR-searched, and Markdown syntax or hidden link targets that are not rendered as visible text cannot receive a visible highlight.

Search also covers older regions of lazily loaded large sessions. Chord loads a cold card only long enough to verify that the match is actually visible, then keeps the off-screen region cold until navigation needs it.

Both modes: agents, models, and integrations

Section titled “Both modes: agents, models, and integrations”
Key Action
Alt+R Cycle roles in the main agent view; a worker view prompts you to return to main
Ctrl+X Stop the current operation; also leave loop mode, keeping the draft and session
Ctrl+P Open the model-pool selector in both Insert and Normal modes.
Ctrl+R Normal mode: cycle service tier for subsequent model requests, limited to tiers supported by the current provider/model; /tier slash completion predicts the same next tier and is hidden when there is no actual switch target
Ctrl+Y Toggle YOLO mode: releases in-scope confirmations and call-level permission limits for the main agent; role capability boundaries and directory membership hold
Ctrl+O Open the MCP server selector; manual changes while running apply on the next model request
Ctrl+G Export a diagnostics bundle

Ctrl+O opens the MCP server selector in both Insert and Normal mode. You can open it while the agent is running to inspect server status and toggle manual servers; changes made during a running turn apply to the next model request. Only servers configured with manual: true can be toggled; auto-start servers are always read-only in the selector.

Transcript cards, the composer input, and Done/Handoff Markdown viewers share the same mouse selection gestures: drag to select a range, double-click to select the current word, and triple-click to select the current visible line.

Double-click the working-directory segment or the session id in the status bar to copy it; a segment shown truncated still copies its full value. The clickable columns are the ones the row actually draws, so a segment cut away by the terminal width or the activity lane is not a copy target. Clicking the jobs pill opens the JOBS list overlay.

Click a visible action label in a confirmation dialog to perform the same action as its displayed keyboard shortcut. Clicking the dialog body or blank space does nothing. Keyboard shortcuts remain available when the terminal does not forward mouse events.

Content viewer: Done reports and Handoff plans

Section titled “Content viewer: Done reports and Handoff plans”

Done confirmation dialogs and Handoff plan selectors can open a read-only Markdown viewer with V. The viewer keeps the right sidebar visible, supports mouse-wheel scrolling, and shows esc ⇢ close view in the status bar.

Key / Mouse Action
Esc / q Close the viewer and return to the previous Done or Handoff dialog
j / k, ↓ / ↑ Scroll one line
Ctrl+F / Ctrl+B Scroll one page down / up
g / G Jump to top / bottom
Mouse drag Select and highlight text in the viewer
Cmd+C / Super+C Copy the highlighted range only
y Copy the highlighted range and clear the highlight
yy Copy the full raw Markdown content

Handoff plan views include the plan path at the top so it can be selected and copied with the same controls.

Questions open automatically and share a queue with permission, completion, and Handoff dialogs. Automatic display keeps the timer running. Editing or navigating a question requests permanent timer cancellation; cancellation takes effect after acknowledgment.

Tab switches between custom input and options and keeps the draft. Enter submits; Shift+Enter / Ctrl+J inserts a newline. Numbers submit single choices or toggle multiple choices; Space also toggles. Esc cancels the question from the option list; in the custom input of a question with options, Esc returns to the options and keeps the draft. The question stays on screen until you submit it or cancel it. A question can only be answered or cancelled — there is no “declined” state that leaves the required decision unresolved. Use PgUp / PgDown or the wheel for long questions; once the question cannot scroll further they move the conversation behind it, and the wheel follows the pointer.

In the model-pool selector, press / to edit a filter, then Enter to switch to the highlighted pool. While editing a filter, Esc clears it and returns to the list; in the list, Esc closes the selector. In the skill selector, Enter fills the composer with a command. The skill loads only after you add any arguments and send it.

You can override any binding in config.yaml:

keymap:
next_block: ["j"] # next-card is j only
prev_block: ["k"] # prev-card is k only
next_user_block: ["}"] # } jumps to the next user card (turn boundary)
prev_user_block: ["{"] # { jumps to the previous user card
scroll_down: ["down"] # arrow keys for line scrolling only
scroll_up: ["up"]
quit: ["Q"] # require shift for quit
switch_model: ["ctrl+t"] # choose a different key if you prefer

Use an empty list to disable an action’s configurable shortcut:

keymap:
insert_undo: []

Project settings override global settings one action at a time; an unconfigured action uses its built-in default.

Declaration in a configuration layer Result
Action omitted, or keymap: {} Inherit the action from the lower layer
quit: [] Disable the configurable Quit shortcut
quit: ["Q"] Replace the action’s entire key list
quit: null, a scalar, or a list containing an invalid item Ignore the entire action declaration and inherit from the lower layer
keymap: null, a scalar, or a list Ignore this layer’s entire keymap

For example, global quit: [] stays disabled when the project omits quit or supplies an invalid declaration. Project quit: ["Q"] binds it again. Other valid actions still apply when one declaration is invalid.

Disabling a shortcut leaves the key available for other actions or text input. Fixed Ctrl+C, Normal mode’s cancel Esc, and dialogs’ own keys remain available. Disabling insert_newline clears the composer’s newline bindings while preserving multiline paste and dialog editing. Help and startup hints omit unbound actions. If you disable the sending or mode-switching shortcuts you need, edit the configuration and restart to restore them.

Each action takes a list of strings. Quote keys such as "1": YAML numbers, booleans, and null are invalid list items. A key can be a named key such as enter, esc, space, pgup, or f1 through f63, a printable character, or a single Unicode grapheme such as an accented character or emoji. Names are case-sensitive: g and G differ; escape, return, f01, and gg are not key names.

Modifiers are ctrl, alt, shift, meta, hyper, and super, each at most once. Their order is normalized to that order, so shift+ctrl+left becomes ctrl+shift+left. + and ctrl++ are valid. A single space becomes space; identical normalized keys are deduplicated. Extra whitespace is not trimmed, and shift+a is not converted to A. Chord keeps ctrl+i distinct from tab and ctrl+m from enter.

For scroll_to_top_seq and fork_session, list the keys that can occupy each position in the two-key sequence. For example, ["f1"] means press F1 twice; ["g", "h"] allows either key at either position. Do not write "gg" as one key.

Startup notices and chord doctor config report unknown actions, invalid types, and invalid key names with the source file, line, and field path. A rejected action’s report also shows its effective binding (or disabled) and where that setting came from. Fix the declaration at the reported location and restart.

Chord also detects some definite cases where an earlier handler takes a configured key: fixed ctrl+c and super+c, Stop before Undo in Insert mode, and Stop before Switch Role in Normal mode (excluding the fixed ctrl+m entry). These warnings preserve your bindings. Other contexts, sequences, completion, selection, and overlays are not fully analyzed; no warning does not guarantee a shortcut is reachable. A valid key name also does not guarantee your terminal can send it.

Custom key bindings only work when your terminal emulator, OS, and any multiplexer such as tmux forward that key sequence to Chord. Prefer plain printable keys in Normal mode or simple ctrl+letter combinations that do not already have strong terminal meanings.

Cmd+V on macOS is often handled by the terminal or wrapper before Chord can see it. Chord treats forwarded super+v and terminal paste events as text-only. Use Ctrl+V or Alt+V (the insert_attach_clipboard action) to read an image or PDF from the system clipboard. Windows Terminal reserves Ctrl+V for text paste by default, so use Alt+V there and in WSL sessions hosted by it. In cmux, image-only Cmd+V may still be converted by the cmux/Ghostty paste layer into a temporary file path; Chord treats that path as ordinary pasted text.

Avoid these as default/custom bindings unless you have tested them in your exact terminal setup:

  • Other alt+letter / Option combinations on macOS: terminals such as Ghostty may use Option for text input, menu shortcuts, or app-level bindings, so verify custom combinations in your terminal. Alt+V is provided primarily as the Windows Terminal/WSL attachment fallback.
  • ctrl+i, ctrl+m, and ctrl+[: traditional terminals encode these the same as Tab, Enter, and Esc.
  • ctrl+s and ctrl+q: these can be intercepted by software flow control.
  • ctrl+c, ctrl+z, and ctrl+\\: these have signal/cancel/suspend meanings in terminals.
  • Function keys or ctrl+shift+... combinations: support varies across terminals, keyboard layouts, SSH, and tmux.

If a custom binding does not work, run chord doctor config first. Open help with your configured help key (default ? in Normal mode) to inspect the effective mapping, then check whether the terminal receives the key with tools such as showkey, cat, or your terminal’s key-event inspector.

Action names are the lower snake_case identifiers you set in config.yaml; the table below lists the ones Chord ships. Keys are the strings produced by Bubble Tea’s tea.KeyMsg.String(), e.g. "esc", "enter", "shift+enter", "ctrl+p", "ctrl+shift+left", "j", "down", "space", " ".

Action names here are the names used in config.yaml (for keymap:).

Action Default
insert_escape ["esc"]
insert_submit ["enter"]
insert_newline ["shift+enter", "ctrl+j"]
insert_history_search ["ctrl+r"]
insert_history_up ["up"]
insert_history_down ["down", "ctrl+n"]
insert_attach_clipboard ["ctrl+v", "alt+v"] (attach a clipboard image or PDF)
insert_attach_file []
insert_clear_input ["ctrl+u"]
insert_undo ["ctrl+z"]
insert_page_up ["pgup"] (page the transcript)
insert_page_down ["pgdown"] (page the transcript)
enter_insert ["i"]
quit ["q"]
help_toggle ["?"]
scroll_down ["down"]
scroll_up ["up"]
full_page_down ["ctrl+f", "pgdown"]
full_page_up ["ctrl+b", "pgup"]
scroll_to_bottom ["G"]
scroll_to_top_seq ["g"] (first key of gg)
next_block ["j"]
prev_block ["k"]
next_user_block ["}"]
prev_user_block ["{"]
next_assistant_block [")"]
prev_assistant_block ["("]
next_same_type_block ["]"]
prev_same_type_block ["["]
toggle_collapse ["o", "enter", " ", "space"]
fork_session ["e"]
directory ["ctrl+t"]
usage_stats ["$"]
error_panel ["ctrl+e"]
search_start ["/"]
search_next ["n"]
search_prev ["N"]
switch_agent ["shift+tab"]
switch_role ["alt+r"]
stop ["ctrl+x"]
background_jobs ["ctrl+j"]
switch_model ["ctrl+p"]
service_tier ["ctrl+r"]
yolo ["ctrl+y"]
mcp ["ctrl+o"]
diagnostics ["ctrl+g"]
compaction_history ["alt+left", "alt+b"] (open history in Insert or Normal mode, or visit an earlier snapshot)
compaction_history_next ["alt+right", "alt+f"] (visit a later snapshot, then return to the live session)

Only the actions you list are overridden; all others fall back to the defaults above.

Press your configured help key (default ?) in Normal mode to toggle an in-app cheatsheet that reflects your current effective bindings, useful after you have customized keymap.

Ctrl+R opens saved input search in Insert mode and retains service-tier switching in Normal mode. Customize the search binding with keymap.insert_history_search. Inside search, Ctrl+R selects the next result, Enter restores without sending, Esc / Ctrl+C closes, Ctrl+U clears the query, Tab / Shift+Tab cycles the query and filters, and Ctrl+PageUp / Ctrl+PageDown pages the preview.