Iād very much like a replace function that you can use across all notes.
The new search bar does a great job off finding all instances of a unique string I have in my notes, Iād like to have it auto changed across hundreds of my notes. Iād love to be able to replace the found unique string with something else for all finds.
Thanks for the suggestion.
It seems to be something like a kind of batch processing feature.
I havenāt ever thought I need it because itās for taking notes, not designed for writing documentation. So, you shouldnāt need to strictly organize content such as tokens, IDs, or something like that. Whatās the unique string you want to replace in your case?
If you still want it, you can create a custom command with init.js that replaces keywords across notes using the database APIs. Just like you write a shell script to accomplish that in filesystem.
The string is part of the template I use for all my notes. In this case the date section.
Ooh that is another feature I would love. To be able to create different templates. I have different templates for different type of notes and a default one. I would love to be able to set this in the settings instead of copy/pasting them. Especially on mobile this would save me a lot of time.
Back to the replace, Iām trying to do this from the dev console. Is there a way I can just get an array of all notes and replace the string and force a sync after the change?
I was also thinking just doing this using the export and restore function, and just use Visual Code to replace the string in all the JSON files before restoring them. This way I also have backup in case anything goes wrong.
But still, I think this could be a nice official feature added to the Inkdrop search box. My use case would be rare but there are other things this would be useful for. Like replacing a word or name youāve always spelled incorrectly etc.
Aah yes it sadly would have to be for mobile, I seldom make new notes on a desktop. That plugin looks nice albeit maybe a bit over engineered? Only missing feature would be a default template for new notes. Saving you time there.
Thanks Iāll have a go at it sometime with the console again. *After I do a backup first.
Hmm, nice new feature! The API seems clear enough. But I kinda know I probably wonāt take the time for creating it myself. Its a nice to have, not a must have luckily.