Keys

Every key the diagram page and the editor use, in one place.

Diagram page

DoesMacWindows and Linux
Open the command palette⌘KCtrl+K
Open a published diagram (Line9 Pro)⌘OCtrl+O
Show or hide the diagram’s text⌘UCtrl+U
Enter or leave the Line9 editor⌘ECtrl+E
Show or hide the style and zoom panels⌘ICtrl+I
Hide everything but the menu⌘.Ctrl+.
Full screen⌘↩Ctrl+Enter
Zoom in, zoom out⌘=, ⌘-Ctrl+=, Ctrl+-
Zoom with the mouse⌘ and scrollCtrl and scroll
Fit the diagram in view⌘0Ctrl+0
Find in the diagram⌘FCtrl+F
Undo⌘ZCtrl+Z
Redo⇧⌘ZShift+Ctrl+Z, or Ctrl+Y on Windows
Copy as PNG⌘CCtrl+C
Publish (Line9 Pro)⌘SCtrl+S
Print⌘PCtrl+P
List the keyboard shortcuts⌘/Ctrl+/

These need no ⌘ or Ctrl:

KeysDoes
SpaceOpen the menu
EnterEnter the Line9 editor
Arrow keysMove the diagram. Add Shift to move it further
EscClose a menu or panel

Editor: Edit mode

KeysDoes
h j k l or the arrow keysMove the cursor to the next node in that direction
f, then a codeMove the cursor to the item with that code
/, then part of a labelSearch; n and N go to the next and previous match
e, then a codeMove the cursor to one of the item’s edges
zzCentre the view on the cursor
F2, i or aEdit the label
ccChange the label
ce, then a codeChange the label of one of the item’s edges
o, OAdd a node after, or before
>, then a moveConnect to the node you move to
<, then a moveConnect from the node you move to
dd, Delete or BackspaceDelete the item
de, then a codeDelete one of the item’s edges
digDelete the group, with everything in it
vStart Visual mode
uUndo
:Open the : line
EnterShow the commands for the item
?List the keys that work now
EscCancel a key that is waiting for the next one
:qLeave the editor

On the : line, Enter runs the command, Tab completes a choice and Esc closes it. The commands are :shape, :line, :group, :class (or :style), :title, :e! and :q. See Editor reference.

Editor: Visual mode

KeysDoes
v or EscEnd the selection
Any moveAdd the node you move to
igAdd everything in the group
eSelect the edges between the selected items
c or F2Change a label: the selected item’s, or one chosen by code
dDelete everything selected
> or <Connect the two selected nodes, one way or the other
:Run a command on everything selected

Editor: Insert mode

KeysDoes
EnterKeep the label
EscKeep what you typed, or cancel if you typed nothing
Shift+Enter or Alt+EnterStart a new line in the label

Next