-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YAML frontmatter tags support #72
Comments
Sounds like Obsidian's |
I just tested this and the following already works: ---
location: [31.8340099,35.5375804]
tags:
- hike
--- With no other tags listed in the note, it gets recognized as expected. (I was not aware of this being natively supported but followed the example on https://help.obsidian.md/How+to/Working+with+tags and it just worked) |
Yes, I tested that format and it did not work. I have just re tested it does not work on my side... |
Can you share the front matter that doesn't work? |
Hi The one you posted for example. Or another I tested :
|
The example provided works correctly for me |
I have just tested it in another, brand new, obsidian vault, with only map view plugin installed and tag panel activated, as the only modifications from vanilla obsidian. I created 2 notes. It does not work. Tested with inline and frontmatter locations... I don't get why it does not work... |
Actually reading through this again I realised that I tested wrong. |
I tested this right now again, exactly like the example above. A note without any tags gets marked in the correct icons when I set |
Yeh I will have a look into why it isn't working. |
`this.app.metadataCache.getFileCache(file)[:].tags` only contained tags in the body of the file not files in the front matter. The function getAllTags takes the file cache and returns a list of formatted tags from the front matter and the body. Refactored the logic a bit to make it faster and easier to read.
Looks like #83 Fixes this issue |
Added in the just-released 2.0.0 version. |
Hi,
Unless I missed something, it seems that only the #hashtags are recognized in map view so to filter by tags, but not the tags defined in the note's YAMLfrontmatter. It would be better if all ways to declare tags in notes were supported, otherwise it seems risky/confusing as it "makes" two types of tags, tags readable by Map View search function and tags usable/readable by Obsidian search.
Tx
The text was updated successfully, but these errors were encountered: