Content could provide "grep-like" result lines

Have a suggestion for "Everything"? Please post it here.
Post Reply
Zavod
Posts: 4
Joined: Tue May 31, 2016 3:15 pm

Content could provide "grep-like" result lines

Post by Zavod »

I find something I use Search Everything for, quite a bit, is to search for files with content:<searchterm>.

I'd *LOVE* to see the results provide the line(s) containing that content displayed on screen. Similar to "grep".

I'm thinking something like:

Code: Select all

Filename        Path       Size          Date Modified        (etc.)
myfilename.ext  C:\MyDir   123           2022-10-04
    -> 42: Blah black <searchterm> blah
    -> 167: Gnarley <searchterm> constants
otherfile.ext     c:\Elsewhere   456     2022-01-01
    -> 18: line content <searchterm>
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Content could provide "grep-like" result lines

Post by raccoon »

Try this search query:

"E:\documents\" regex:content:".{10}foobar.{10}" addcolumn:reg-match-0:3

It will search all of the files in your documents folder for files containing the word "foobar" and it will display 10 characters before and after it in the temporarily added "Regular Expression Match 0" column. You can change the value from 10 to 20 or 40 or whatever you prefer, just make the column wider.
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Content could provide "grep-like" result lines

Post by void »

I will consider showing the matching line number in the preview pane or details pane.

Thank you for the suggestion.
Post Reply