I'm trying to write a plugin that fetches the list of files containing a particular tag (like "#condition") in ObsidianMD for some downstream purposes. The built-in global-search
can do this already, and it seems like the metadataCache
has some information about tags.
Further, the API appears to be able to getAllTags
: https://github.com/obsidianmd/obsidian-api/blob/master/obsidian.d.ts#L1291, but I don't see any method that takes a tag and spits out a list of related files.
Does anyone know anything?