Open eduardo-toptal opened 2 years ago
A good option for this, used in many code languages, is to treat an input surrounded by /
characters as a regular expression.
For example:
*\.exe
will search for "\.exe" explicitly, including the `and
` characters./*\.exe/
will instead use regex, and search for any file finishing with .exe (assuming the regex is set to single-line search by default, which would make sense for file name searching).It may be useful to either change the color of the search input or add a small "regex" tag to the end of it when this type of string is detected, so the user can clearly understand what they are doing. As an example, here is how VS Code displays the difference:
Is there anything else besides these operators?
OR
to |
AND
to +
NOT
to -
What's the Problem?
Search queries can be even more powerful leveraging regular expressions. Instead of the clunky Windows Query Syntax we could move from
and queries like
Solution/Idea
Add a checkbox to choose between windows default and regexp. Also allow making regexp the standard.
Alternatives
None
Priorities
No response
Files Version
2.3.6.0
Windows Version
Windows 10 Pro 21H2
Comments
No response