Skip to content

Keyboard shortcuts

This table reflects the released code rather than the older README shortcut table.

Shortcut Context Behavior
Shift+Enter Code editor Run the cell; append a cell if it was last; focus the next cell. Whitespace-only cells are no-ops.
Cmd+Enter Code editor Run the cell and keep focus in the current cell.
Cmd+Shift+Enter Main window Run all nonempty cells in the active tab in order.
Cmd+1 Main window Switch to Tab 1.
Cmd+2 Main window Switch to Tab 2.
Cmd+3 Main window Switch to Tab 3.
Cmd+4 Main window Switch to Tab 4.
Tab Code editor Indent using CodeMirror’s indentWithTab binding.
Cmd+Q Native Molt menu Quit Molt and trigger kernel cleanup.
Standard macOS edit shortcuts Code editor or text field Undo, redo, cut, copy, paste, and select all through CodeMirror or the native Edit menu.
Action Available control
Restart kernel ↻ Restart toolbar button
Stop kernel ■ Stop toolbar button
Clear tab Clear toolbar button
Open Settings File → Settings…
Add, move, or delete a cell Cell and notebook pointer controls

Focus a cell, then press Esc to enter command mode. The following keys act on that cell:

Shortcut Behavior
A Insert and focus a code cell above.
B Insert and focus a code cell below.
DD Delete the cell when pressed within 500 ms.

Cell execution bindings are installed at CodeMirror’s highest precedence. Shift+Enter and Cmd+Enter are intercepted before the default editor keymap. Other standard CodeMirror bindings remain available unless they conflict with a global macOS or application command.