Add shortcuts for "startwith" and "endwith" functions
-
Dariush
- Posts: 19
- Joined: Sat Apr 01, 2017 2:41 pm
Add shortcuts for "startwith" and "endwith" functions
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: 320
- Joined: Wed Jun 12, 2013 10:43 pm
Re: Add shortcuts for "startwith" and "endwith" functions
Both symbols are allowed and work fine in Windows filenames.
-
void
- Developer
- Posts: 19903
- Joined: Fri Oct 16, 2009 11:31 pm
Re: Add shortcuts for "startwith" and "endwith" functions
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$
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
Thanks.
Whoops, you're right.froggie wrote: Sun Jun 14, 2020 9:47 pm Both symbols are allowed and work fine in Windows filenames.
-
NotNull
- Posts: 5961
- Joined: Wed May 24, 2017 9:22 pm
Re: Add shortcuts for "startwith" and "endwith" functions
FWIW, I use this
Filter definition:
Name:
Search:
Macro:
Filters can be configured under Menu:Search > Organize Filters
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
Oooh, it works! Thanks a lot! 