Skip to content

Latest commit

 

History

History
67 lines (57 loc) · 4.2 KB

File metadata and controls

67 lines (57 loc) · 4.2 KB

Keyboard Shortcuts

General

Shortcut Description
Esc Close dialogs and suggestions
Ctrl+C Cancel ongoing request and clear input. Press twice to exit.
Ctrl+D Exit if input is empty. Press twice to confirm.
Ctrl+L Clear the screen
Ctrl+O Toggle debug console
Ctrl+S Disable output truncation for long responses
Ctrl+T Toggle tool descriptions
Shift+Tab (Tab on Windows) Cycle approval modes: plandefaultauto-edityolo

Input prompt

Shortcut Description
Enter Submit prompt
\ + Enter (at end of line) Insert a newline
Up Arrow / Ctrl+P Navigate input history up
Down Arrow / Ctrl+N Navigate input history down
Ctrl+R Reverse search through history
Tab Accept current autocomplete suggestion
! (empty input) Toggle shell mode
? (empty input) Toggle keyboard shortcuts display
Ctrl+A / Home Move cursor to beginning of line
Ctrl+E / End Move cursor to end of line
Ctrl+B / Move cursor left one character
Ctrl+F / Move cursor right one character
Ctrl+Left / Meta+B Move cursor left one word
Ctrl+Right / Meta+F Move cursor right one word
Ctrl+H / Backspace Delete character to left
Ctrl+D / Delete Delete character to right
Ctrl+W / Meta+Backspace Delete word to left
Meta+Delete / Ctrl+Delete Delete word to right
Ctrl+K Delete to end of line
Ctrl+U Delete to beginning of line
Ctrl+V (Windows: Alt+V) Paste clipboard (image pastes insert a file reference)
Ctrl+X / Meta+Enter Open input in external editor
Ctrl+Y Retry last failed request
Ctrl+Z / Ctrl+Shift+Z Undo / redo input
Esc (double) Clear input prompt

Suggestions

Shortcut Description
Up Arrow Navigate suggestions up
Down Arrow Navigate suggestions down
Tab / Enter Accept selected suggestion

Radio button select

Shortcut Description
Up Arrow / k Move selection up
Down Arrow / j Move selection down
Enter Confirm selection
1–9 Select item by number

IDE integration

Shortcut Description
Ctrl+G View context received from the IDE