Page 1 of 1

Auto folder collapse

Posted: 14 Apr 2022 16:16
by noembryo
I'm not sure if this is the right place to post this question, but..
Is it possible to "auto collapse" the expanded folders outside the selected path of the tab you change to?

My case is something like this:
My first tab shows only the D:\ drive opened and inside this drive, I opened the sub folders D:\Test1\Test2\Test3
Getting to Test3 directory had revealed many more directories inside Test1 and Test2 in the Tree.
This is good, since I like to see what is on those folders too (that's why I don't use the MiniTree option)
Switching on the second tab, I open E:\ drive and go to E:\Test1\Test2\Test3
This also reveals a lot of directories that I also want to see, but there is a problem now.
The previously expanded folders (from the D:\ drive) are still expanded and make the Tree view cluttered.
I have to go and manually collapse them.
After that, I do what I wanted to do, and then return to the D:\ drive tab.
The folders of the D:\Test1\Test2\Test3 path "auto expand" as they should, but the directories of the E:\Test1\Test2\Test3 are still expanded creating a very big column of directories again and I have to manually go and collapse them.

So, is there a way to "auto collapse" the directories outside the selected one when we change the active tab, as there is an "auto expand"?
It should not collapse any expanded directory "inside" the selected path though.

And BTW, I have to say: This is a great program!!

Re: Auto folder collapse

Posted: 14 Apr 2022 16:20
by highend
Maybe Configuration | General | Tree and List | Tree | [x] Auto-optimize tree?

Re: Auto folder collapse

Posted: 14 Apr 2022 16:28
by noembryo
highend wrote: ↑14 Apr 2022 16:20 Maybe Configuration | General | Tree and List | Tree | [x] Auto-optimize tree?
OK, now I'm embarrassed.. :oops:
How did I miss this?
It collapses the inside the selected folders too, but, other than that, its perfect! :party:

Thank you very much..

Re: Auto folder collapse

Posted: 14 Apr 2022 16:54
by noembryo
Hmm, maybe I spoke too soon.
The "Auto-optimize tree" works fine when I change the current tab, but it keeps working and after that (who could have thought that?). :)
Which means that it auto closes all the expanded directories when I change a path inside the same tab.
Well, this was not my wish.. :?
I do want to have open folders when I work in a tab.

Maybe a sub setting to Auto-optimize tree only on tab change?

Re: Auto folder collapse

Posted: 14 Apr 2022 17:06
by highend
Use a script in a custom event action for a tab change then?

#1040;

Re: Auto folder collapse

Posted: 14 Apr 2022 17:10
by noembryo
highend wrote: ↑14 Apr 2022 17:06 Use a script in a custom event action for a tab change then?

#1040;
That did it! :appl:

Thank you again..