Global (Mass / Vault-wise) search & replace

Would love to see this, with support for regular expressions like in VScode; I’m aware I can open my vault in VScode, but it would be a major improvement for myself if this was supported in Obsidian.


+1 For search & replace, please!!!


It seems that is no longer available since december the 15th 2022

Getting desparate lol. We neeeed this :man_dancing:


+1000 for this feature


Oh, yeah It will definitely be helpful and will help me do,
Feature Request: Changing Tags to Links and vice versa

If I am too lazy syncing to GitHub and heading over to the PC, I make a regex search and replace on a full directory (I just did) with the Linter plugin.
I rename my data.json file in the Linter directory to something else beforehand in the Taio app (iOS) and run an individual search and replace.
I am pretty sure it can do a vaultwide job too.
Beware the limitations with regex on mobile, though.


I created a plugin that allows you to search, find matches, and replace specific matches in right from obsidian.

Right now, it supports case-sensitive matching only.

I plan to add a switch for case-sensitivity, and regex, and replace all support.

I have submitted a pull request to get it on the obsidian plugin marketplace.

Here’s a link to learn more:

I hope this helps some of you, at least. Please let me know if you have any comments on the code, or requests.


Many options out there, just sharing one that worked for my simple use case: replacing a string across all files in the vault.

I reiterate: make a backup first!
Also hoping this function makes its way into Obsidian.

Nice! I’m cautiously sticking to established third-party apps for now, but watching with interest.

1 Like

I have a lot of notes that all use the same templates, so they’re all laid out the same way and look very similar to each other. I have a “gift ideas” note for each of my friends and family members, and they all have “headers” that are just bold regular text, and I just decided they would be better with actual headers, instead.

What I would like to be able to do, is go into the command palette and select “Search & Replace in all files” and replace all the “Gift Ideas” headers with “## Gift Ideas” so that it changes the headers in ALL my gift ideas notes. (I don’t have other notes with headers that say “gift ideas,” so it wouldn’t be a problem.)

Unfortunately, that’s not a feature. We have “Search in current file,” “Search in all files,” and “Search & Replace in current file,” so I’m sure “Search & Replace in all files” would be a doable feature to add, and I know I’m not the only one who can benefit from it.

1 Like

Did you read the previous posts?

I seem to remember skimming through this thread before and text editors like VSCode, Sublime Text or Notepad++ mentioned.
Quit Obsidian, and carry out the SearchandReplace (I use Notepad++ mostly to do that).
Your case is pretty straightforward as there is no need to use regex patterns*. A vault-wide regex search and replace is also done with the programs I mentioned.

When you do replacements in the future it’s good to have Git as version control, so you can see in Github Desktop what was changed and how (successfully or not) (in which latter case, you can discard changes and revert back).
This is how I do it.

* You could still use regex though to anchor your search to the string starting a line, like so:
Search: ^(Gift\sIdeas)
Replace: ## $1.
Make sure regex is ticked on in your text editor.

This latter way is just to set you on track with regex, as in your case it is not really needed.

Their new post was merged into this thread to keep everything together, and a record about the global search+replace requests.

Oh, I see.

Now that you are at it, isn’t “Vault-wide” more English than “Vault-wise”?

How about chicken paprikash?

Didn’t get it :face_with_raised_eyebrow:

Thanks to Obsidian folks for considering this feature request!

Just to add a use case: I have been linking to a note (that hasn’t yet been created) wiki-style from many other notes. I finally went to create the note today only to discover that since the name I’ve been using has a colon, I can’t make the note. Now I want to go back and replace all these links that link to a name with a colon, but there are several dozen. Find-replace would be perfect for this.

As a workaround, the in-page search-replace stays active when you switch between notes, so if you use it on one of the notes and then do a vault search for the rest of them, you can get thru them at nearly the same speed as a global replace that requires confirmation. Click search result, click Replace All, repeat. It’s not as fast as a global replace that doesn’t use confirmation, but useful to know.


There’s a Global Search and Replace plugin now.

cc @CawlinTeffid