Demand an option for non-recursive search

Have a suggestion for "Everything"? Please post it here.
Post Reply
etc
Posts: 49
Joined: Tue Jun 24, 2014 7:17 pm

Demand an option for non-recursive search

Post by etc »

Is there a quick and simple way to restrict Everything not to search in subfolders?
I only know, e.g.:
C:\WINDOWS\system32 parents:3
But I have to count the levels and to type.
salazor
Posts: 258
Joined: Tue Jun 17, 2014 10:52 am

Re: Demand an option for non-recursive search

Post by salazor »

Do not search subfolders
Example: search for the folder c:\abc, but do not include subfolders:

Code: Select all

c:\abc !c:\abc\*\*
http://www.voidtools.com/forum/viewtopi ... 6205#p6205
vsub
Posts: 474
Joined: Sat Nov 12, 2011 11:51 am

Re: Demand an option for non-recursive search

Post by vsub »

Maybe adding a new command will be nice rather than using those(first one requires counting and typing and the second one copy=>paste and typing)

It will be better to have a command like nosubfolders: or nsf: because if that path is really long,it will take a lot of space in the search bar
therube
Posts: 4972
Joined: Thu Sep 03, 2009 6:48 pm

Re: Demand an option for non-recursive search

Post by therube »

Right now a negative value for parents: works (mostly) like a positive value.

Perhaps a change so that a negative value would work relative to the current directory/path?

So...

> C:\WINDOWS\system32 parents:-0

Would only show: C:\WINDOWS\system32

&

> C:\WINDOWS\system32 parents:-1

Would show:
> C:\Windows\System32\0409
> C:\Windows\System32\Boot
> C:\Windows\System32\catroot2 ...

So one directory deeper then the current directory/path.
vsub
Posts: 474
Joined: Sat Nov 12, 2011 11:51 am

Re: Demand an option for non-recursive search

Post by vsub »

Yes,changing how "parents" work will be better that creating new command.
And btw can it also be change to exclude the last \ when counting

C:\WINDOWS\system32
why not 2 to show the files in system32 only(no subfolders)

Currently you have to type 3 even tho the 3rd \ is missing from the search string.
I mean,parents should count \ only until the folder
C:\WINDOWS\system32\

I got confused why it's not working the first time I tried...I didn't count the last \
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: Demand an option for non-recursive search

Post by void »

I've added nosubfolders: / subfolders: modifier to my "Things to do" list.
etc
Posts: 49
Joined: Tue Jun 24, 2014 7:17 pm

Re: Demand an option for non-recursive search

Post by etc »

Thank you, David.
Besides the modifier, will you add a basic toggle (command) for this? In the Search menu, like Case|whole Word|path|diacritics|regex.
And thus we can toggle it with a shortcut.
(All other search tools provide this as a basic option, which I think is a must-have.)


Currently we have another usage: (Thank salazor for the reminding.)

Code: Select all

"D:\Program Files\Everything\Everything.exe" -s """"%1""""" !"""""%1\*\*""""
Add such a command line into the Registry:
HKCR\Folder\shell\

We can use it from the shell menu in Windows Explorer.

Note that when you use this on a folder, e.g. C:\WINDOWS\system32, in the Search Edit it would be:

Code: Select all

"C:\WINDOWS\system32" !"C:\WINDOWS\system32\*\*"
And the result would include the folder system32 itself.
If you want to exclude the current folder, add a \ after the first %1 :

Code: Select all

"D:\Program Files\Everything\Everything.exe" -s """"%1\""""" !"""""%1\*\*""""
However, if you use the latter on a drive, e.g. C: , you will get:

Code: Select all

"C:\\" !"C:\\*\*"
Which has no result.

So neither is perfect.
It's not worthwhile to add both (the second one to Folder entry, and the first one to Drive entry).
David, is there anything you could adjust a little on this?
etc
Posts: 49
Joined: Tue Jun 24, 2014 7:17 pm

Re: Demand an option for non-recursive search

Post by etc »

I found I used redundant pairs of quote marks, though the command lines worked fine.

The corrected one:

Code: Select all

"D:\Program Files\Everything\Everything.exe" -s """"%1\""" !"""%1\*\*""""
When using it from the shell menu in Everything window, and if you don't want it to open another Everything window, use this one instead:

Code: Select all

"D:\Program Files\Everything\Everything.exe" -s """"%1\""" !"""%1\*\*"""" -nonewwindow
Post Reply