Keyboard Shortcuts

⌘ is the Command key on macOS. On Windows, Linux and the web editor, read every ⌘ as Ctrl, so ⌘ + S is Ctrl + S. The app shows the right spelling for your system in its menus and tooltips.

Rows marked Desktop work in the desktop app only. Browsers reserve some of these keys for themselves, so the web editor cannot use them.

Global

ShortcutActionWhere
⌘ + ,Open SettingsBoth
⌘ + SSave fileBoth
⌘ + EShare diagram (picture, live link, snapshot link)Both
⌘ + Shift + LCopy snapshot linkBoth
⌘ + KFind a diagramBoth
⌘ + ?Open this pageBoth
⌘ + Shift + RReport a problemBoth
⌘ + QQuitDesktop

In the web editor, Ctrl + Shift + R is normally the browser’s hard reload. Diagrammo takes the key instead, so use the browser’s reload button to force-refresh the page.

New and open

ShortcutActionWhere
⌘ + NNew diagramDesktop
⌘ + Alt + NNew whiteboardDesktop
⌘ + Shift + VNew from clipboard (outside a text field)Both
⌘ + Shift + NNew windowDesktop
⌘ + OOpen folderDesktop
⌘ + Shift + OOpen folder in a new windowDesktop

With the file tree focused, ⌘ + N also starts a new file on the desktop. In the web editor that key is Alt + N (Option + N on a Mac), because the browser keeps ⌘ + N for a new window.

View and panels

ShortcutActionWhere
⌘ + 1Show or hide the file treeDesktop
⌘ + 2Show or hide the code editorDesktop
⌘ + Shift + 1Show or hide the file treeBoth
⌘ + Shift + 2Show or hide the code editorBoth
⌘ + Shift + ESwitch the file tree between the open folder and StarredBoth
⌘ + Arrow LeftFocus the previous panelBoth
⌘ + Arrow RightFocus the next panelBoth
⌘ + Shift + FFocus mode: hide the tree and editor, leave the previewBoth
⌘ + =Increase font sizeBoth
⌘ + -Decrease font sizeBoth
⌘ + 0Reset font sizeBoth

In the Starred view, ⌘ + 1 to ⌘ + 9 jump to the first nine starred diagrams instead of toggling panels (Desktop). ⌘ + Shift + 1 and ⌘ + Shift + 2 keep toggling the panels there.

File tree

Click the tree or move focus to it with ⌘ + Arrow Left.

ShortcutAction
j / Arrow DownMove down
k / Arrow UpMove up
l / Arrow RightExpand folder
h / Arrow LeftCollapse folder
Enter / SpaceToggle a folder; Enter also opens a file
F2Rename
DeleteDelete
⌘ + DDuplicate file

Editor

ShortcutAction
Tab / Shift + TabIndent / unindent
⌘ + ZUndo
⌘ + Shift + Z / ⌘ + YRedo
⌘ + Shift + .In a Markdown file, edit the diagram fence under the cursor
Enter on a bare fence lineThe same, when vim mode is off

Vim mode is a switch in the Edit menu (desktop) and in Settings. With it on, the usual vim keys apply in the editor.

Preview

These work when the preview has focus. With the editor hidden, they step through the diagram’s elements.

ShortcutAction
j / Arrow Down / SpaceNext element
k / Arrow Up / Shift + SpacePrevious element

Whiteboard

Select an element on the whiteboard first.

ShortcutAction
Arrow keysNudge the selection (hold Shift for ten times as far)
] / [Bring to front / send to back
Alt + ] / Alt + [Move forward / back past the next overlapping shape
⌘ + DDuplicate
⌘ + ASelect all
Delete / BackspaceDelete
EscapeCancel the edit or clear the selection
⌘ + Z, ⌘ + Shift + ZUndo, redo
⌘ + /Show or hide the text view
⌘ + 0, ⌘ + =, ⌘ + -Fit to screen, zoom in, zoom out
⌘ + EnterFinish editing a text box

Dialogs

ShortcutAction
EnterConfirm
EscapeCancel