Search
Ctrl + Shift + F (global-search:open) opens the Search tab in the left dock. It searches
every note in the vault, with the same query language Obsidian uses.
After 0.7.0 it searches canvases too, as Obsidian does: the canvas's name and path, and the text of each text card on its own. A phrase, or two words, must be in the same card; group labels, file cards and link cards are not searched. A canvas's matches add nothing to the result count and its row has no number; clicking one opens the canvas. Version 0.7.0 searches notes only.
A query
The simplest query is a word, and several words mean all of them:
focus stacking both words, anywhere in the note
"focus stacking" that exact phrase
focus OR stacking either one
focus -stacking "focus" but not "stacking"
tag:#project notes tagged #project, or any child of it
path:archive/ notes under archive/
/colou?r/i a regular expressionThe full grammar — every operator, how precedence works, the [property] forms — is the
search syntax reference. It is worth a read: the scoped
operators (line:, block:, section:, task:) are where the grammar earns its keep,
because they let you ask for two words in the same line rather than merely in the same
note.
Reading the results
Results are grouped per file: a row with the file's name and its match count, and under it a card of the matching lines with the matched text highlighted. Counts are of matching lines, where Obsidian counts every highlighted word. Click a line and the note opens at it; click the file row, or its chevron, to fold the card. A long line wraps. Under the pointer a line shows two chevrons that add a line of context above or below it; Show more context in the settings does that for every line at once.
Right-click a result for its file's menu, the one Obsidian draws there: Open in new tab, Open to the right, Open in new window, Rename..., Move file to..., Bookmark..., Open in default app, Show in system explorer, Reveal file in navigation, and Copy path last. A file row adds Delete file above Copy path; a match line's menu is the same without it, and every row acts on the whole file — opening from a match line opens the note at its top, not at the line.
Copy path opens the submenu of three every file menu has (see the Files view's menu): as Obsidian URL, from vault folder and from system root. In 0.7.0 it is one row that copies the vault path.
The header has the same controls as Obsidian's:
Aainside the field — Match case. Matching is case-insensitive unless this is on or the query saysmatch-case:.- The clear button inside the field.
- Search settings (the sliders) — Collapse results, Show more context and Explain search terms.
- The result count — click it for Copy search results (a modal with Show path, Link style and List prefix, the same 24 forms Obsidian writes) and Bookmark..., which saves the query as a bookmark.
- The sort order at the right — file name A to Z or Z to A, modified time or created time either way. Changing it re-sorts the list in place.
Up and Down walk the rows from the field, Enter opens the focused one, Left and Right fold and
unfold its file, and Escape puts the keyboard back in the note. The query and the settings
are saved in workspace.json under the search leaf, with Obsidian's keys, so they come back
after a restart.
Searching runs on a background thread across the indexed note text, so a large vault stays responsive while you type.
Explaining a query
A query that returns the wrong thing is usually a precedence surprise — OR binds looser
than the implicit AND, so a b OR c is (a AND b) OR c. Turn on Explain search terms in
the search settings and the pane prints the parse tree above the results, with the same
labels Obsidian shows, so you can see how your query was actually read.
Searching for a tag by clicking
Clicking a tag in a note, or in the Tags pane, searches the vault for it.
Not yet
- Search and replace across the vault. Replace works inside one note — see find and replace.
- The sort order and the copy modal's selects are menus rather than native drop-downs, and the modal's preview is read-only where Obsidian's is a text area you can edit before copying.
Next
- Search syntax — the whole grammar.
- Switcher and palette — for finding a note by name instead.