Switcher and palette
Two modal lists, both fuzzy, both opened with a key and dismissed with Escape.
The quick switcher
Ctrl + O (switcher:open)
Type part of a note's name and press Enter to open it. The switcher matches against three things, so you do not have to remember which one you know:
- File names — the usual case.
- Aliases — from the
aliasesproperty, so a note titled RFC 8259 also answers to JSON spec if you said so in its frontmatter. - Paths — so
arch/decfindsarchitecture/decisions.md.
Before you type, the list is your recently opened files. Once you do, below the matches, targets that do not exist yet are
listed too — the [[Names]] other notes link to where no file has been created. They are
marked as not created, and pressing Enter on one creates the note, which is often the
quickest way to start the note you have been meaning to write.
Pressing Enter on a name nothing at all matches also creates a note with that name, in your
newFileLocation folder. See managing notes.
After 0.7.0, Shift + Enter creates a note named exactly what you typed, even when the list
has matches. If a note already answers to that name, Scoria opens it and creates nothing, as
Obsidian does. The name is looked up as a link from the vault root is: in any case, with or
without a path, and a note at the root wins over one in a folder.
The list shows files and aliases but not bookmarks, and has no keys for opening a note in a new tab or to the right.
How fuzzy matching ranks
The query's characters have to appear in order, case-insensitively, but not adjacently. Beyond that, three things raise a candidate's score:
- Matching at the start of a word (
qsbeatsuqsfor Quick Start). - Matching consecutive characters rather than scattered ones.
- Being a short candidate, so an exact short name wins over a long one containing it.
The command palette
Ctrl + P (command-palette:open)
Type part of a command's name and press Enter to run it. The order is Obsidian's:
- Pinned commands, from your vault's
command-palette.json. - Commands you have run this session, most recent first.
- Everything else, by name.
Once you type, the best match comes first. Settings → Command palette lists the pinned commands but cannot change them yet; pin them in Obsidian.
Fuzzy matching is over command names, the ones you see — Toggle reading view, not
markdown:toggle-preview.
The palette lists only the commands Scoria can actually run — 210 of them today. This is the same way Obsidian hides a command whose check callback fails, and it means the palette never offers you something that does nothing. Settings' Hotkeys tab also lists named commands Scoria cannot run, so you can see and keep bindings for features that are not implemented yet.
The list also narrows with where you are, as Obsidian's does: 62 of those commands need a
note open for editing with the keyboard in it, the fifteen commands that act on an existing table
appear only while the cursor is in one, and graph:open-local is gone with no file open.
Among the commands in the palette: the palette and switcher themselves, Search, the graph and local graph, toggling reading view and source mode, save, find and find-replace, the editor's formatting and list commands, the heading commands, multiple cursors, the sixteen table commands, the three template commands and the three daily-note ones, back and forward, Settings, both sidebar toggles, Files and reveal-active-file, new note (three variants), new folder, move, make a copy, rename, delete, the tab and tab-group commands, the canvas commands, the seven bookmark commands, and the five right-dock panes.
The full list of ids, names and default keys is in commands and hotkeys.