Hi everyone I accidentally deleted/unassigned the default tags and aliases properties and now have no way to restore or recreate these, so I might permanently not be able to use tags as a property.
Things I have tried
I’ve tried switching to YAML to create a property “tags” and input some test tags like #tag1, #tag2
but these are still saved as type Text when switching to the rendered view
When right-clicking on the property “tags”, I can see the property type Tags but it’s greyed out, so I’m unable to change the type away from Text
Any suggestions on solving this would be welcomed, thank you!
In YAML, the # symbol denotes a comment hence the need to surround #tag by quotes.
This could also be the reason why your tags key isn’t correctly interpreted/parsed by Properties .
In other words, I think that what you wrote for the tags key just doesn’t follow the right syntax.
You could also have used this though :
tags: ["#tag1", "#tag2"]
… or this :
tags: [tag1, tag2]
But the inline array will be re-written as a multiline bulleted list once you’ll modify any value for any key in Properties
Thank you for the corrections! I’ve tried re-formatting the tags as per your suggestions, but it changed to List type instead of Tags, and the “#tag1” doesn’t exactly work as a tag (doesn’t do anything when clicked) so I’m still stuck at this part
Have you tried to reboot Obsidian ?
(Sometimes it helps )
Maybe you could take a look at the types.json file located in the .obsidian folder of your vault and see if the key "tags" is associated with the type "tags" in there … .
The 3 “default” Obsidian keys (aliases, cssclasses and tags) should be the 3 top entries within "types" in that file :