gapmiss7k downloadsA VSCode-style vault-wide search & replace sidebar view.
Vault-wide find and replace for Obsidian, modeled on the VSCode search sidebar. Supports regex with capture groups, multiline patterns, file filters, and replacing only the matches you pick.

[!CAUTION] This plugin edits files in your vault directly, and replacements cannot be undone from inside the plugin. Back up your vault (or commit it to git) before running large replacements.
.txt, .js, .css, .json, .html, .csv, and more)$1, $&, and other capture tokens, with a live previewRequires Obsidian 1.13.0 or later.
From Obsidian: open Settings → Community plugins → Browse, search for "Find-n-Replace", then install and enable it. You can also view the plugin on community.obsidian.md.
Manually:
main.js, manifest.json, and styles.css from the latest release.<your vault>/.obsidian/plugins/find-n-replace/ (use your own config folder name if you changed it from .obsidian).Ctrl/Cmd+click results to select them. Ctrl/Cmd+click a file header to select every match in that file.
The User guide covers filters, regex, multiline search, keyboard shortcuts, and every setting.
By default the results list shows the first 1,000 matches. When a search finds more, the count reads something like 1000 of 507370 results in 5 files (limited).
With Use regex turned on:
| Search | Replace | What it does |
|---|---|---|
(\d{4})-(\d{2})-(\d{2}) |
$2/$3/$1 |
2024-01-15 becomes 01/15/2024 |
\[\[([^\]|]+)\]\] |
$1 |
Removes the brackets from plain wikilinks |
{2,} |
(one space) |
Collapses runs of spaces |
^- \[ \] |
- [x] |
Marks open tasks as done |
All commands are listed under "Find-n-Replace" in the command palette. None have default hotkeys. Assign your own in Settings → Hotkeys.
The ⋯ menu in the plugin view has a Help item with commands, your current hotkeys, and a filter reference.
Report bugs or ask questions in GitHub issues.
npm install
npm run dev # rebuild on change
npm run build # type-check and production build
npm run lint # ESLint with eslint-plugin-obsidianmd
npm test # Vitest
See CONTRIBUTING.md and TESTING.md.
MIT