Needle

approvedunreviewed

by Hevar Magron

Find text across your vault, with ranked results, clear note paths and a live preview of every match.

↓ 24 downloadsUpdated 2d agoMIT

Needle

Find any text in your vault, see it in context, and jump straight to it.

Searching a vault with Needle and moving through the results

Needle brings the "Find in Files" panel from code editors to Obsidian. Type a word, phrase or regular expression and you get every matching line, grouped by note, with a live preview of the note underneath. You can check each match without opening anything.

Why use it

  • See every match, not just every note. Each line that matches is listed with its line number.
  • Read before you open. Arrow through results and the preview follows, in source or reading view.
  • Best notes first. Results are ranked by title, headings, properties, frequency and how recently you edited the note.
  • Stays out of your way. Search runs in the background, so a huge vault or a bad regex won't freeze Obsidian.
  • Private and read-only. Needle never changes your notes and makes no network requests.

Features

Find in vault

Search the whole vault or a single folder, with toggles for match case, whole word and regular expressions. Drag the window edges or the divider to get the layout you like, and Needle remembers it.

Find in vault with results grouped by note and a source preview

Preview in reading view

Press Ctrl/Cmd+E to see the note rendered, with your matches still highlighted.

The preview pane showing a rendered note with the match highlighted

Regular expressions

Useful for finding things plain search can't, like every open task in your vault. The guide has patterns you can copy.

A regular expression listing open tasks

Go to note

A quick switcher that puts the title first and the folder underneath, so notes with the same name are easy to tell apart. It matches titles, aliases and folders, and with nothing typed it lists your recent notes.

Go to note showing a title match and an alias match

Light, dark and mobile

Needle uses your theme's colors, so it fits in with light, dark and community themes. On phones it goes full screen.

Needle in the light theme Needle on a phone

Getting started

  1. In Obsidian, open Settings → Community plugins → Browse.
  2. Search for Needle, then install and enable it.
  3. Run Needle: Find in vault from the command palette, or click the search icon in the ribbon.

Needle doesn't set any hotkeys for you. Most people will want these, under Settings → Hotkeys:

CommandSuggested hotkeyReplaces
Needle: Find in vaultCtrl/Cmd+Shift+FSearch: Search in all files
Needle: Go to noteCtrl/Cmd+OQuick switcher: Open quick switcher

Remove the shortcut from the core command first so the two don't clash.

You can also right-click a folder and choose Find in folder, or select text in a note and choose Find in vault.

Keyboard shortcuts

KeyAction
↑ ↓Move through matches
Page Up Page DownMove ten matches at a time
EnterOpen the note at the match
Ctrl/Cmd+EnterOpen in a new tab
Ctrl/Cmd+Alt+EnterOpen to the right
Alt+C / W / RToggle match case, whole word, regex
Ctrl/Cmd+1 / 2Search the vault / the folder
Ctrl/Cmd+ESwitch between source and reading preview
EscClose

Privacy

Needle only reads your notes. It doesn't write, rename or delete them, makes no network requests and collects no data. The only thing it saves is its own settings, in the plugin's data.json.

Limitations

  • It searches Markdown notes only, and skips notes over 10 MB.
  • There is no find and replace.
  • In the reading preview, footnotes and reference-style links that point to another section don't resolve.

More

Found a bug or have an idea? Open an issue.

License

MIT

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.