Keyboard shortcuts
⌘ is Ctrl on Windows and Linux. ⌘/ shows the shortcuts in the app (tap it, or hold it to peek).
Everywhere#
| Keys | Does |
|---|---|
| ⌘T | New: a shell, an agent, a board or a browser |
| ⌘K or ⌘P | Command palette |
| ⇧⌘K or ⇧⌘P | Command palette, commands only |
| ⌘, | Settings (again to close) |
| ⌘Esc | Close settings |
| ⌘/ | Keyboard shortcuts |
Command palette#
Type to search everything, or start with a prefix to search one kind:
| Prefix | Searches |
|---|---|
> | Commands |
/ | Files of the current project |
# | Cards on the board |
Projects are listed too. ← and → switch the kind; Backspace on an empty query goes back to everything.
On the canvas#
| Keys | Does |
|---|---|
| C | Code studio |
| G | Git studio |
| ⇧1 | Fit everything in view |
| ⇧0 | Zoom to 100% |
| Space + drag | Pan |
| Ctrl+Tab, Alt+Tab | Switch between recent terminals |
| Delete, Backspace | Delete the selection |
| ⌘Z, ⇧⌘Z (or ⌘Y) | Undo, redo |
| ⌘A | Select all |
| ⌘G, ⇧⌘G | Group, ungroup |
| Esc | Back to the select tool; leave focus mode |
Drawing tools: V select, H hand, P pen, E eraser, N sticky, T text, R rectangle, O ellipse, A arrow, F frame.
Single keys work only while no terminal or text field has the keyboard.
Changing a shortcut#
Shortcuts can be rebound in keybindings.json, in Modular's preferences folder
(<data root>/preferences/keybindings.json; see Your data). It holds a list
of rules: a key, a command and an optional when condition.
[
{ "key": "mod+n", "command": "space.new" },
{ "key": "mod+shift+,", "command": "toggle-settings" }
]The commands you can bind today are space.new, toggle-settings and exit-settings.
when takes context names with !, &&, || and parentheses; an unknown name is
false. modular preferences keybindings get shows the file and any errors in it.