When right-clicking a tag which begins with dashes, e.g. -TEST, and selecting "New search for #-TEST", 0 results are shown in the Search sidebar. To return results, the search term must be modified from tag:-TEST to tag:#-TEST. The prepending of # for all tag searches doesn't appear to worsen results but only improve them (by accounting for edge cases such as this).
Maybe all "New search for ..." (and exclude) queries should include the hash symbol by default? When Obsidian autocompletes a tag after typing tag: into the search field, it also prepends a # to it by default.
Thanks.
Edit: Simply clicking on a tag in the Tags panel also searches for the tag and prepends a #.
When right-clicking a tag which begins with dashes, e.g.
-TEST
, and selecting "New search for #-TEST", 0 results are shown in the Search sidebar. To return results, the search term must be modified fromtag:-TEST
totag:#-TEST
. The prepending of#
for all tag searches doesn't appear to worsen results but only improve them (by accounting for edge cases such as this).Maybe all "New search for ..." (and exclude) queries should include the hash symbol by default? When Obsidian autocompletes a tag after typing
tag:
into the search field, it also prepends a#
to it by default.Thanks.
Edit: Simply clicking on a tag in the Tags panel also searches for the tag and prepends a
#
.