Page 1 of 2

How to one-time collapse ALL currently expanded folders?

Posted: 09 Jan 2022 13:47
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?

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

Posted: 09 Jan 2022 14:35
by admin
Select "This PC" in the tree and press Numpad Divide.

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

Posted: 09 Jan 2022 14:49
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...

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

Posted: 23 Jan 2022 23:48
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;

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

Posted: 24 Jan 2022 12:33
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;

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

Posted: 24 Jan 2022 12:43
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. :?

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

Posted: 24 Jan 2022 12:48
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.

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

Posted: 24 Jan 2022 12:54
by admin
Cannot create a single situation with 1009 or 1010 or numpad divide with mini or maxi tree where Links are not collapsed. :|

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

Posted: 24 Jan 2022 14:26
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?

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

Posted: 24 Jan 2022 15:19
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.

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

Posted: 24 Jan 2022 15:37
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:

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

Posted: 24 Jan 2022 15:39
by admin
No, if you are on "This PC" everything is collapsed, also links.

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

Posted: 24 Jan 2022 16:12
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.

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

Posted: 24 Jan 2022 18:36
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.

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

Posted: 25 Jan 2022 10:39
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.