Skip to content
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

Tags from frontmatter aren't read as tags #39

Open
Robin-Haupt-1 opened this issue Jan 5, 2024 · 1 comment
Open

Tags from frontmatter aren't read as tags #39

Robin-Haupt-1 opened this issue Jan 5, 2024 · 1 comment

Comments

@Robin-Haupt-1
Copy link

There's a frontmatter field called "tags" that contains an array of strings that Obsidian treats like tags created using a hashtag in the notes content. Currently obsidiantools doesn't include this information when building the tags_index. (See https://help.obsidian.md/Editing+and+formatting/Tags)

It would be great if this feature could be added.

@Terae
Copy link

Terae commented Sep 5, 2024

As a workaround, I use this snippet:

front_matter = vault.get_front_matter(note)
tags = vault.get_tags(note)
tags += front_matter.get("tags", [])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants