I would like to be able to add tags to a group of selected files. There is an immensely long thread about feralflora’s brilliant merge_frontmatter script here already. I don’t want to add to it.
But – if I have read the thread (and the script) right – the last version could be called from a loop so that it would perform the desired operation on each file in turn. That is exactly what I want, but I don’t know how to use templater to pick the files and then loop through them. That may not be possible But if it is, I’d be very grateful if anyone could show me how.
Things I have tried
Asking here
Things I have not tried
Modifying some of my earlier Python scripts to do it all outside Obsidian. This would certainly be possible. I’d just like to be able to do this without disrupting my workflow.
I second this.
It should be written up how we can use the script when the target file is not one single current file.
But I’m curious, how you’d pick the files you’d want tagged? Because if it’s a manual thing, you can set to a hotkey a script that adds a tag, like my example here.
If you’d pick the files from a Dataview query, apparently the File Cooker plugin can be used to add the results to a folder and then the Multi Properties plugin can be used to add a tag to that folder…which is not exactly good if you don’t know how to put the files back again to the original folders (so one would need to make some safety measures there, or use the Projects plugin as mentioned here, which again is not ideal as tags I seem to remember are overwritten).
So yeah, I’d like for there to be a tutorial of some sort using that method, if Feralflora or anyone else is game.