Search for files created OR modified on dd.mm.yyyy?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Search for files created OR modified on dd.mm.yyyy?

Post by David.P »

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: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search for files created OR modified on dd.mm.yyyy?

Post by void »

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: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: Search for files created OR modified on dd.mm.yyyy?

Post by anmac1789 »

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: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Search for files created OR modified on dd.mm.yyyy?

Post by NotNull »

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 :D
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Search for files created OR modified on dd.mm.yyyy?

Post by David.P »

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: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Search for files created OR modified on dd.mm.yyyy?

Post by David.P »

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.

Image

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 👍
Post Reply