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

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

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

Post by kaifuzi » Thu May 30, 2019 1:23 pm

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
Site Admin
Posts: 4851
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void » Thu May 30, 2019 1:27 pm

Include the following in your search:
file:
-or-
folder:

kaifuzi
Posts: 10
Joined: Thu May 30, 2019 12:53 am

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

Post by kaifuzi » Thu May 30, 2019 1:37 pm

Sorry, I can't get your point.
How can I cadd file or folder in code?
Thanks!

void
Site Admin
Posts: 4851
Joined: Fri Oct 16, 2009 11:31 pm

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

Post by void » Thu May 30, 2019 1:42 pm

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: 10
Joined: Thu May 30, 2019 12:53 am

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

Post by kaifuzi » Thu May 30, 2019 1:53 pm

It works, thanks!

Post Reply