content and name/path search

Have a suggestion for "Everything"? Please post it here.
meteorquake
Posts: 631
Joined: Thu Dec 15, 2016 9:44 pm

content and name/path search

Post by meteorquake »

content: searches for the file contents, but often one is equally interested if the word is also in the path

it would be handy to have 2 variants -

contentn: searches in file name and contents

contentp: searches in full file path and contents

presumably name/path would be tested first

d
therube
Posts: 5753
Joined: Thu Sep 03, 2009 6:48 pm

Re: content and name/path search

Post by therube »

Something like this:

path:humanity Chomsky | C:\out\SALAMANDER\dir content:humanity


Maybe not. I think I confused myself...
Or...

<path:humanity Chomsky | C:\out\SALAMANDER\dir> content:humanity


(still not sure I'm getting it)
void
Developer
Posts: 20041
Joined: Fri Oct 16, 2009 11:31 pm

Re: content and name/path search

Post by void »

It can be done with a bookmark/filter macro.

To create a bookmark macro that searches filenames and content:
  • In Everything, from the Bookmark menu, click Add to bookmarks...
  • Change the Name to:
    Content and Filename
  • Change the Search to:
    name:<#param:> | content:<#param:>
  • Change the Macro to:
    contentn
  • Click OK.
To create a bookmark macro that searches full paths and content:
  • In Everything, from the Bookmark menu, click Add to bookmarks...
  • Change the Name to:
    Content and Full Path
  • Change the Search to:
    path:<#param:> | content:<#param:>
  • Change the Macro to:
    contentp
  • Click OK.
Example usage:
contentn:foo

contentp:"foo bar"