Filter for exact tag match like "tag is <tag>" #931
-
Hi. I use some very short tags for implementing some prioritization processes like #A and #B and in other cases subtags under a main tag like #book/science #book/literature, but also tags than just contain #book tag. But if I want to filter tasks that contains exactly #A or just #book and use "tag contains #book" it shows me not only those tags that contains #book but also all the sub-tags, in the case of #A it shows me all where the letter A is part of the tag. How could I filter for exact tag match? could something like "tag is #book" be implemented ? Perhaps I'm missing something? Thanks!. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hi, NowDepending on how many other similar tags you have, you could now use multiple queries - like:
Or you could combine them with boolean operators in to one line with:
Or as a short-cut:
I don't have a good answer for the In FutureIt's worth your subscribing to #790 - regular expression search - as once that is released, you would be able to search for exact strings something like:
Which is: tag:
|
Beta Was this translation helpful? Give feedback.
-
@punxsutawney Tasks 1.12.0 is out now, with regex search of several fields, including There are fairly thorough docs. It is now possible to do exact searches of short tags. Although doing this via See the Finding short tags example. |
Beta Was this translation helpful? Give feedback.
-
Regular expression searching in tags is just released - in 1.13.0.
Docs: https://obsidian-tasks-group.github.io/obsidian-tasks/queries/filters/#tags The examples in that page, and in https://obsidian-tasks-group.github.io/obsidian-tasks/queries/regular-expressions/#finding-sub-tags are based on the questions in this discussion. |
Beta Was this translation helpful? Give feedback.
-
Closing as feature has been released |
Beta Was this translation helpful? Give feedback.
Hi,
Now
Depending on how many other similar tags you have, you could now use multiple queries - like:
Or you could combine them with boolean operators in to one line with:
Or as a short-cut:
I don't have a good answer for the
#A
case.In Future
It's worth your subscribing to #790 - regular expression search - as once that is released, you would be able to search for exact strings something like:
Which is:
tag: