Skip to main content

Input Shortcuts

These shortcuts work while typing at the prompt.
ShortcutDescription
EnterSubmit your message
Shift+Enter or Alt+EnterInsert a newline (for multi-line input)
Shift+TabCycle between modes (Normal, Plan, Bypass)
Ctrl+CCancel current input (clears text), or cancel running agent
Ctrl+DExit (when input is empty)
EscCancel running agent
Ctrl+GOpen external editor for composing your message
Ctrl+OOpen full-screen viewer for the thinking trace
Ctrl+LRedraw / refresh the screen
Ctrl+VPaste image from clipboard (images appear in input area; use Left/Right to navigate, Backspace to remove)
@Open file/directory autocomplete to add context
On macOS, Alt is the Option key. Some shortcuts below use Alt (Option) as a modifier.

Mode & Model Shortcuts

ShortcutDescription
Shift+TabCycle to the next mode (Normal → Plan → Bypass → Normal)
Alt+T (macOS: Opt+T)Cycle thinking level for the current model
You can also switch modes with slash commands: /normal, /plan, /bypass, or /mode <name>.

Text Editing

The input uses Emacs-style keybindings for text editing.

Cursor Movement

ShortcutDescription
Left or Ctrl+BMove backward one character
Right or Ctrl+FMove forward one character
Alt+Left or Alt+BMove backward one word
Alt+Right or Alt+FMove forward one word
Home or Ctrl+AMove to beginning of line
End or Ctrl+EMove to end of line
Up or Ctrl+PMove to previous line (or browse history when on first line)
Down or Ctrl+NMove to next line

Deleting Text

ShortcutDescription
Backspace or Ctrl+HDelete character before cursor
Delete or Ctrl+DDelete character at cursor
Ctrl+KKill (cut) from cursor to end of line
Ctrl+UKill (cut) from cursor to beginning of line
Alt+D or Alt+DeleteKill (cut) word forward
Alt+BackspaceKill (cut) word backward
Ctrl+WKill (cut) word backward (whitespace-delimited)

Text Manipulation

ShortcutDescription
Ctrl+TTranspose (swap) characters around cursor
Alt+UUppercase the current word
Alt+LLowercase the current word
Alt+CCapitalize the current word

Autocomplete Menu

When the autocomplete menu appears (e.g., after typing / or @):

Passive Mode (ghost text shown, not yet inserted)

ShortcutDescription
TabAccept and insert the completion
Down or Ctrl+NMove to next item and insert
Up or Ctrl+PMove to previous item and insert
Shift+TabMove to previous item and insert
Right or Ctrl+FAccept if cursor is at end of input
EscDismiss the menu

Active Mode (completion is inserted in buffer)

ShortcutDescription
Tab or Down or Ctrl+NCycle to next completion
Shift+Tab or Up or Ctrl+PCycle to previous completion
Enter or Right or Ctrl+FAccept the current completion
EscDismiss and revert

Tool Approval Prompt

When the agent requests permission to run a tool:
ShortcutDescription
EnterSelect the highlighted option
Up / DownNavigate options
1-9Jump to option by number (press Enter to confirm)
Esc or Ctrl+CReject the tool call

Subagent Panel

When subagents are running in the background, you can view them in the subagent panel.

Opening the Panel

ShortcutDescription
Down (from input)Focus the subagent indicator (when subagents exist)
Enter (on indicator)Open the subagent panel

Selector Mode (choosing a subagent)

ShortcutDescription
Up / k / Shift+Tab / Ctrl+PMove up
Down / j / Tab / Ctrl+NMove down
EnterView selected subagent
fForeground a background subagent
xCancel the selected subagent
Esc or Ctrl+CClose the panel

View Mode (viewing a subagent)

ShortcutDescription
fForeground the subagent
xCancel the subagent
Esc or Ctrl+CGo back to selector

Running Agent

While the agent is actively working:
ShortcutDescription
Ctrl+C or EscCancel / interrupt the agent
Ctrl+BMove a foreground subagent to the background

Agent Question Panel

When the agent asks a multi-choice question, these shortcuts are available:
ShortcutDescription
Up / DownMove between options
SpaceToggle selection (multi-select questions)
e or Shift+EnterType a custom answer for the selected option
EnterSubmit your answer
EscCancel typing / exit text editing
?Ask the agent to help you decide
Tab / Shift+TabNavigate between questions (multi-question panels)