chhoumann / quickadd

QuickAdd for Obsidian
https://quickadd.obsidian.guide
MIT License
1.5k stars 138 forks source link

[BUG] Capture to tags not finding all types of tags #459

Closed chhoumann closed 1 year ago

chhoumann commented 1 year ago

Issue seems to arise when the following frontmatter is used:

---
tags:
- index
---

Discussed in https://github.com/chhoumann/quickadd/discussions/456

Originally posted by **lyndhurst** April 12, 2023 Hi, I saw from the changelog that releases 0.19.1 and 0.19.2 added the ability to look for tags in the front matter for the "Capture To Tag" feature. I would like to use QuickAdd to insert links to newly created notes into a structure note, often called MOCs in the Obsidian community. I tag my structure notes, with the `index` keyword in an array field located in the YAML frontmatter under the `tags` key. I do not prefix my tags with a `#` sign in this array; and I know that some people use the YAML key `keyword` instead of `tags`. Anyway, when I add `#index` in the `Capture To filename` field, an error is thrown stating that no notes tagged `index` were found. When I add `index` instead, of course it complains that the file does not exist, or creates it depending on the settings. I tested adding a `#index` tag to a couple of notes, and they end up being listed in the suggester which indicates the `Capture To Tag` functionality works fine. I also tested adding `#index` in the frontmatter `tags` array wondering if the plugin was looking for some kind of regex exact match, but it still did not work, and also messed up the YAML highlighting, teaching me that this is the YAML comment syntax :) Finally my questions are: - Is there a specific syntax to respect when adding the tag in the `Capture to` field for the plugin to look into the front matter ? - Or, is the plugin looking for another YAML key than `tags` ? - Or finally, am I missing something here ? Thanks for your help.
github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 0.20.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: