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
How to get last 100 modified files?
Re: How to get last 100 modified files?
- Sort by Date Modified, Descending
- Search for
ext:pas count:100 content:keypressed
-
- Posts: 78
- Joined: Sun Feb 21, 2016 10:26 pm
Re: How to get last 100 modified files?
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?
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?
Re: How to get last 100 modified files?
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
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
Re: How to get last 100 modified files?
Currently, no.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?
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.