obsidian-query-language
obsidian-query-language copied to clipboard
search by tag
Search by tag like these query: "'#my-tag"
working but i cannot make AND & OR conditions with tag.
- I just want to list notes that in folder "'Folder/" that contains that tag
- if tag is declared as metadata
--- Tags: my-tag ---
this way search dont work
Solution that seems to solve these issues is following
query: { $and: [ { "path": "'Folder/" }, { $or: [{ "content": "Tags: my-tag" }, { "content": "'#my-tag" }]}]}
But this way if i have tag named #my-tag-2 its match and with some tags this solution make strange things, its just match random notes from this folder that dont have nothing to do with the tag