Just display parent folder without subfolders

Discussion related to "Everything" 1.5 Alpha.
Post Reply
eswul62
Posts: 127
Joined: Wed Jul 31, 2013 6:07 am

Just display parent folder without subfolders

Post by eswul62 »

Currently I have to use a different device, not my usual desktop, with Everything setup with a bunch of filters, bookmarks, etc.
A laptop with a 'clean' Everything.

I went back and forth here to find a way to have just a parent (root) folder on various drives displayed, so like
X:\Folder
Y:\Folder
Z:\Folder

without the subfolders I mean.

I forgot...ahum.

Any suggestions?

Thanks.
therube
Posts: 4953
Joined: Thu Sep 03, 2009 6:48 pm

Re: Just display parent folder without subfolders

Post by therube »

parents:2
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Just display parent folder without subfolders

Post by void »

If you are using the Folders sidebar, please uncheck subfolders at the bottom of the Folders sidebar.
eswul62
Posts: 127
Joined: Wed Jul 31, 2013 6:07 am

Re: Just display parent folder without subfolders

Post by eswul62 »

Thanks for the comments.

Feel very sorry to say, but believe neither one worked out the way I would like. Again sorry.

Meanwhile, I found it...

Using 'depth'

So, like:
folder:X:\Photos;Y:\Photos;Z:\Photos depth:1

If the folder contains the word 'Photos' as a part of the name it will also be listed though, like Z:\Photoshop
X:\Photos
Y:\Photos
Z:\Photos
Z:\Photoshop

FWIW and AFAIK adding a backslash to the path so as to 'limit' to search for photos folder only,i.e. exclude photoshop, so like:
folder:X:\Photos\;Y:\Photos\;Z:\Photos\ depth:1 won't work.

Thanks again.
therube
Posts: 4953
Joined: Thu Sep 03, 2009 6:48 pm

Re: Just display parent folder without subfolders

Post by therube »

(Just noting; depth:, parent-count:, & parents: are synonyms.)
rabbit_says
Posts: 18
Joined: Tue Mar 19, 2019 12:40 pm

Re: Just display parent folder without subfolders

Post by rabbit_says »

So I've also finding the solution for this so long, @void would be you please consider add some option in the future alpha.

To be clear, the thing I 'm looking is: if the some folder or file is found in the search result then ignore it's child files/folders in search result.

D:Working files
D:Working files\Jan\Week1
D:Working files\Jan\Week2
D:Working files\Jan\Week3

Let's with different search parameters I narrowed down the search to Jan then it should not show the Jan child items. In other words if the parent items is in the search result then ignore it's child items.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Just display parent folder without subfolders

Post by NotNull »

Does disabling Match Path give you the desired results?
(Menu => Search => Match Path )
rabbit_says
Posts: 18
Joined: Tue Mar 19, 2019 12:40 pm

Re: Just display parent folder without subfolders

Post by rabbit_says »

NotNull wrote: Tue May 07, 2024 2:12 pm Does disabling Match Path give you the desired results?
(Menu => Search => Match Path )
Yes, it can work at some level but mostly the search has to be the precise, math path gives us almost fizzy search power. The option I'm saying is totally new as to just show the parent items only not the child.

As there is child function may be there can be an function where it is parent only?
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Just display parent folder without subfolders

Post by NotNull »

CAn you give an example of one of these searches?
rabbit_says
Posts: 18
Joined: Tue Mar 19, 2019 12:40 pm

Re: Just display parent folder without subfolders

Post by rabbit_says »

NotNull wrote: Tue May 07, 2024 4:22 pm CAn you give an example of one of these searches?
Let's say I'm searching vivaldi folder with the path search on, the first desired item is on top when sorted by path and all the remaining items are children of Vivalid\Local. So my suggestion is there should be an option to show parent items only. Please see the following screenshot:

https://imgur.com/a/VG8nHCx

This may seem okay to you as I can ignore the remaining result, but this doesn't work as the other folder in program are hidden with hundreds of other result.

Another example is let's say I'm searching all the folder with the name of January, naturally there will be many folders with the same name and so many sub folders also. It will show all the folder and file.

I say by having this option only greatly enhance the fuzzy search with accuracy. Let's say I'm finding the file of the specific client with specific project in January month. I can type Client Joe Video Project Jan invoice.pdf and this search will show the only relevant file as all other invoice.pdf will not meet the other parameters. Only with some option to ignore child and siblings files/folder.

Hope it's clear now
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Just display parent folder without subfolders

Post by NotNull »

Try it with:

Code: Select all

appdata   nopath:vivaldi
When Match Path is enabled.
This will search appdata anywhere and "vivaldi" just in the file/foldername (without path.


Or, with Match Path disabled:

Code: Select all

path:appdata   vivaldi

Or:

Code: Select all

**appdata**\*vivaldi*
Wildcard matching

** = match any character any number of times.
* = match any character except \ any number of times.
? = match a single character except \
rabbit_says
Posts: 18
Joined: Tue Mar 19, 2019 12:40 pm

Re: Just display parent folder without subfolders

Post by rabbit_says »

Yes it kinda works but not entirely see the results in the image: https://i.imgur.com/GBNtfLo.png

See the following example:

Code: Select all

Clients
│
├── John_Doe
│   ├── Website
│   │   ├── Theme
│   │   ├── Code
│   │   ├── Mockup
│   │   └── Images
│   │       ├── Subfolder_1_1
│   │       └── Subfolder_1_2
│   ├── Social
│   └── Video
│
├── Jane_Smith
│   ├── Website
│   │   ├── Theme
│   │   ├── Code
│   │   ├── Mockup
│   │   └── Images
│   ├── Social
│   │   ├── Subfolder_B_1
│   │   └── Subfolder_B_2
│   └── Video
│
└── Alex_Johnson
    ├── Website
    │   ├── Theme
    │   ├── Code
    │   ├── Mockup
    │   └── Images
    ├── Social
    │   └── Subfolder_Y_1
    └── Video
Let's If I want to search the theme folder in John doe client, I may write "clients John website" naturally it will show the website folder including all folder under this. This is a really simplified version in real world the folder structures can be big and unorganized and finding the files of the common
name can be daunting.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Just display parent folder without subfolders

Post by NotNull »

You mean you don't want results with vivaldi in the name, but only folders that are named vivaldi?

Code: Select all

appdata   nopath:exact:vivaldi

rabbit_says wrote: Tue May 07, 2024 6:31 pm If I want to search the theme folder in John doe client
Something like the following?

Code: Select all

"john doe"   \theme\
rabbit_says
Posts: 18
Joined: Tue Mar 19, 2019 12:40 pm

Re: Just display parent folder without subfolders

Post by rabbit_says »

NotNull wrote: Tue May 07, 2024 7:06 pm You mean you don't want results with vivaldi in the name, but only folders that are named vivaldi?
No dear, all these are the workarounds and surely there would be many. But all I'm saying a function need to ignore children and siblings. Just this.

NotNull wrote: Tue May 07, 2024 7:06 pm

Code: Select all

appdata   nopath:exact:vivaldi
and BTW can we combine two function together "nopath:exact:vivaldi"? as in my testing It didn't produce any results?
Post Reply