Global (Mass / Vault-wise) search & replace

I used to use [[documentation]] for all of my notes on content that I was reading/watching. Now, I realize that #documentation would be much more appropriate. I’d like to search and replace, but have 200+ notes with [[documentation]] and there seems to be no bulk search & replace, only on a per-file basis.

137 Likes

+1, I had the same situation with links like [[work]] that would be better as tags. And if you need an acute solution, I posted hope to use atom here: Find and replace links across all files in a vault

6 Likes

I agree. General find and replace would be very handy, but would require careful thought to make the results transparent and avoid unexpected changes. Updating of full tag text string or link text string would give much more predictable results - less so for regular text strings. It could take care of the tag renaming request I saw somewhere, although in a more round about way (I support a mechanism to rename tags).

1 Like

I think this is a key feature that seems core to a text editor. I’m going to move this to the Feature Requests category.

I think there are plenty of ways to accomplish this, and users could backup their vault prior if they were worried about unintended effects.

16 Likes

@sam.baron: good initiative.

1 Like

Agree!

3 Likes

Find an alternative while waiting for the feature :

5 Likes

Totally agree. Subtree-wise search and replace is really a critical feature that’s missing. Hope it will be implemented soon!

3 Likes

Thousand upvotes.

I come from CRM, where, basically, you manage clients, calls, contacts, contracts, all kinds of labelled and tagged information. Imagine selling a CRM without the ability to make a quick change on the status or label of a 50 or 500-item found set of contacts. You’d never be able to.

I know O is not a CRM, but you know what, I’m going to make it one, because the rest of it is exactly what I need.

But something as rudimentary as changing the tags on 10 found entries, for example-- it’s astounding that I can’t do that, really. For an app that has so many of the obvious bases covered.

Yes, I know about the 2-3 workarounds, but they are just that.

And-- extending this request to also taking a found set after a query, and right clicking on that found set (which you can’t do) like you can in the obsidian file manager, and choosing “move selected items to folder…” or something like that.

That to me is just as much “mass search and replace” – you’re looking for a certain condition (search tag, keywords, regex, etc.), finding that set, and then ACTING on that set (swap tags, delete tags, replace whole phrases, or even move the very file to a slightly different relative folder location)

Why have the ability to create and use folders, when you can only act on items piecemeal? Why have the wonderful search capability we have, without then being able to do something with the found set at all!? (I don’t count merely copying a text list or outline as something)

I mean, it’s veritably barbaric (You have to say that like Mr Howell on Gilligan’s Island)!

Lord, I apologize. :pray: :man_shrugging: :sweat:

3 Likes

It will be nice to also have an option for Regular Expression (regexp) Search and Replace.
It will be useful in a knowledge badge project.

10 Likes

+1 for feature

1 Like

I think it’s worth mentioning, for some users at least, that external text editors can handle this now. I didn’t find a topic on general global search and replace in this forum. The other topic mentioned refers specifically to internal links.

I use Notepad++ on Windows to search and replace across the vault. It includes the ability to filter file types and can use regular expressions. Standard disclaimer applies: Back up first before doing a global replace, check after replacing, yadda, yadda.

There are Mac and Linux tools.

6 Likes

I am on MacOS and use VS Code.

1 Like

As people have mentioned already, you can use a workaround by doing it on a code editor e.g. install Atom editor, open project → your Obsidian vault folder, Ctrl+Shift+F to search and replace all instances inside this folder.

2 Likes

VS Code. Ctrl + Shift + H works well for this. :partying_face:

1 Like

When this will be implemented?

@ViaAhmed: the devs never give a specific timeline, only short term, long term.

1 Like

Atleast, Whether is it in the timeline?

@Klaas you are an insider, isn’t it? Can you please ask Devs to work on this if they aren’t already on it. Just atleast raise this feature request in the insider group.

@ViaAhmed: yes I am an Insider, no, I cannot ask the Devs what you want because it does not work like that. Being an Insider only means I get to see new features before those who have not paid.

Licat decides himself what he does when, even the moderators cannot interfere !

1 Like