Cmd/ctrl below indicates command on Mac and control on Windows and Linux. These instructions are for English/QWERTY keyboards.
Hex supports a number of keyboard shortcuts, most modeled after the standard Jupyter set, which make a distinction whether you are selected into a cell or not.
For a full list of supported keyboard shortcuts see the table here.
While in edit mode, you can type in a cell as with a normal text or code editor.
enter/return to run an individual cell
enter/return to run a cell and add a new cell after
enter/return to run a cell and scroll to the next, or add a new cell if there isn't one immediately following
escape to select out of the cell (enter Command mode)
shift-tab to trigger in-line documentation for Python functions
You are in command mode if you are selected out of a cell.
k to navigate down or up
a to add a cell above
b to add a cell below
d twice) to delete a cell
enter/return to select into a cell (enter Edit mode)
You can select multiple cells in several ways:
cmd/ctrl + up/down arrow or
shift + click. After selecting a block of cells you can move them up/down (with the usual
cmd/ctrl up/down arrow) as well as copy/cut/paste (
cmd/ctrl + c/x/v)
Below are some actions we currently support with keyboard shortcuts. More complex actions (e.g. creating Input parameters, getting share links) are available via our Command palette.
|Move cell down||Cmd + J, Cmd + Down||Command|
|Move cell up||Cmd + K, Cmd + Up||Command|
|Navigate to App Builder||Alt + 4||Command, Edit|
|Navigate to Logic View||Alt + 3||Command, Edit|
|Restart and run all||Alt + R||Command, Edit|
|Move cursor up||Up||Edit|
|Move cursor down||Down||Edit|
|Undo||Cmd + Z||Edit|
|Redo||Ctrl + Shift + Z||Edit|
|Select All||Cmd + A||Edit|
|Dedent||Cmd + [||Edit|
|Indent||Cmd + ]||Edit|
|Code completion or indent||Tab||Edit|
|Change the cell type to Markdown||M||Command|
|Change the cell type to Code||Y||Command|
|Open the command palette||Cmd + P||Command, Edit|
|Undo cell deletion||Z||Command|
|Delete selected cells||D + D||Command|
|Insert cell below||B||Command|
|Insert cell above||A||Command|
|Select cell below||Down, J||Command|
|Select cell above||Up, K||Command|
|Select multiple cells||Shift + Up/Down, K/J||Command|
|Copy/Cut/Paste cell||Cmd + C/X/V||Command|
|Exit Command (enter Edit )||Enter (cell needs focus)||Command|
|Enter Command (from Edit )||Esc (cell needs focus)||Command, Edit|
|Save checkpoint||Cmd + S||Command, Edit|
|Run selected cells||Cmd + Enter||Command, Edit|
|Run the current cell, select below||⇧ + Enter||Command, Edit|
|Run the current cell, insert below||Option + Enter||Command, Edit|
You can access the command palette by hitting
cmd+p. From there, you can filter the available actions by typing in the search bar and press
enter, or use the corresponding keyboard shortcut, to execute.