How do you close the sub folders in the left Navigation pane?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
davidhelp
Posts: 133
Joined: 03 Sep 2012 02:28

How do you close the sub folders in the left Navigation pane?

Post by davidhelp »

How do you close the sub folders in the left Navigation pane?
They stay open after I view the files and then close the folder then when re-open the sub folders are open.

XYplorer version 27.20.1500 (32-bit)
Windows 10 Pro 64-bit

phred
Posts: 686
Joined: 26 Dec 2021 02:10
Location: XY 64bit on Win10 at 100% from Boston USA

Re: How do you close the sub folders in the left Navigation pane?

Post by phred »

CTR + NumberPad Divide (forward slash)

jupe
Posts: 3487
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: How do you close the sub folders in the left Navigation pane?

Post by jupe »

Configuration | General | Tree and List | Tree | Auto-optimize tree

?

davidhelp
Posts: 133
Joined: 03 Sep 2012 02:28

Re: How do you close the sub folders in the left Navigation pane?

Post by davidhelp »

Thanks, It is now fixed.
----------------------------------

ChatGPT gave these answers:
Turn off "Remember state of tree"
1. Open XYplorer.
2. Go to:
Tools → Configuration
3. In the left side of Configuration, select:
General → Tree and List → Tree
4. Find:
☑ Remember state of tree
5. Uncheck it.
6. Click OK.

That setting controls whether XYplorer remembers which folders in the left-hand tree were expanded.
But there is an important distinction
If your problem is specifically:
I expand Pictures → open a subfolder → browse around → close that folder → later open Pictures again, and all of its subfolders are still expanded.
Then turning off "Remember state of tree" may not be exactly what you want, because XYplorer can retain the tree's expansion state during the current session as well.

There is a more useful XYplorer feature called Auto-optimize tree. It automatically collapses non-current branches when you navigate.
Try:
Tools → Configuration → General → Tree and List → Tree → ☑ Auto-optimize tree


There is a specific combination that gets closest to the Windows Explorer behavior you described.
Use these settings.

Go to:
Tools → Configuration → General → Tree and List → Tree
Set the options as follows:
Setting Set it to
Auto-optimize tree ☑ ON
Expand tree nodes on browse ☐ OFF
Expand tree nodes on single click ☐ OFF
Remember state of tree ☐ OFF
The important one is Auto-optimize tree. XYplorer describes it as automatically collapsing non-current nodes in the Tree.
Then make one additional change
XYplorer has an INI tweak called:
AutoOptimizeTreeRadical=1
This makes the auto-optimization happen on each location change, rather than only under the normal Auto-optimize conditions.
The XYplorer administrator specifically recommends this when Auto-optimize Tree isn't collapsing folders aggressively enough.

Auto reset tree from 2019
https://www.xyplorer.com/xyfc/viewtopic ... hatgpt.com

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

Re: How do you close the sub folders in the left Navigation pane?

Post by admin »

AutoOptimizeTreeRadical=1 is the factory default since 20181125.

BTW, in a Mini Tree to close a tree node for good (forget about opened subfolders) you Ctrl+Click the expansion icon.

Post Reply