How to one-time collapse ALL currently expanded folders?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
pstein
Posts: 57
Joined: 11 Dec 2021 21:11

How to one-time collapse ALL currently expanded folders?

Post by pstein »

XYplorer remembers the state collapsed/expanded of all folders in treeview.
This is great in general.

However sometimes I would like to perform a one-time manual reset of all states and collapse ALL folders in treeview with one click.

How can I achieve this?

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

Re: How to one-time collapse ALL currently expanded folders?

Post by admin »

Select "This PC" in the tree and press Numpad Divide.

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: How to one-time collapse ALL currently expanded folders?

Post by klownboy »

If that's too drastic, you can use CID #1009. It will collapse the tree, but it will leave the links in view if they were before use. You could make a CTB calling out, #1009;

Type in key words like "collapse" in search bar under Help > List all commands...
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

hermhart
Posts: 213
Joined: 13 Jan 2015 18:41

Re: How to one-time collapse ALL currently expanded folders?

Post by hermhart »

How come it keeps the links view as it is instead of collapsing it?
klownboy wrote: 09 Jan 2022 14:49 If that's too drastic, you can use CID #1009. It will collapse the tree, but it will leave the links in view if they were before use. You could make a CTB calling out, #1009;

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: How to one-time collapse ALL currently expanded folders?

Post by klownboy »

hermhart wrote: 23 Jan 2022 23:48 How come it keeps the links view as it is instead of collapsing it?
Don't know, but you can script what Don mentioned. Make a CTB with the following commands,
goto "This PC"; #1010;
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

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

Re: How to one-time collapse ALL currently expanded folders?

Post by admin »

hermhart wrote: 23 Jan 2022 23:48 How come it keeps the links view as it is instead of collapsing it?
Not here. :?

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: How to one-time collapse ALL currently expanded folders?

Post by klownboy »

We all may be confused, but in this case, I think hermhart is referring to CID #1009. My Links stay open with its use also, but not with #1010. If you currently have Links selected, #1009 does close it.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

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

Re: How to one-time collapse ALL currently expanded folders?

Post by admin »

Cannot create a single situation with 1009 or 1010 or numpad divide with mini or maxi tree where Links are not collapsed. :|

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: How to one-time collapse ALL currently expanded folders?

Post by klownboy »

That's odd. If I'm on "C:\" with everything collapsed besides "Links", nothing at all happens. My Links folder I believe is in the standard location, C:\Users\ken\Links I've been on Windows 11 for a couple of months now. If I'm located on Links, #1009 does collapse it. I wonder if some other setting is affecting this?
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

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

Re: How to one-time collapse ALL currently expanded folders?

Post by admin »

klownboy wrote: 24 Jan 2022 14:26 That's odd. If I'm on "C:\" with everything collapsed besides "Links", nothing at all happens.
Sure. That's by design. It only acts on the current node.

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: How to one-time collapse ALL currently expanded folders?

Post by klownboy »

OK, so I was confused by your last reply. #1009 will only collapse Links if you are ON "Links".
So as you said goto This PC"; #1010; will close everything and you'll only see "This PC" in the tree. If hermhart would rather see all the drives but in the collapsed state and Links collapsed as sell, use goto "Links"; #1009:
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

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

Re: How to one-time collapse ALL currently expanded folders?

Post by admin »

No, if you are on "This PC" everything is collapsed, also links.

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: How to one-time collapse ALL currently expanded folders?

Post by klownboy »

Which is what I said,
klownboy wrote: 24 Jan 2022 15:37 goto This PC"; #1010; will close everything and you'll only see "This PC" in the tree.
which is true and it collapses everything (including Links). (i.e., going to "This PC" and then using #1009 or #1010 will collapse everything). I've have no problem. I don't know if hermhart still does.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

hermhart
Posts: 213
Joined: 13 Jan 2015 18:41

Re: How to one-time collapse ALL currently expanded folders?

Post by hermhart »

If I have everything collapsed and I click on Desktop, Desktop expands, then I click on Documents, Desktop collapses and Documents expands, then all the same thing for all other nodes under This PC. But if I then click on Links, it expands, but if I click Desktop or Documents after that, or anything else, they will expand and collapse as they should, but Links will not collapse.

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

Re: How to one-time collapse ALL currently expanded folders?

Post by admin »

That's a different topic. You appear to be talking about "Configuration | General | Tree and List | Tree | Auto-optimize tree". Links is excluded from this by design.

Post Reply