[Solved] search only filenames

General discussion related to "Everything".
Post Reply
w64bit
Posts: 253
Joined: Wed Jan 09, 2013 9:06 am

[Solved] search only filenames

Post by w64bit »

Now, if I search for zip, the results are containing also all zip archive files.
Is it possible to have by default searching only filenames, but without using functions, like zip !*.zip, zip !ext:zip?
I am asking that because there is already an ext: function, which can be used for searching extensions.

Example:
searching for zip to have displayed only files+folders with zip in the name and not in the extension.
Last edited by w64bit on Fri Jan 21, 2022 3:38 pm, edited 6 times in total.
keithg1964
Posts: 24
Joined: Thu Mar 26, 2009 3:55 pm

Re: search only filenames

Post by keithg1964 »

file:*.zip
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: search only filenames

Post by void »

Everything needs a namepart: modifier so the extension is not checked, it's on my TODO list.
searching for zip to have displayed only files+folders with zip in the name and not in the extension.
Match zip anywhere in the name part only:
!regex:".*zip\.[^.]*(*SKIP)(*F)|^.*$"

zip at least once in the name part, and allow the extension to be zip:
regex:zip.*\.[^.]*
Post Reply