Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Find-n-Replace

gapmissgapmiss7k downloads

A VSCode-style vault-wide search & replace sidebar view.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates18

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.

Find-n-Replace UI

[!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.

Features

  • Searches Markdown and other text files (.txt, .js, .css, .json, .html, .csv, and more)
  • Match case, whole word, regex, and multiline toggles
  • Regex replacements with $1, $&, and other capture tokens, with a live preview
  • Replace one match, the matches you selected, every match in a file, or every match in the vault
  • "Files to include" and "files to exclude" filters by extension, folder, or wildcard
  • Search history on the ↑ and ↓ keys
  • Click a result to jump to it in the editor

Installation

Requires 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:

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Create the folder <your vault>/.obsidian/plugins/find-n-replace/ (use your own config folder name if you changed it from .obsidian).
  3. Put the three files in that folder.
  4. In Settings → Community plugins, reload the installed plugins list and enable Find-n-Replace.

Quick start

  1. Run Find-n-Replace: Open from the command palette.
  2. Type in the search box. Results show up as you type, grouped by file.
  3. Type your replacement in the replace box. Each result previews the change.
  4. Replace a single match with the button on its row, every match in a file with the button on the file header, or use the ⋯ menu for Replace selected and Replace all in vault.

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.

Result limit

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).

  • The limit counts individual matches, not files. The file count is the number of files among the matches shown.
  • The limit only affects what's displayed. It keeps Obsidian responsive when a search matches hundreds of thousands of times.
  • Replace all in vault and the per-file Replace all in this file button are not limited. They search again without the limit and replace every match, including ones you couldn't see.
  • Replace selected and Select all results only act on the matches shown in the list, since you can only select what you can see.
  • To see more, raise Maximum results in the plugin settings, or narrow the search with a more specific query or with file filters.

Examples

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

Commands

All commands are listed under "Find-n-Replace" in the command palette. None have default hotkeys. Assign your own in Settings → Hotkeys.

  • Open
  • Open help
  • Perform search
  • Clear search and replace
  • Focus search input
  • Focus replace input
  • Toggle match case
  • Toggle whole word
  • Toggle regex
  • Toggle multiline
  • Toggle word-wrap in results
  • Select all results
  • Expand/collapse all results
  • Replace selected matches
  • Replace all in vault

Help and feedback

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.

Development

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.

License

MIT

HealthExcellent
ReviewSatisfactory
About
Search your entire vault and replace matches across multiple files using JavaScript regex with capture-group support. Preview matches in a navigable list, select specific hits or whole files, filter by folders or file types, and jump to any match to review before applying changes.
SearchFilesEditing
Details
Current version
1.1.2
Last updated
Last month
Created
Last year
Updates
18 releases
Downloads
7k
Compatible with
Obsidian 1.13.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
gapmissgapmiss
github.com/gapmiss
GitHubgapmiss
  1. Community
  2. Plugins
  3. Search
  4. Find-n-Replace

Related plugins

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Gemini Scribe

Allows you to interact with Gemini and use your notes as context.

Code Space

Professional code file management with visual dashboard, syntax highlighting editor, Markdown embedding, external folder mounts, and terminal integration.

Remember cursor position

Remember cursor and scroll position for each note.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Smart Connections

Find related notes and excerpts while writing. Your AI link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Quick Switcher++

Enhanced Quick Switcher, search open panels, and symbols.