My absolutely favorite new feature: dm-day:%day% pic:

Discussion related to "Everything" 1.5 Alpha.
Post Reply
programmablesoda
Posts: 18
Joined: Wed Jan 22, 2020 7:37 am

My absolutely favorite new feature: dm-day:%day% pic:

Post by programmablesoda »

pic: dm-month:%month% dm-day:%day%

I would like to be able to see all my pictures from this day in the past--for any year.
I.e. on the 10th of July for any year, what all pictures did I take?

I've never found away to extract the month or day from the TODAY function with regex, but I can set environment variables and so the below works!
pic: - show picture files only
dm-month: - only for this month (such as 7 / July)
dm-day: - only for this day (such as the 10th)
The year is ignored, so it shows all years.
A great way to show what happened "on this day" in history.

Couple of notes
1) It would be nice to be able to figure out the current month / day within Everything, perhaps something like:
pic: dm-month:today dm-day:today
or being able to regex: the date properties
2) the docs show the da-day and da-month functions, but dm doesn't document dm-day and dm-month (and the others)
3) the query takes about 3-4 minutes to run. Looking at the console, there are entries like:
2021-07-09 23:34:49.871: found 0 folders with 6 threads in 32.395455 seconds
2021-07-09 23:37:30.817: found 97 files with 6 threads in 160.940103 seconds
2021-07-09 23:37:30.817: DB_WAIT: db_query_get_result_count waited 179.793966 seconds (full logs available)
that comes up in about 30 seconds, and then Everything is "not responsive" for 3 minutes or so.
It would be great to be able to index dm-day: and dm-month: for fast sort. Perhaps indexing any function (even pic:) would be an interesting option.
4) I have the search delay set to 1120 ms, however, if I have
pic: dm-month:%month% dm-day:%day%
in the search box, as soon as I press backspace, it starts another search. This is true if it is
pic: dm-month:%month% dm-day:07
as well. If you do this, and certainly if you quickly do: backspace, 6, backspace, 5, backspace, 4
it gets in a state of "search would block" where the results do not get updated (so they are incorrect) and are not interactable.
NOTE: I have just found that 1.5a ignores the search delay when a backspace is pressed no matter what the search, which causes it to "freeze" for a couple of minutes with my index.

Let me know if I can help with any logs.
THANK YOU for everything ( ;) and thanks for adding HEIC to PIC:
--
Fred
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: My absolutely favorite new feature: dm-day:%day% pic:

Post by void »

Thank you for the feedback Fred,
1) It would be nice to be able to figure out the current month / day within Everything, perhaps something like:
pic: dm-month:today dm-day:today
or being able to regex: the date properties
The Everything Search Preprocessor might come in handy here:
dm-month:#month:#now:
dm-day:#day:#now:

I'll add the today keyword to dm-month: dm-day etc..
2) the docs show the da-day and da-month functions, but dm doesn't document dm-day and dm-month (and the others)
da-day is for date accessed.
dm-day and dm-month can be found here.
Categorizing and sorting all the search functions is being worked on. (currently they are all sorted alphabetically)
3) the query takes about 3-4 minutes to run. Looking at the console, there are entries like:
2021-07-09 23:34:49.871: found 0 folders with 6 threads in 32.395455 seconds
2021-07-09 23:37:30.817: found 97 files with 6 threads in 160.940103 seconds
2021-07-09 23:37:30.817: DB_WAIT: db_query_get_result_count waited 179.793966 seconds (full logs available)
that comes up in about 30 seconds, and then Everything is "not responsive" for 3 minutes or so.
It would be great to be able to index dm-day: and dm-month: for fast sort. Perhaps indexing any function (even pic:) would be an interesting option.
dm-day is slow.
Everything stores dates as FILETIMEs internally.
Converting a FILETIME to a day-light-corrected year-month-day date is CPU expensive.

If you click in the result list Everything will become unresponsive until the search is complete.
Did you click in the result list?

Consider indexing the 'Day Modified' (different to Date Modified) property (from Tools -> Options -> Indexes -> Properties) and searching this property as text:
wildcards:tostring:day-modified:11/*/* (DD/MM/YYYY syntax will depend on your locale settings)
---this search should be instant---
4) I have the search delay set to 1120 ms, however, if I have
pic: dm-month:%month% dm-day:%day%
in the search box, as soon as I press backspace, it starts another search. This is true if it is
pic: dm-month:%month% dm-day:07
as well. If you do this, and certainly if you quickly do: backspace, 6, backspace, 5, backspace, 4
it gets in a state of "search would block" where the results do not get updated (so they are incorrect) and are not interactable.
NOTE: I have just found that 1.5a ignores the search delay when a backspace is pressed no matter what the search, which causes it to "freeze" for a couple of minutes with my index.
Please send the debug log to support@voidtools.com

The freezing should not occur.
It sounds like Everything is trying to perform another action on the database causing the database to block.
Backspace should use the search delay, this sounds like a bug.

edit:
There's something causing the database to block when using a search delay.
I am looking into the issue.
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: My absolutely favorite new feature: dm-day:%day% pic:

Post by void »

Everything 1.5.0.1269a adds support for dm-year:today, dm-month:today, dm-day:today and dm-hour:today

Everything 1.5.0.1269a fixes an issue with the Everything database blocking when using a search delay.
Post Reply