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.
Demand an option for non-recursive search
Re: Demand an option for non-recursive search
Do not search subfolders
Example: search for the folder c:\abc, but do not include subfolders:
http://www.voidtools.com/forum/viewtopi ... 6205#p6205
Example: search for the folder c:\abc, but do not include subfolders:
Code: Select all
c:\abc !c:\abc\*\*
Re: Demand an option for non-recursive search
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
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
Re: Demand an option for non-recursive search
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.
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.
Re: Demand an option for non-recursive search
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 \
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 \
Re: Demand an option for non-recursive search
I've added nosubfolders: / subfolders: modifier to my "Things to do" list.
Re: Demand an option for non-recursive search
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.)
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:
And the result would include the folder system32 itself.
If you want to exclude the current folder, add a \ after the first %1 :
However, if you use the latter on a drive, e.g. C: , you will get:
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?
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\*\*""""
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\*\*"
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\*\*""""
Code: Select all
"C:\\" !"C:\\*\*"
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?
Re: Demand an option for non-recursive search
I found I used redundant pairs of quote marks, though the command lines worked fine.
The corrected one:
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:
The corrected one:
Code: Select all
"D:\Program Files\Everything\Everything.exe" -s """"%1\""" !"""%1\*\*""""
Code: Select all
"D:\Program Files\Everything\Everything.exe" -s """"%1\""" !"""%1\*\*"""" -nonewwindow