Discussion related to "Everything" 1.5 Alpha.
David.P
Posts: 197 Joined: Fri May 29, 2020 3:22 pm
Post
by David.P » Tue Jul 18, 2023 8:32 am
Hello Forum,
is there a shortcut to search for
dc:07/18/2023|dm:07/18/2023
so that the date only needs to be written out once?
void
Developer
Posts: 16670 Joined: Fri Oct 16, 2009 11:31 pm
Post
by void » Tue Jul 18, 2023 8:48 am
Please try creating the following filter:
In Everything , from the Search menu, click Add to filters .
Change the Name to: Date Modified or Created
Change the Search to: dc:search:|dm:search:
Change the Macro to: dcm<search>
Click OK .
Now you can use the following search:
dcm:07/18/2023
which Everything will expand to:
dc:07/18/2023|dm:07/18/2023
anmac1789
Posts: 668 Joined: Mon Aug 24, 2020 1:16 pm
Post
by anmac1789 » Tue Jul 18, 2023 10:19 pm
void wrote: ↑ Tue Jul 18, 2023 8:48 am
Please try creating the following filter:
In Everything , from the Search menu, click Add to filters .
Change the Name to: Date Modified or Created
Change the Search to: dc:search:|dm:search:
Change the Macro to: dcm<search>
Click OK .
Now you can use the following search:
dcm:07/18/2023
which Everything will expand to:
dc:07/18/2023|dm:07/18/2023
Is the search in dc:search:|dm:search: necessary and to be included or is that just a placeholder?
NotNull
Posts: 5458 Joined: Wed May 24, 2017 9:22 pm
Post
by NotNull » Tue Jul 18, 2023 10:43 pm
search: indicates a variable that will be used in the macro dcm
<search> . It will be replaced by the text you type in the search bar.
The
search : text itself is arbitrary, it could be "cowbell" too:
Search = dc:cowbell:|dm:cowbell:
Macro = dcm<cowbell>
But
search is a slightly more obvious choice
David.P
Posts: 197 Joined: Fri May 29, 2020 3:22 pm
Post
by David.P » Wed Jul 19, 2023 8:04 am
Thank you! That works perfectly, and I don't have to change the input date in two places anymore for this search!
void wrote: ↑ Tue Jul 18, 2023 8:48 am [...]
Now you can use the following search:
dcm:07/18/2023
which Everything will expand to:
dc:07/18/2023|dm:07/18/2023
David.P
Posts: 197 Joined: Fri May 29, 2020 3:22 pm
Post
by David.P » Thu Jul 27, 2023 9:07 am
On a similar note, I just tried to create a filter for Word documents. Probably I made a mistake, because all Word documents are always shown, no matter what search term for the file name is entered in the search field.
Thank you for pointing out what I am doing wrong.
Edit: I just saw that if I clear the "Macro" box, then the filter works as intended