Add shortcuts for "startwith" and "endwith" functions

Have a suggestion for "Everything"? Please post it here.
Post Reply
Dariush
Posts: 19
Joined: Sat Apr 01, 2017 2:41 pm

Add shortcuts for "startwith" and "endwith" functions

Post 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".
froggie
Posts: 297
Joined: Wed Jun 12, 2013 10:43 pm

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

Post by froggie »

Both symbols are allowed and work fine in Windows filenames.
void
Developer
Posts: 15237
Joined: Fri Oct 16, 2009 11:31 pm

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

Post 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$
Dariush
Posts: 19
Joined: Sat Apr 01, 2017 2:41 pm

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

Post 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.
NotNull
Posts: 5236
Joined: Wed May 24, 2017 9:22 pm

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

Post by NotNull »

FWIW, I use this

Filter definition:
Name:
^

Search:
startwith:myquery:

Macro:
^<myquery>


Filters can be configured under Menu:Search > Organize Filters
Dariush
Posts: 19
Joined: Sat Apr 01, 2017 2:41 pm

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

Post by Dariush »

Oooh, it works! Thanks a lot! :D
Post Reply