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

Global Search and Replace

mahmoudfawzykhalilmahmoudfawzykhalil58k downloads

Search and replace in all vault files.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates7

A plugin to do a global search and replace in all of your Obsidian vault files.

showcase

Features

  • Search all of your vault's markdown files for a match
  • Regex support
  • Case-sensitive search support
  • Replace match Enter or click
  • Open note at match Ctrl+Enter on Windows/Linux, Cmd+Enter on Mac
  • Cycle through matches using arrow keys

Installation

Through Obsidian community plugin browser

This plugin is available through obsidian's official plugin marketplace.

Manual

Download a release's main.js, styles.css, and manifest.json files and install it by pasting the files into the VAULT_PATH/.obsidian/plugins/global-search-and-replace folder (enable viewing hidden folders to be able to see the .obsidian folder!)

Usage

Use the command palette and activate the Global Search and Replace: Search and Replace in all files command.

Specifying a string as the replacement

The replacement string can include the following special replacement patterns:

Pattern Inserts
$$ Inserts a "$".
$& Inserts the matched substring.
$` Inserts the portion of the string that precedes the matched substring.
$' Inserts the portion of the string that follows the matched substring.
$n Inserts the nth (1-indexed) capturing group where n is a positive integer less than 100.
$<Name> Inserts the named capturing group where Name is the group name.

$n and $<Name> are only available if the pattern argument is a RegExp object. If the pattern is a string, or if the corresponding capturing group isn't present in the regex, then the pattern will be replaced as a literal. If the group is present but isn't matched (because it's part of a disjunction), it will be replaced with an empty string.

JSCopy to Clipboard

"foo" replace /(f)/,"$2"
// "$2oo"; the regex doesn't have the second group

"foo" replace "f","$1"
// "$1oo"; the pattern is a string, so it doesn't have any groups

"foo" replace /(f)|(g)/,"$2"
// "oo"; the second group exists but isn't matched
68%
HealthFair
ReviewSatisfactory
About
Search and replace across your entire vault using plain text or regular expressions with optional case sensitivity. Preview and cycle through matches, open matching notes, and apply replacements using standard patterns like $&, $n and named groups ($<Name>).
SearchFilesEditing
Details
Current version
0.5.0
Last updated
2 years ago
Created
3 years ago
Updates
7 releases
Downloads
58k
Compatible with
Obsidian 1.1.1+
Platforms
Desktop, Mobile
License
AGPL-3.0
Report bugRequest featureReport plugin
Author
mahmoudfawzykhalilmahmoudfawzykhalil
github.com/MahmoudFawzyKhalil/
GitHubmahmoudfawzykhalil
  1. Community
  2. Plugins
  3. Search
  4. Global Search and Replace

Related plugins

Omnisearch

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

Remember cursor position

Remember cursor and scroll position for each note.

Thino

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

Gemini Scribe

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

Note Refactor

Extract note content into new notes and split notes.

Home tab

A browser-like search tab for your local files.

Code Space

Professional code file management with visual dashboard, syntax highlighting editor, and Markdown embedding.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Notebook Navigator

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

Local REST API & MCP Server

Unlock your automation needs by interacting with your notes over a secure REST API.