Expand/collapse folders inside the detail view

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
highend
Posts: 14561
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Expand/collapse folders inside the detail view

Post by highend »

Requirements:
The branch view must be sorted by path (otherwise it'll look strange when folders are collapsed / expanded)
These config entries must be set:
Configuration | Find and Filter | Find Files & Branch View | Branch View | [ ] Let folders pass all filters
Configuration | Find and Filter | Filters & Type Ahead Find | Live Filter Box | [x] Enable extended pattern matching

Save the .xys file into your XY script folder (Menu - Go - Go to Application Data Folder) and there into "Scripts"

Menu - User - Manage Commands...
Category: Load Script File
Button "New..." - Add New Command
Caption: Filter folders in branch view
Script File: Filter folders in branch view.xys (or however you've named the file when you saved it)

After that assign it a keyboard shortcut with the button in that "Manage User-Defined Commands" window

You can't use simple arrow keys! I've used ALT+SPACE for the gif animation...
Filter folders in branch view.xys
(3.42 KiB) Downloaded 341 times
Animation.gif
Animation.gif (539.21 KiB) Viewed 7337 times
One of my scripts helped you out? Please donate via Paypal

rolander
Posts: 36
Joined: 22 Aug 2022 17:41

Re: Expand/collapse folders inside the detail view

Post by rolander »

Thanks again!! This is a very improved version.
Just one thing: its not working with subfolders. Any chance to make that work also?

highend
Posts: 14561
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Expand/collapse folders inside the detail view

Post by highend »

In theory? Sure.
But that would require a branch view change on every opened subfolder (because the branch view would need to show everything +1 level down).
Feel free to modify the code for such changes but I don't have time for that...
One of my scripts helped you out? Please donate via Paypal

rolander
Posts: 36
Joined: 22 Aug 2022 17:41

Re: Expand/collapse folders inside the detail view

Post by rolander »

I'll do my best. Will post it back if I got to a good result.
Thanks a lot for getting this far. Really appreciate it.

tok
Posts: 1
Joined: 17 Apr 2025 19:25

Re: Expand/collapse folders inside the detail view

Post by tok »

came here looking for this feature. apparently there are no major file explorers for windows with this feature.
too bad because it looks so useful.. i didnt even know apple had this.

is it a possibility for xyplorer? ive already seen the script thingy but it looks clunky

admin
Site Admin
Posts: 64827
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Expand/collapse folders inside the detail view

Post by admin »

Never say never. And never say a date.

xy123
Posts: 208
Joined: 17 Sep 2017 11:46
Location: Win10 64-bit, @100%

Re: Expand/collapse folders inside the detail view

Post by xy123 »

I saw that in "Blue Explorer" (R.I.P.) called SuperView (https://web.archive.org/web/20190317052 ... rview.html):
By SuperView, you can view folders in a File List. You can expand or collapse folders freely.

You can also group files by its file name. This is very helpful. In daily work, you often need modify a document and then save a new version for it. For a file reviewed by several reviewers, you also need keep multiple versions for the file. Using version control tool to manage these files is one way. But it's a little complicated in case you don't have a tool installed.

You can group files by it's filename. How to manage these files? Some time, it's difficult to find the latest one. Also too many files make your search work an headace. To overcome this, super view provides a way to organize files in group and only shows the latest in normal. If you want to view previous version, just expand the group.

The separator to group the file can be "-" or "_". You can set your preference.
superview.jpg
superview.jpg (34.97 KiB) Viewed 6801 times

Moonlight
Posts: 19
Joined: 28 Aug 2025 22:41
Location: Wien, Österreich (Vienna, Austria)

Re: Expand/collapse folders inside the detail view

Post by Moonlight »

Hello,

I am new concerning the matter of file explorers but the visually terrible Windows-Explorer made it necessary to me to search for an alternative. During the last days I tried various of them and most likely I will decide in favour of XYplorer. (Just waiting until the new 64-bit version will be released. ;) )

With a certain detail I am not completely happy, and that's the missing feature which rolander brought up in this topic. (Thanks to him for doing so. :D )

There is another explorer (apart from the one mentioned above by xy123) who offers it. It's the well-known "Directory Opus" and the feature is called there "Expandable Folders". You can find further information about it (and see a picture) in their online manual: https://docs.dopus.com/doku.php?id=basi ... le_folders

I compared both ways, opening side by side the same folder list with both explorers, and I must say that (to my mind) these little "arrow glyphs" (left of the folder icon) make navigation much more pleasant and convenient.

So I also support rolander's and the other users' suggestion to implement this in the XYplorer.

Thanks also to highend for his script. I will try it afterwards to see how it works. But I think that it cannot be more than a workaround.
Last edited by Moonlight on 28 Aug 2025 23:25, edited 2 times in total.
Windows 11 Home, version 25H2
Resolution 1920x1080p // Screen scaling percentage: 125%
XYplorer: at the moment testing always with the most recent 64-bit version (portable)

admin
Site Admin
Posts: 64827
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Expand/collapse folders inside the detail view

Post by admin »

Many users have expressed interest in this feature over the years, and I agree that it would be a nice, natural addition to the branch view. It's on my post-64 list.

Moonlight
Posts: 19
Joined: 28 Aug 2025 22:41
Location: Wien, Österreich (Vienna, Austria)

Re: Expand/collapse folders inside the detail view

Post by Moonlight »

Danke schön. :D
Windows 11 Home, version 25H2
Resolution 1920x1080p // Screen scaling percentage: 125%
XYplorer: at the moment testing always with the most recent 64-bit version (portable)

bossi
Posts: 144
Joined: 30 Jul 2022 11:09
Location: Win11-latest, XYx64 latest, 4K@100%

Re: Expand/collapse folders inside the detail view

Post by bossi »

yass ! thats the the only feature i liked with diropus more than xyplorer , hopefuly don makes it !
its not critical but sometimes you just need a flatview with ex/collapsible folders !

bossi
Posts: 144
Joined: 30 Jul 2022 11:09
Location: Win11-latest, XYx64 latest, 4K@100%

Re: Expand/collapse folders inside the detail view

Post by bossi »

XY has already the framework to do this ..
its just appending the to-expand-paths into the adress , like :

Code: Select all

path1|path2|path3? /flat /md=0
the only thing i cant figure out is the duplication of the root folder .

@don possible to get the content listed without the folder ?
Attachments
XYplorer_CfH8j1vOPF.gif
XYplorer_CfH8j1vOPF.gif (108.78 KiB) Viewed 2867 times

admin
Site Admin
Posts: 64827
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Expand/collapse folders inside the detail view

Post by admin »

Relax, the feature will come. :)

Post Reply