Page 1 of 1

Can we get the search result only for files or folders?

Posted: Thu May 30, 2019 1:23 pm
by kaifuzi
Hello,
Is it possible to get the search result only for files or folders?
I can't find this option from Everything_SetRequestFlags.
Thanks!

Re: Can we get the search result only for files or folders?

Posted: Thu May 30, 2019 1:27 pm
by void
Include the following in your search:
file:
-or-
folder:

Re: Can we get the search result only for files or folders?

Posted: Thu May 30, 2019 1:37 pm
by kaifuzi
Sorry, I can't get your point.
How can I cadd file or folder in code?
Thanks!

Re: Can we get the search result only for files or folders?

Posted: Thu May 30, 2019 1:42 pm
by void
To search for files only with the word foo in the filename, search for:

Everything_SetSearch("file:foo");

To search for folders only with the word bar in the filename, search for:

Everything_SetSearch("folder:bar");

Re: Can we get the search result only for files or folders?

Posted: Thu May 30, 2019 1:53 pm
by kaifuzi
It works, thanks!