Keyboard Shortcuts

Cmd/ctrl below indicates command on Mac and control on Windows and Linux. These instructions are for English/QWERTY keyboards.

For a full list of supported keyboard shortcuts see the table here.

Hex supports a number of keyboard shortcuts, most modeled after the standard Jupyter set, which make a distinction whether you're selected into a cell or not.

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 select out of the cell (enter Command mode)

Press shift-tab to trigger in-line documentation for Python functions

Pressing Shift-Tab to trigger in-line documentation

While in Command mode (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)

Using J and K to navigate up and down in the Logic (notebook) view

Select multiple cells

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 j/k or cmd/ctrl up/down arrow) as well as copy/cut/paste (cmd/ctrl + c/x/v)

Keyboard Shortcuts List

Below are the 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

Alt + 4

Command, Edit

Navigate to Logic

Alt + 3

Command, Edit

Navigate to Data

Alt + 2

Command, Edit

Navigate to Environment

Alt + 1

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

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.