How to get last 100 modified files?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
PeterPanino
Posts: 78
Joined: Sun Feb 21, 2016 10:26 pm

How to get last 100 modified files?

Post by PeterPanino »

How can I get the last 100 modified files of a specific file type and search content in these files?

For example:

• I search for *.pas
• Restrict the search to the last 100 modified files
• Search in these files for KeyPressed
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: How to get last 100 modified files?

Post by NotNull »

  • Sort by Date Modified, Descending
  • Search for
    ext:pas count:100 content:keypressed
More information and details can be found here.
PeterPanino
Posts: 78
Joined: Sun Feb 21, 2016 10:26 pm

Re: How to get last 100 modified files?

Post by PeterPanino »

That takes a VERY LONG TIME. It seems that it first searches ALL .PAS files (which are a HUGE number) for the content and ONLY THEN takes the last 100 modified files it found when searching the content among ALL .PAS files.

Instead, it should take the last 100 modified files and search THOSE 100 files for the content - which could be very few. So the result could be e.g. only 2 - 3 files.

Is this possible?
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: How to get last 100 modified files?

Post by NotNull »

The order in which you enter the searches has influence (*).
You might experiment with the order, like count:100 ext:pas content:keypressed
(
I can't reproduce this slowness, btw)


(*) In Everything 1.4; that will probably change in the next major version of Everything, version 1.5
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to get last 100 modified files?

Post by void »

Instead, it should take the last 100 modified files and search THOSE 100 files for the content - which could be very few. So the result could be e.g. only 2 - 3 files.

Is this possible?
Currently, no.

With count:100 Everything will only return when 100 files are found with the specified content.

To find only 3 files that contain your content, please try searching for:

ext:pas count:3 content:keypressed


Note: Please make sure the sort order is set before searching. Changing the sort will not work with the count: search in Everything 1.4.
For future versions of Everything, changing the sort when there is a count: search will cause a new search query to be executed.
For future versions of Everything, content: searching is done in the background and results are added as they are found.
Post Reply