How would you write all your vault's tags on a note?

  • Worded differently: make a list of all your tags, put it on a note
  • I’ve never automated anything like this in Obsidian, so I don’t know where to start, any pointers will be very welcome

My use case if you’re curious: I want to start a new vault and import all my tags, which are fairly complex, so autocomplete will work when I’m tagging my new notes. Also, having the list on the tag pane will help.

If you have dataview plugin installed, you can write this query, which produces a table with all your tags listed alphabetically, and the number of notes in which each tag appears:

```dataview
table length(rows) as "Uses" from ""
flatten file.tags as tag
group by tag
```

But note also that Obsidian includes a “tags” panel which can be used to list all your tags (and if they are hierarchical, the hiearchies can be collapsed/expanded).

1 Like

Once you have the DataView query, you could use a plugin like DataView Serializer or DataView Publisher to save the results to a file. Or you could copy them from Reading View.

1 Like

Great! I just learned some DataView basics and used @JLDiaz 's code and @CawlinTeffid 's suggested DataView Serializer: it works flawlessly.

I really need to learn how to use DataView. Thank you both so much!