Scoria

Hotkeys

Your vault's hotkeys.json applies unchanged. If you have spent years rebinding Obsidian to your liking, Scoria opens with your keys, and you can change them in Settings' Hotkeys tab.

Command shortcuts are Obsidian's commands, bound to Obsidian's default hotkeys until you change them. A few keys are fixed, and hotkeys.json does not change them: Ctrl + Q, which quits; the zoom keys; and the keys that work inside a view or a text field, such as the arrows, Enter, Escape, copy, paste and undo.

How a binding is decided

For each command, in order:

  1. If hotkeys.json has an entry for the command, that entry replaces the defaults.
  2. An entry with an empty list unbinds the command entirely.
  3. Otherwise the command keeps Obsidian's default binding, if it has one.

This is Obsidian's own rule, including the detail that an entry replaces rather than adds to the defaults.

hotkeys.json is read before the window opens, so the first frame already has your keys.

The shape of the file

json
{
  "editor:toggle-source": [{ "modifiers": ["Mod", "Shift"], "key": "S" }],
  "graph:open": []
}

Mod means Ctrl on Windows and Linux and Cmd on macOS. Ctrl means Ctrl everywhere, including macOS — which is why Obsidian's own default for Next tab is Ctrl + Tab rather than Mod + Tab.

An empty list, as on graph:open above, unbinds the command.

Labels

A binding is shown the way Obsidian shows it: Ctrl + Shift + F, Ctrl + Alt + ←. Modifiers are in Obsidian's order, arrow keys are arrows, and a single letter is capitalised.

The Hotkeys tab

Settings' Hotkeys tab lists the commands Obsidian names on desktop, 227 of the 244 ids Scoria knows, with their current bindings. The other ids appear only if your hotkeys.json has an entry for them, and the commands of a core plugin that is off are left out. A search box narrows the list by name, and there are four filters, as in Obsidian:

FilterShows
AllEvery command in the list
AssignedCommands that have a binding
UnassignedCommands with no binding
Assigned by meCommands your hotkeys.json has an entry for

A command whose binding came from your file rather than from the defaults is marked as custom.

Note

The tab is not limited to the commands Scoria can run. That is on purpose: your bindings for features that are not implemented yet are real configuration, and seeing them here is how you know they survived. The command palette, by contrast, offers only commands that actually do something.

Changing a binding

From the Hotkeys tab, the way Obsidian does it: the plus on a row waits for a chord and takes the next one you press, the cross on a chip drops that binding, and the rotate button restores the command's defaults by removing its entry. Each of those rewrites .obsidian/hotkeys.json — in the file's own key order, so a vault's bindings do not shuffle the first time Scoria writes one — and a chord already bound to another command is marked the way Obsidian marks it. Editing the file by hand and reopening the vault still works.

Next

Source: sites/scoria/content/docs/hotkeys.md