Global (Mass / Vault-wise) search & replace

Same need here. +1 to this request

2 Likes

+1. As an editor on a vault-based, this should be a core function.

3 Likes

+1 for this!

2 Likes

+ 1;

Especially it would be great to have some “iterate over notes” checkbox option,
where we now have opened “Search & replace in current file”, and with ticked checkbox, “Next” could iterate over consecutive notes in the vault

3 Likes

+1 to this request

3 Likes

+1 to this!

2 Likes

+1 to this request

2 Likes

+1 for this feature

2 Likes

It makes you replace one by one, though

1 Like

+1 (today I have to use workarounds with VSCode or Notepad++, not so funny)

5 Likes

+1 for this feature please

3 Likes

Please bring this feature… so many upvotes already

3 Likes

Absolutely essential feature…

2 Likes

+1 to all the comments echoed here

I would also love to do this on a selective basis, not just a global one. For example, to perform a find and replace on all notes in a specific folder or with the tag #updatethisnote or something like that.

3 Likes

+1

My case: undergoing a product rebranding, need to change the brand name across all files.
Another case: 1–2 years ago, Obsidian changed the view mode so that it now makes more sense to not place empty lines between paragraphs and headers. Obviously, the legacy notes are rendered with excessive margin/white space. A bulk approach to trimming that would be nice (although that’s actually a once-and-for-all thing, so could be done with an external bash/python script)

4 Likes

+1

I think if obsidian wants to be something like a swiss army knife for notes, this really is an essential.
Opening another app for this is quite annoying and too complicated on mobile devices.
I use sed on Linux now, but this is not a real solution

2 Likes

Yet another +1 (along with native regex support). I can do this with an external app and/or plugins, but it seems like it should be a core feature.

2 Likes

As a new user I am truly astonished to discover that this isn’t a feature.

I use global search & replace so often in other editors that I’ve used for notes in my life. I consider this a basic feature of any multi-file editor, regardless of its purpose.

  • Want to standardize all instances of " → " to " :arrow_right: " ?
  • Want to standardize all instances of " - " to “—” ?
  • Want to standardize all spellings of “realise” to “realize” ?
  • Have notes on code and want to change all instances of a class name to a new class name?

I would think a lot of potential users would turn away quickly on finding a basic feature like this isn’t present.

4 Likes

I was looking for global text search and replace in Obsidian on Mac. I had about 200 or so files where a specific term needed changing. This was then not standardizing within Obsidian, but replacing text already existing.

Via various threads I read of Textmate: https://macromates.com, which is a freeware editor that allows search/replace in files in specific directories.

I did this:

  1. made a back-up of my Obsidian "vault, then extracted a few files from the back-up to a test folder.
  2. opened Textmate, selected “View” and chose “Show File Browser”
  3. navigated to my test folder. This gave me a view of all the files in the folder.
  4. selected “Edit” and then “Find and replace”
  5. typed the text to replace and the new text in the relevant fields, then set “In” to the folder I had chosen.
  6. By clicking “Find all” I got a list of instances of the text I wanted to replace. Some files had multiple instances.
  7. “Replace all” did just that.

I then did the same for my entire Obsidian vault. Testmate missed one instance which I corrected by hand later, but the rest were replaced. Obsidian opened normally afterward.

It’s not the same as having the functionality built in to Obsidian. But it works!

1 Like

I used this same fix. Textmate is free (on Mac), and it worked great.