Returns a list of all tags in a vault, sorted alphabetically.
Parameters
Vault
The vault to work in.
Type: Vault reference
Filter by path
Enables filtering the list of tabs reported by Obsidian. "It contains …" returns only the tabs that contain Filter string. "It begins with …" returns only the tags that begin with the given Filter string. "It ends with …" returns only the tags ending in the value of Filter string. Default: No filtering.
Options:
- No
- It contains …
- It begins with …
- It ends with …
Filter string
Filter the results by this string as specified by Filter. The leading "#" is optional, so filtering for "#TagName" and "TagName" will yield the same results. Only available when filtering is enabled.
Type: Text
Case-insensitive filtering
Enable if lowercase and uppercase shouldn't make a difference. Only available when filtering is enabled.
Type: Boolean (YES
/NO
)
Return Value
Text (list)
Examples
Most of the time you would use this action to get the full list of tags, then loop over the results list using the built-in "Repeat With" block and filter them with whatever you need. The loop variable Repeat Item
will contain a single tag.
If you want to filter the list, I recommend using the "Filter List" action from Sindre Sorhus's excellent Actions app (no relation) or a built-in "Repeat With" loop with a contained "If" action.
Related Links
- Search the Actions for Obsidian community forum for "List All Tags"