How do I automatically collect tags in front matter of a note?

What I’m trying to do

CONTEXT: I am in academia. I am using Projects plugin to manage my papers. One of the things I would love is if I am able to get a shortcut or automatically run a script that collates all the tags in a document and adds them to the front matter as tags::

Things I have tried

I’ve tried searching the forum. I’ve tried to use chatgpt which suggested Templater and javascript but I cannot seem to get it to work. I do not know javascript so not sure what I am doing is not helpful!

I’ve tried to follow/relevant:
Smart automatically updated metadata across a vault, - do not really want to use python

Have a look at the linter plugin (search in the community plugins in obsidian). Documentation is here, YAML Rules - Linter have a look at the “Move Tags to YAML” section on that page.

Highly recommend the plugin on general principles as well - it’s great for keeping things tidy and consistent.

Note: make sure you have a backup of your vault before you run it across the whole vault. I’ve not had issues, but it does edit your notes (obviously) so better safe than sorry!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.