Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Keyboard Shortcuts

Keyboard shortcuts are context-sensitive. Use /docs shortcuts in the app to show the live shortcuts for the current state.

Global

ShortcutAction
Ctrl+QQuit.
Ctrl+LRedraw.
Ctrl+Z on UnixSuspend the process.

When the app is blocked before a usable session is available, Ctrl+C quits.

Chat Input

ShortcutAction
EnterSubmit.
Shift+Enter, Ctrl+EnterInsert newline.
EscCancel the active assistant turn.
Ctrl+CClear the local draft, or quit when the draft is empty.
TabFocus prompts or accept suggestions.
Shift+TabCycle mode.
Arrow keysMove through text.
Home, EndMove to line start or line end.
Ctrl+Left, Ctrl+RightMove by word.
Alt+Left, Alt+RightMove by word.
Ctrl+Backspace, Ctrl+DeleteDelete by word.
Alt+Backspace, Alt+DeleteDelete by word.

Readline-style bindings are also supported:

ShortcutAction
Ctrl+A, Ctrl+EMove to line start or line end.
Ctrl+B, Ctrl+FMove one character.
Ctrl+DDelete after cursor.
Ctrl+HDelete before cursor.
Ctrl+KKill to line end.
Ctrl+UKill to line start.
Ctrl+WDelete previous word.
Ctrl+YYank.
Alt+B, Alt+FMove by word.
Alt+DDelete next word.

Undo And Redo

PlatformUndoRedo
macOSCmd+ZCmd+Shift+Z, Cmd+Y
WindowsCtrl+ZCtrl+Shift+Z
Unix except macOSCtrl+_, Ctrl+/Ctrl+Shift+Z

On Unix except macOS, Ctrl+Z is reserved for process suspend.

Autocomplete

ShortcutAction
Up, DownMove through candidates.
Enter, TabAccept the selected candidate.
EscCancel autocomplete.

Inline Permissions

ShortcutAction
Left, UpMove to the previous option.
Right, DownMove to the next option.
EnterConfirm the focused option.
EscCancel.
TabMove focus.

Letter shortcuts such as Ctrl+A, Ctrl+Y, or Ctrl+N are not permission shortcuts.

Inline Questions

ShortcutAction
Left, UpMove to the previous option.
Right, DownMove to the next option.
Home, EndMove to first or last option.
SpaceToggle/select where applicable.
EnterSubmit.
EscCancel.
TabToggle notes or move focus.
Shift+TabMove focus backward.