About Tags

OK, I’ve searched all around and yes there is a lot of information concerning tags, but I cannot seem to find anywhere where the is any mention of the significance of the variety of tags that I have seen.

I have seen all of the following set as tags:

tags: Home

tags: #Home

tags:
- Home

tags: [Home]

tags: [#Home]

tags: “Home”

tags: [“Home”]

Which is correct? Is there a reason for each kind of entry?

I ask because I imported a bunch of notes and they seem to be all over the place, and I can’t even find a batch way of editing them so I don’t wish to need to do it twice. The batch editors don’t seem to work on properties. I have also used Tag Wrangler all that I can, but some imported tags have Obsidian illegal tag characters, like a space of a period.

Also on that note… ha, ha… I imported a note that had a hashtag reference in the middle of it. Obsidian wants to turn this into a tag, which it is not. How do I make a note that refers to a hashtag without it becoming a tag?

I’m looking for any input that may educate me or even possibly ease that pain.

thanx…

Tags in Properties default to being written this way:

tags:
  - Home

So if you want to stick with how the Obsidian team writes tags, that’s the way you want to go.

To answer that question, I think there are just a lot of different ways to format YAML frontmatter. I don’t know if any of your examples are incorrect, but there is definitely more than one correct way to do things.

Obsidian recently implemented “Properties”. Before that it supported YAML frontmatter. (I think it still is YAML, but now more powerful. I’m not 100% sure.)

So you’ve likely seen many different types of examples because Obsidian has been evolving very quickly in the few years since it was first released. And best practices were (and still are) being figured out. And now Properties is a huge fundamental change, so it’s likely best just to do as solarboi recommended, and follow the current best-practices for Properties.

Well, in Obsidian technically yes it is. :slight_smile:

If you put a hashtag before something, then in Obsidian it will be recognized as a tag. If you don’t want it to be a tag, you can escape the # by using a backslash. (Backslash escapes other special characters too.)

This \#Example will not be a tag.

Thanx all…

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