Skip to content

Keyboard shortcuts

Every keyboard shortcut in Margin, from the workspace to the grapher and flashcard reviews.

Shortcuts use ⌘ on macOS and Ctrl on Windows and Linux. The tables below show the macOS keys.

Workspace#

These work anywhere in the workspace, even while you are typing in a field.

ShortcutAction
⌘ KOpen or close the command palette
⌘ POpen the command palette
⌘ WClose the active tab
⌘ \Split the focused pane to the right
⌘ BShow or hide the sidebar
⌘ Shift ]Next tab
⌘ Shift [Previous tab
⌘ 1 to ⌘ 8Go to tab 1 to 8 in the focused pane
⌘ 9Go to the last tab in the focused pane
Watch out

Some browsers keep certain shortcuts for themselves, most often ⌘ W and ⌘ 1 to 9, which close or switch browser tabs instead. Use the tab bar, a tab's right-click menu or the command palette for the same actions.

Command palette#

The command palette searches notes (titles, headings and text), courses, units, tools and actions at once. Start with one of these characters to narrow it down:

TypeTo search
>Actions: mark the open note studied, rate it, change the theme, set exam dates and more
#The headings of every note, opening the note at that section
@Courses and units
KeyAction
↑ ↓Move through results (wraps from the bottom to the top)
EnterOpen the result or run the action
EscClose

Tabs#

ActionResult
Double-click a tabKeep a preview tab open
Middle-click a tabClose it
Right-click a tabKeep open, Close, Close others and Open to the side
Drag a tabReorder, or move it to another pane
⌘-click a link in a noteOpen the linked note as a normal tab rather than a preview

Grapher#

KeyAction
EnterNew expression row below
Backspace on an empty rowRemove the row
↑ ↓Move between rows
ScrollZoom around the pointer
DragPan
Double-clickReset the view

Flashcard review#

KeyAction
Space or EnterShow the answer
1Again, once the answer is shown
2Hard, once the answer is shown
3Good, once the answer is shown
4Easy, once the answer is shown
EscEnd the review

When adding cards, Enter in the answer (or ⌘ Enter on either side) adds the card.

My notes#

KeyAction
/Open the block menu (headings, lists, to-dos, quotes, code, divider, equations)
# ## ### Heading
- · 1. · [] · > Bulleted list · numbered list · to-do · quote
``` then EnterCode block
$x$ · $$ then EnterInline maths · equation on its own line
Enter in the titleStart writing the note
↑ on the first lineBack to the title
Enter · Esc in an equationDone · leave it unchanged

Cheat sheet#

KeyAction
Enter on Add a formulaAdd the formula
Click a formulaEdit its LaTeX
Enter while editingSave
Esc while editingCancel

Planner#

KeyAction
Enter in Add taskAdd the task to that day
Esc in Add taskClear what you typed

Progress#

KeyAction
← → on the activity calendarMove a week back or forward
↑ ↓ on the activity calendarMove a day back or forward

Documentation#

ShortcutAction
⌘ KOpen or close the docs search
/Open the docs search

Search documentation

Search every page of the Margin docs