Skip to content

M31A's shortcuts are defined in packages/cli/src/ui/key/keyBindings.ts and grouped into ten categories. Press ? in the UI for the in-app shortcut list, or run /shortcuts.

Basic controls ​

ActionDefault keys
Confirm selectionEnter
Cancel / dismissEscape, Ctrl+[
Cancel request or quit when input is emptyCtrl+C
Exit when input is emptyCtrl+D

Cursor movement ​

ActionDefault keys
Start of lineCtrl+A, Home
End of lineCtrl+E, End
Move up / downUp, Down
Move leftLeft
Move rightRight, Ctrl+F
Word leftCtrl+Left, Alt+Left, Alt+B
Word rightCtrl+Right, Alt+Right, Alt+F

Editing ​

ActionDefault keys
Delete to end of lineCtrl+K
Delete to start of lineCtrl+U
Clear inputCtrl+C
Delete previous wordCtrl+Backspace, Alt+Backspace, Ctrl+W
Delete next wordCtrl+Delete, Alt+Delete, Alt+D
Delete character leftBackspace, Ctrl+H
Delete character rightDelete, Ctrl+D
UndoPlatform-dependent: Alt+Z, Cmd+Z, Ctrl+Z (Linux), Cmd+Z/Alt+Z (macOS), Ctrl+Z/Alt+Z (Windows)
RedoCtrl+Shift+Z, Cmd+Shift+Z, Alt+Shift+Z

Scrolling ​

ActionDefault keys
Scroll up / downShift+Up, Shift+Down
Scroll to topCtrl+Home, Shift+Home
Scroll to bottomCtrl+End, Shift+End
Page up / downPageUp, PageDown
ActionDefault keys
Previous history entryCtrl+P
Next history entryCtrl+N
Reverse searchCtrl+R
Submit reverse-search matchEnter
Accept suggestion in reverse searchTab
ActionDefault keys
Move selection up / downUp, Down
Dialog up / downUp/K, Down/J
Next dialog itemTab
Previous dialog itemShift+Tab

Suggestions and completions ​

ActionDefault keys
Accept suggestionTab, Enter
Previous completionUp, Ctrl+P
Next completionDown, Ctrl+N
Expand / collapse suggestionRight, Left

Text input ​

ActionDefault keys
Submit promptEnter
Queue messageTab
Queue prompt while runningCtrl+Enter
Steer current turnCtrl+S
NewlineCtrl+Enter, Cmd+Enter, Alt+Enter, Shift+Enter, Ctrl+J
Open external editorCtrl+G, Ctrl+Shift+G
Paste from clipboardCtrl+V, Cmd+V, Alt+V

App controls ​

ActionDefault keys
Error details / debug consoleF12
Full TODO listCtrl+T
IDE context detailF4
Toggle Markdown renderingAlt+M
Toggle copy modeF9
Toggle mouse modeCtrl+S
Toggle YOLO modeCtrl+Y
Toggle sidebarAlt+S, F10
Cycle approval modeShift+Tab
Show more linesCtrl+O
Expand paste placeholderCtrl+O
Focus / unfocus shell inputTab, Shift+Tab
Clear screenCtrl+L
Restart appR, Shift+R
Suspend appCtrl+Z
Voice push-to-talkSpace

Background shell controls ​

ActionDefault keys
Dismiss background shell listEscape
Select in background shell listEnter
Toggle current shellCtrl+B
Toggle shell listCtrl+L
Kill active shellCtrl+K
Unfocus shell / shell listShift+Tab, Tab

Other controls ​

ActionDefault keys
Update extensionI
Link extensionL
Dump current frameF8
Start / stop recordingF6, F7
Open command paletteCtrl+Shift+P, Alt+P
Leader key chordAlt+X

Customizing keybindings ​

Create ~/.m31a/keybindings.json (path reported by Storage.getUserKeybindingsPath()). Entries merge over the defaults. Each entry names a command ID, a key or keys array, and can negate a command to remove inherited defaults:

json
[
  {"command": "app.cycleApprovalMode", "key": "ctrl+shift+a"},
  {"command": "-basic.confirm", "key": "enter"},
  {"command": "app.openCommandPalette", "keys": ["ctrl+p", "alt+p"]}
]

Invalid commands or bindings are reported at load time. Vim mode can be enabled with general.vimMode in settings or with /vim.

Next steps ​

See Slash commands for the commands these keys trigger.

Built with VitePress. Powered by NVIDIA NIM.