Page 1 of 1

Add shortcuts for "startwith" and "endwith" functions

Posted: Sun Jun 14, 2020 8:32 pm
by Dariush
The symbols ^ and $ cannot be used in filenames anyway, so why not use them as a shortcut? E.g. "test .txt$" would be internally equivalent to "test endwith:.txt".

Re: Add shortcuts for "startwith" and "endwith" functions

Posted: Sun Jun 14, 2020 9:47 pm
by froggie
Both symbols are allowed and work fine in Windows filenames.

Re: Add shortcuts for "startwith" and "endwith" functions

Posted: Sun Jun 14, 2020 10:27 pm
by void
I'll consider adding optional ^ and $ shortcuts for startwith:/endwith:

Thanks for the suggestion.

Currently, you could try searching for:
*.txt

or, enable regex from the Search menu and search for:
\.txt$

Re: Add shortcuts for "startwith" and "endwith" functions

Posted: Sun Jun 14, 2020 10:41 pm
by Dariush
Thanks.
froggie wrote:
Sun Jun 14, 2020 9:47 pm
Both symbols are allowed and work fine in Windows filenames.
Whoops, you're right.

Re: Add shortcuts for "startwith" and "endwith" functions

Posted: Mon Jun 15, 2020 9:24 am
by NotNull
FWIW, I use this

Filter definition:
Name:
^

Search:
startwith:myquery:

Macro:
^<myquery>


Filters can be configured under Menu:Search > Organize Filters

Re: Add shortcuts for "startwith" and "endwith" functions

Posted: Mon Jun 15, 2020 12:46 pm
by Dariush
Oooh, it works! Thanks a lot! :D