Search for *just* the filename?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
NotNull
Posts: 5252
Joined: Wed May 24, 2017 9:22 pm

Search for *just* the filename?

Post by NotNull »

Somehow I can't manage to build a search query that lets me find filenames containing "searchstring".
Any query I tried (and I tried!) will also report files that are in a folder that contains "searchstring" in it's name ...

Example:
searching for "find this" will report "c:\you'll never find this\dummy.txt" beside the expected "c:\folder\you should find this.txt"


What am I missing? (beside a brain-cell or two ...)
If there isn't a way to search for just filenames: please consider adding a search modifier to do so. Something like "namepart:"

EDIT: namepart: probably isn't the best name for this, as there is also a function namepartdupe: to get the file(/folder) name without extension. It was just for illustration purposes.
therube
Posts: 4605
Joined: Thu Sep 03, 2009 6:48 pm

Re: Search for *just* the filename?

Post by therube »

Code: Select all

file:  "find this"
void
Developer
Posts: 15320
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search for *just* the filename?

Post by void »

Disable match path from the Search menu?

There is also nopath: search modifier if you want match path enabled from the Search menu.
NotNull
Posts: 5252
Joined: Wed May 24, 2017 9:22 pm

Re: Search for *just* the filename?

Post by NotNull »

void wrote:Disable match path from the Search menu?

There is also nopath: search modifier if you want match path enabled from the Search menu.
Perfect! That's what I overlooked! So simple (once you know ...)
Thanks!!!
PS: And now I want my two brain-cells back! ;-) )

@therube:
file: "find this" will also match the dummy.txt from the example (unless you disable Match Path..)

EDIT: I must have read the Searching support page 4 times and overlooked this all this time:
path:
nopath: Match the full path and file name or just the filename.
Now I feel really stupid ...
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Search for *just* the filename?

Post by Stamimail »

known issue...
To get over such problems, try to set in Home tab:
Match path: disabled
etc..
I hope it will be solved in Everything 1.5.
I suggested once checkboxes: [ ] Match Name [ ] Match Path ...
viewtopic.php?f=10&t=4956#p12606
NotNull
Posts: 5252
Joined: Wed May 24, 2017 9:22 pm

Re: Search for *just* the filename?

Post by NotNull »

Stamimail wrote:known issue...
To get over such problems, try to set in Home tab:
Match path: disabled
etc..
I hope it will be solved in Everything 1.5.
I suggested once checkboxes: [ ] Match Name [ ] Match Path ...
viewtopic.php?f=10&t=4956#p12606
I like using the indicators in the Everything status bar. It's a reminder of the current setting, but you can also use it to switch a modifier off by double clicking it. Right-click the status bar to switch any of them back on.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Search for *just* the filename?

Post by Stamimail »

I like using the indicators in the Everything status bar ...
But if you didn't notice the indicator, it means it's not enough.
More than once, I wondered if it would be right to suggest "Double Status bar", the same status bar at bottom and above the Results part.
Sometimes you need the indicator at bottom, but many times you need the indicators close to the SearchBox.
NotNull
Posts: 5252
Joined: Wed May 24, 2017 9:22 pm

Re: Search for *just* the filename?

Post by NotNull »

Stamimail wrote:But if you didn't notice the indicator, it means it's not enough.
Turns out it mainly was ... not enough coffee! :-)
Post Reply