Skip to content

Keybindings

Grafli is modal. Most commands are a single key in Select mode (the default). The full cheat sheet is also available in-app via F1, with live filtering.

Modes

Key Mode
v Select
n / Shift+n Create node (one-shot / sticky)
t / Shift+t Create note (one-shot / sticky)
c Connect arrow (one-shot)
s Style sub-mode (colors, sizes)
d Dimension sub-mode (resize)
Escape Cancel / back to Select

File

Key Action
+N New file
+O Open file
+S Save file
+Q Quit
Key Action
Arrow keys Pan viewport
Middle-drag Pan from anywhere
+ / - Zoom in / out
Z Zoom to selection (progressive)
Shift+Z Zoom to fit all
gp Select parent (zoom if needed)
F Select first child
Tab / Shift+Tab Cycle siblings
Ctrl+J Jump to any item (global)
Ctrl+O / Ctrl+I Nav history back / forward
Alt (hold) Graph nav: follow connectors
/ Search by label

Edit

Key Action
e / Double-click Edit selected element
E Edit annotation
W Set URL on selected item
Return Open URL in browser
Enter Accept edit
y / p Yank / paste
u / +Z Undo
Ctrl+R / +Shift+Z Redo
x / Delete Delete selection
+G Insert glyph / replace label

Create

Key Action
o / O Create box below / above selection
Ctrl+arrow Create connected box in that direction
Alt+drag Connect boxes (from Select)
Alt+click Paste at position

Style

Key Action
h / l Cycle color
j / k Cycle text size
Shift+G Snap to grid
= Auto-layout selection (or all)

Focus & analysis

Key Action
, Dim arrows
A Complexity heatmap
B Subgraph focus (cycle direction: all → forward → backward)
Shift+B Toggle focus depth (full / 1-hop)

View

Key Action
# Toggle grid
M Toggle minimap
\ Toggle tools panel

Export

Key Action
Y Yank diagram as PNG to clipboard
Ctrl+E Export SVG to file

Arrows

Key Action
e Edit arrow label
s Arrow style mode
h / l Toggle arrowheads
j / k Arrow label size
Shift+J / Shift+K Cycle arrow style

Buffers

Key Action
Ctrl+K Open / switch buffer
Ctrl+6 Toggle last buffer
Q Close buffer (no selection)

Help

Key Action
F1 In-app cheat sheet (with filter) and text-annotation reference
` Toggle debug overlay