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

Plug-in and third party software discussion.
Post Reply
kaifuzi
Posts: 19
Joined: Thu May 30, 2019 12:53 am

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

Post 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!
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void »

Include the following in your search:
file:
-or-
folder:
kaifuzi
Posts: 19
Joined: Thu May 30, 2019 12:53 am

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

Post by kaifuzi »

Sorry, I can't get your point.
How can I cadd file or folder in code?
Thanks!
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

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

Post 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");
kaifuzi
Posts: 19
Joined: Thu May 30, 2019 12:53 am

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

Post by kaifuzi »

It works, thanks!
Post Reply