logic of the command-line option `-name-part` is flawed

Found a bug in "Everything"? report it here
lanyer
Posts: 4
Joined: Thu Jan 01, 2026 7:44 am

logic of the command-line option `-name-part` is flawed

Post by lanyer »

The logic of the command-line option `-name-part` is flawed. Using the latest stable version, the explanation for `-name-part <filename>` in the help documentation is: search for parts of a file's name. However, in practice, `Everything -name-part "abc"` only finds files that completely match the name "abc". Using `Everything -name-part "abc*"` finds files starting with "abc", and only `*abc*` finds files whose filenames partially match "abc", which matches the described functionality.
void
Developer
Posts: 19899
Joined: Fri Oct 16, 2009 11:31 pm

Re: logic of the command-line option `-name-part` is flawed

Post by void »

Thank you for the issue report lanyer,

-name-part matches the whole filename.

I have updated the documentation.

Use
-s nopath:abc
to match abc anywhere in the name part.

-s abc
will also work if Match Path is unchecked under the Search menu.



-s
-name-part
nopath: