I’m trying to make a simple query where I search for all the line having a special tag, but missing the #done✅ tag.
Pretty simple right ?
tag:#project_x -tag:#done✅
The issue is that as soon as I type the absence of the #done✅ tag, and that I mark one line with this tag, all the lines in a that given file that contain the tag #project_x are now missing from my query results.
I can confirm that I have the latest verison (1.4.12)
I don’t think the emoji is the issue here, but more the search itself.
The search works, but only for files results.
When you want to get the granularity of a line, it gets more complicated.
I cannot express the idea that I want to search for a line (with the line: operator), that matches a set of tags (with tag: operator).
Is it possible to nest operators in Obsidian search ?
Are you sure the tags are on the same line?
Since Properties, multi-line key values are enforced.
Don’t take the Live Preview rendering into account. See the Source View.
As for line:, I hardly ever use it. I use regex, like /search.*terms/.
Have you tried line:(tag:#project_x -tag:#done✅)?
I think that without the brackets, it would look for tag:#project_x on the same line but not -tag:#done✅ on the same line.
First of all, it’s better to show lines with code blocks (which are the source code equivalent of your file).
Secondly, if Properties changed the tags to multi-line, they won’t be found on the same line anymore.
Thirdly, the original query seemed sufficient (for me, but I’m not a tag wrangler), but you can open up the “Search Pane” a bit in the way I showed in the screenshot. Clich on Search Settings in the right corner and toggle on “Show more context”.
As for more regex and logical operator stuff, you can try and install the Vantage - Advanced Search Builder plugin.
It seems like this is working : line:(#test -test2) But it can also show results if they are not really tags . But actually we cannot use the tag operator inside a Line operator.