How to exclude subfolders from the result.

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
vsub
Posts: 446
Joined: Sat Nov 12, 2011 11:51 am

How to exclude subfolders from the result.

Post by vsub »

For example
C:\New Folder\New Folder
How to display the files only from C:\New Folder and not from C:\New Folder\New Folder
therube
Posts: 4684
Joined: Thu Sep 03, 2009 6:48 pm

Re: How to exclude subfolders from the result.

Post by therube »

Code: Select all

C:\New Folder\    !C:\New Folder\New Folder\
vsub
Posts: 446
Joined: Sat Nov 12, 2011 11:51 am

Re: How to exclude subfolders from the result.

Post by vsub »

That was just example...I mean ALL subfolders,not just one

For example C:\New Folder have 10 subfolders and I want to see what only C:\New Folder have inside(excluding the files\folders of the subfolders)

I'm not requesting such a feature,I just want to know if Everything can do that already
void
Developer
Posts: 15675
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude subfolders from the result.

Post by void »

Code: Select all

C:\New Folder\    !C:\New Folder\*\*
- or -

Code: Select all

C:\New Folder\ parents:2
This limits the search to files and folders with 2 parents only (C: and New Folder).
This is much faster than the wildcard version above.
vsub
Posts: 446
Joined: Sat Nov 12, 2011 11:51 am

Re: How to exclude subfolders from the result.

Post by vsub »

Ok and yes,the second method is better.
BTW is there is some command that will sort all items by something
void
Developer
Posts: 15675
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude subfolders from the result.

Post by void »

BTW is there is some command that will sort all items by something
There are no search commands for sorting.
You can set a keyboard shortcut to each sort.
vsub
Posts: 446
Joined: Sat Nov 12, 2011 11:51 am

Re: How to exclude subfolders from the result.

Post by vsub »

Hmm,I thought I removed that part from the post after I found about the shortcut.
I wanted to ask something else...can I somehow copy only the file names of the selected items
void
Developer
Posts: 15675
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude subfolders from the result.

Post by void »

can I somehow copy only the file names of the selected items
Ctrl + Shift + C
vsub
Posts: 446
Joined: Sat Nov 12, 2011 11:51 am

Re: How to exclude subfolders from the result.

Post by vsub »

I guess I have to take a good look at the hotkeys(maybe I'll find something else)...there is no menu for this so I though there is no such option.
Last edited by vsub on Sun Feb 24, 2013 12:33 am, edited 2 times in total.
void
Developer
Posts: 15675
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude subfolders from the result.

Post by void »

Copy Full Name to Clipboard currently only shows up in the context menu when you have a single item selected.

I have changed this to always show up for the next release since it does let you copy multiple files.
vsub
Posts: 446
Joined: Sat Nov 12, 2011 11:51 am

Re: How to exclude subfolders from the result.

Post by vsub »

This copies the fill path of the item...I meant only the files\folders names without the paths.
void
Developer
Posts: 15675
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude subfolders from the result.

Post by void »

There is currently no shortcut to copy just the file name parts.

You could export to CSV to get a list of the file name parts, but this will list all the results (not the selection only).
vsub
Posts: 446
Joined: Sat Nov 12, 2011 11:51 am

Re: How to exclude subfolders from the result.

Post by vsub »

Ok,I can just use autohotkey to do the rest of the work.
myNameIsJonny!
Posts: 12
Joined: Mon Mar 16, 2015 2:12 pm

Re: How to exclude subfolders from the result.

Post by myNameIsJonny! »

void wrote:

Code: Select all

C:\New Folder\    !C:\New Folder\*\*
- or -

Code: Select all

C:\New Folder\ parents:2
This limits the search to files and folders with 2 parents only (C: and New Folder).
This is much faster than the wildcard version above.
!sticky! :)
vsub
Posts: 446
Joined: Sat Nov 12, 2011 11:51 am

Re: How to exclude subfolders from the result.

Post by vsub »

parent:"the folder path" also seems to work...no need to count the \ or duplicate the path string and add things to it
For some unknown reason I always forget how to exclude the sub folders
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: How to exclude subfolders from the result.

Post by Stamimail »

How to add "exclude subfolders" to Filters?
void
Developer
Posts: 15675
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude subfolders from the result.

Post by void »

It's currently not possible to exclude subfolders with a filter.

I'll look into a search modifier to only search the root of a folder when specified.
I have been changing the way filters work for a future release, so it might be possible to apply a filter that will effect the current search.

What I have in mind is something like a filter with the search:
nosubfolders:<search:>

When this filter is selected the current search is substituted with the search: term (instead of being ANDed after the filters search).
The nosubfolders: modifier will prevent any subfolders being included in any specified paths.

Also note: parent: only works with Everything 1.4 or later.
robertl
Posts: 1
Joined: Mon Jun 20, 2016 3:26 am

Re: How to exclude subfolders from the result.

Post by robertl »

What about a new modifier childs:<count> as similar as parents:<count>.
void
Developer
Posts: 15675
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude subfolders from the result.

Post by void »

In Everything 1.4, the following functions are available:

childcount:
childfoldercount:
childfilecount:

childcount:10 will find folders containing 10 items (files or folders).
childfoldercount:10 will find folders containing 10 subfolders.
childfilecount:10 will find folders containing 10 files.

Note: these functions are only available in Everything 1.4 or later.
HunzHurte
Posts: 1
Joined: Sat Jan 29, 2022 6:42 pm

Re: How to exclude subfolders from the result.

Post by HunzHurte »

void wrote: Sat Feb 23, 2013 11:26 pm Re: How to exclude subfolders from the result.Quote myNameIsJonny!
by myNameIsJonny! » Wed Apr 20, 2016 3:13 pm
Bit of a stupid question, but how do I enter those code lines? When I type it in the search bar it just shows the rsults that include "parents: 2" which is obviously not what I want.
NotNull
Posts: 5334
Joined: Wed May 24, 2017 9:22 pm

Re: How to exclude subfolders from the result.

Post by NotNull »

HunzHurte wrote: Sat Jan 29, 2022 6:45 pm Bit of a stupid question, but how do I enter those code lines? When I type it in the search bar it just shows the rsults that include "parents: 2" which is obviously not what I want.
Without knowing what it is that you want exactly:

Code: Select all

!parents:2
! = NOT
(and there should be no space in "parents: 2")

See also the Everything Search Syntax
Post Reply