Keyboard shortcuts
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.
Edit mode
While in edit mode, you can type in a cell as with a normal text or code editor.
Press cmd
+ enter/return
to run an individual cell
Press option
+ enter/return
to run a cell and add a new cell after
Press shift
+ enter/return
to run a cell and scroll to the next, or add a new cell if there isn't one immediately following
Press escape
to enter Command mode. Users with Vim key bindings enabled will need to use shift + esc
.
Press ctrl
+ space
after a .
to list the attributes for Python classes and objects
Press shift
+ tab
to trigger in-line documentation for Python functions
Command mode
You are in command mode if you are selected out of a cell.
Press j
or k
to navigate down or up
Press a
to add a cell above
Press b
to add a cell below
Press dd
(d
twice) to delete a cell
Press enter/return
to select into a cell (enter Edit mode)
Select multiple cells
To select multiple cells, first hit esc
to enter Command mode, and then shift + up/down arrow
or shift + j/k
to select additional cells. After selecting a block of cells, you can move them up/down (with the usual j/k
or cmd/ctrl up/down arrow
) as well as copy/cut/paste (cmd/ctrl + c/x/v
).
Keyboard shortcuts list
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.
Action | Keyboard Command | Mode |
---|---|---|
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, Shift + J/K | 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), Shift + Esc for Vim users | 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 |
Command palette
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.