How to restrict search pattern to file names?
If I disable menu
Search--->Match Path
does that mean that folders/folder names are not considered?
Peter
How to restrict search pattern to file names?
Re: How to restrict search pattern to file names?
To search for files only, include the following in your search:
file:
Search -> Match Path refers to matching the full path and filename or just the filename
For example:
With match path disabled, Everything will test against the filename part only:
foo bar.txt
With match path enabled, Everything will test against the full path and filename:
c:\folder\subfolder\foo bar.txt
The above might be useful if you want to search for subfolder and have foo bar.txt show in the results.
file:
Search -> Match Path refers to matching the full path and filename or just the filename
For example:
With match path disabled, Everything will test against the filename part only:
foo bar.txt
With match path enabled, Everything will test against the full path and filename:
c:\folder\subfolder\foo bar.txt
The above might be useful if you want to search for subfolder and have foo bar.txt show in the results.
Re: How to restrict search pattern to file names?
Ok thank you, BUT this does not work:
file:regex:" -[^ ]"
Still some matchings of folders are listed.
How do I have to concatenate
file:
and
regexp:
otherwise?
Peter
file:regex:" -[^ ]"
Still some matchings of folders are listed.
How do I have to concatenate
file:
and
regexp:
otherwise?
Peter
Re: How to restrict search pattern to file names?
file:regex:" -[^ ]" should not be displaying any folders, please make sure match regex is disabled from the Search menu.
Is file:regex:" -[^ ]" your only search?
Are the folders from a file list index?
Is file:regex:" -[^ ]" your only search?
Are the folders from a file list index?
Re: How to restrict search pattern to file names?
Have a look at the attached sample snapshot resp. here:
http://www.picfront.org/d/9AIL
Why is e.g. the marked file lsited as result?
I can only be because of the folder name
Yes, menu Search-->Enable RegEx is disabled
Peter
http://www.picfront.org/d/9AIL
Why is e.g. the marked file lsited as result?
I can only be because of the folder name
Yes, menu Search-->Enable RegEx is disabled
Peter
Re: How to restrict search pattern to file names?
Thanks for the screenshot.
Disable match path from the Search menu if you don't want file:regex:" -[^ ]" to match the full path and filename.
Alternatively search for:
nopath:file:regex:" -[^ ]"
Disable match path from the Search menu if you don't want file:regex:" -[^ ]" to match the full path and filename.
Alternatively search for:
nopath:file:regex:" -[^ ]"
Re: How to restrict search pattern to file names?
Ok, it seems to work now.
However having to specify "nopath:" AND "file:" is somehow from my point of view doubled.
If users specify "file:" then the path with all the folders should automatically NOT be inspected.
"file:" should automatically internally enable "nopath" attribute.
May I ask to to implement this in Everything?
Thank you
Peter
However having to specify "nopath:" AND "file:" is somehow from my point of view doubled.
If users specify "file:" then the path with all the folders should automatically NOT be inspected.
"file:" should automatically internally enable "nopath" attribute.
May I ask to to implement this in Everything?
Thank you
Peter
Re: How to restrict search pattern to file names?
I'll consider an option to disable path matching the file: modifier, is there any reason you have match path enabled from the Search menu?