I would like to suggest that Logseq had a feature that allow us to edit a word in multiple occurrences. The simplest way, I guess, would be something like Find and Replace in MS Word and other text editors. You can always use some other editor to do this, but it would be nice to have inside Logseq.
If this is not something you’re doing often, you could bring up your notes repo in a solid text editor (like VS Code or Sublime) and do a find and replace there.
Unfortunately, the find/replace plugin has a big bug, and I don’t feel I can trust it. I just tried to replace a word in double square brackets and it replaced a number of unrelated words that happened to contain one of the letters from that word followed by a closed square bracket. It was a huge mess to clean up.
But like others wrote, VSCode works great. You can open your whole logseq database as a folder and do searches and replaces through it. Watch this nice video that explains it clearly (he is not using it for logseq but it’s the same principle): https://www.youtube.com/watch?v=M6EPqUctGrU
Logseq should make the Ctrl+K way more potent so we are able to do “Find and Replace” there as well as “Create New Page”, “Create New Block in Current Journal”, do “Queries” right there, without resorting to writing ad-hoc queries in a dedicated page or in Contents Page and so on.
But “Find and Replace” that can work with both Filters (wildcards, boolean logic - Google Search style -) and REGEX (as in VSCode) is a lot to ask from Logseq and I really wish it will be implemented at some point. I currently rely a lot on VSCodium for re-factoring but VSCodium can’t do database-type queries based on boolean operators so a best-of-both-worlds would be awesome
Re-factoring those files would take the same thing to do. I’m wary what will happen when we’ll have the same needs in the database version. Can Logseq match the power of VSCode for refactoring the database?..
I am shocked that this has been a requested feature for well over 3 years now. I am not a programmer, but I see all the different plugins available that solve seemingly MUCH more complicated problems. This feels like someone should be able to copy some code and paste it in. Can someone maybe shed more light on the difficulty of this problem?
As for the “Find and Replace” plugin, I hope they have fixed the bug that @Ideas mentioned; however, even if they have not, a feature that is clearly missing from that plugin is the ability to mass delete or replace characters with spaces. I opened something and it has all kinds bold text and I want to delete all of the “**”. @Ideas mentions a workaround, but again, developers and programmers appear to be tackling much more challenging problems. It seems like someone could spend the 30 minutes to update the source code??? I don’t know. I know this is only a slight issue due to all the workarounds, but with so many dedicated people working on the project, I hope someone will get to it soon.
I don’t want to seem like I’m calling anyone out either. With or without, it’s still an incredible tool that I am very much appreciative to have.