I have several hashtags in my notes. If I search for one, say #forcethevote, it shows all the instances of the tag in all my notes I think.
However, if I go to the tag bar and click on “forcethevote” I get a search for “tag:#forcethevote”
This search returns a narrow subset of the first search.
I’m guessing that some instances of this tag are not being processed into “real tags” in some sense. What is the significance of the “tag:” prefix?
What I’m trying to do
I want to understand how Obsidian “thinks about tags.” I want clicking in my tags bar to show all the corresponding tags and not just some of them.
Yes, I find that tags that are expressed or defined in the YAML do not appear in tag: searches. Why would this be?
The tags are there because YARLE put them there… I can probably extract them somehow if I write a script but hopeing to keep them there as what’s the problem? Thanks
Do you know of any tools that will move the tags from YAML to the main body where a tag: search yields results? And why ignore actually properly formatted tags with #tag format that happen to live in YAML?
Thanks!
I haven’t seen the behavior you’re seeing with regards to searching for tags. In the screenshot below I’m finding notes that have tags defined in their YAML in different ways, and they all show up with a search for tag:#testtag.
Are you maybe defining your YAML tags differently than I am?
When you use the “tags” field in YAML you need to leave out the hash mark. In YAML that symbol marks the start of a comment, so your tag fields are effectively empty.