Implement regular expression search for tag and tags #1040
Replies: 4 comments 2 replies
-
When this is implemented, show how to write the following as a regex:
Something like:
|
Beta Was this translation helpful? Give feedback.
-
This should start by a separate refactoring PR to make For example:
|
Beta Was this translation helpful? Give feedback.
-
I've looked at implementing this a couple of times, and each time I got stuck agonising about this: // Search is done sans the hash. If it is provided then strip it off.
const search = tagMatch[3].replace(/^#/, ''); I don't think the regex filters should strip The more I think about it, the more I think that it is unhelpful that these two searches give identical results:
I think if the users supplies a Currently, searching for Changing the above code to the following does not cause any tests to fail: const search = tagMatch[3]; |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In Tasks 1.12.0, it will become possible to do regular expression searches on
path
,heading
anddescription
fields.It would be good to add this to
tag
/tags
searches too.This sill involve editing
src/Query/Filter/TagsField.ts
. Ideally, this would be implemented in terms ofTextField
, to not duplicate any of the code inTextField
.Beta Was this translation helpful? Give feedback.
All reactions