Scenario: looking for all instances of a root-level tag (ones which have no sub-tags)
Problem:
When searching for a non-nested tag and a note has both the root tag and a non-nested tag within it then the search will skip the non-nested tag in that file.
Steps to reproduce
create a note that has two top level tags in that one note
create another note but with a nested tag
search for only non-nested tags tag:#<TAG> -#<TAG>/
notice how only non-nested tags appear as expected
next, make any one of the two non-nested tags nested
SYSTEM INFO:
Operating system: ios 17.6.1 (Apple iPhone16,2)
Obsidian version: 1.7.0 (153)
API version: v1.7.0
Login status: not logged in
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
No I’m not trying to do such. What I am doing is excluding all nested references so doing -tag won’t work unless I make it overly verbose. Also I’m not trying to exclude a specific singular tag. I am rather wanting to highlight a search related issue where if I have two references of a root tag and I try to exclude any nested tag as such #reference/ it works as intended unless i change one of the two root tags to #reference/something. Then search should show at least the other reference, but it doesn’t.
I tried: (tag:reference) -"#reference/"
and (tag:reference) -line:"#reference/"
both result in the same behavior. When there are two #reference in a file they both show up. If I change just one of them to something like #reference/app then nothing shows up.