Folders only collapsed when opening DO

Hi,

something seems wrong or at least not user-friendly, or perhaps I am missing a trick:

When I work in a folder, close Directory Opus, and then reopen it, the folder tree appears exactly as I want — super compact, with only the last working directory expanded. Nice!

(See below):

However, as soon as I interact with the folder tree—navigate elsewhere and return—the neat view cannot be restored. Instead, the user directory stays fully expanded, cluttering the view with folders I do not want displayed.

(See below):

Currently, the only way I can "clear" the clutter is by closing and reopening Directory Opus, which can't be the intended workflow!

I understood from another post that some settings aim to make navigation easier, keeping parents expanded, but that should not hinder others form getting this clear appearance. There must be a quicker solution than restarting the program to instantly collapse all parent folders above the selected one, returning to the tidy view shown in the first screenshot - but how?

If restarting is the only answer, please consider this a feature request for a “collapse all parents” option to eliminate unnecessary clutter at any time. The first view is nice, I am sure you agree.

Thank you!

Click this button to get back to the "tidy" tree:

Hi Jon,
thanks for your super quick reply. I discovered this button before and tried it, but unfortunately it does not show the expected behaviour. In other words, it doesn't work (for me). Maybe my Directory Opus installation is broken?

What does it do for you?

Here is what I did/what happens:

  1. I opened up the folder with a new DO in the "neat" view shown in image No1 above with the python folder being open.
  2. I double clicked in the tree on the two parent folders above the python folder, which are "Computerskripte" and "0_Bibliothek" which then expands those two folders, "cluttering" the folder tree up.
  3. I double click on the "python" folder to make it the selected one, which expands its sub-directories.
  4. I click on the icon you pointed out and the sub directories of the python folder collapse (marked in green below) but none of the parent directories - so basically the opposite of what I want to achive.

Hi Jon, were you able to reproduce the described (not intended) behavior? If it is bug or feature request, I understand it will take time. A quick heads up would be great. Thank you!

If you mean you want the tree to forget about the other folders below the expanded branches, I think the only way to do that is to turn off the tree, then turn it back on. You can do that with a button or hotkey which runs this:

Set TREE=off
Set TREE=on

Normally Go REBUILDTREE would be enough, but that won't make the tree forget about folders it already knows exist. Only closing the tree will do that.

The "Don't populate contents, only show current folder" option and "partial expansion" state it can result in is there for performance reasons, to avoid having to read all the other parent directories when you navigate to somewhere nested on a slow drive. It isn't really there to de-clutter the tree. Once the tree knows a folder exists, it'll keep showing that folder unless the folder is removed, the branch it's in is collapsed, or the tree is closed.

We'll improve the way this works in the next beta. As long as the folder tree is set to not populate folder contents automatically, the collapse button will remove everything that's not directly related to the current selection (i.e. sibling folders of its parents) and reset to the tree effectively to its default state.

That is wonderful. Thank you - for the implementation and elaboration.

The Set Tree=off Set Tree=on button works perfectly with the caveat: It only works in the upper Folder tree windows if "Dual folder tree" mode is active - even if the mouse fucus is on the lower folder window.

It does not matter if the next beta does the trick anyway.

The beta is already out, so you can try it now.

The button/hotkey to toggle the tree can be changed to toggle both/dual trees if needed. It's just another argument to the command.

For anybody interested, the argument appears to be 'dual':

Set TREE=off,dual
Set TREE=on,dual

That seems to work. But the new feature in the beta works much more smoothly
— it's great!
Thanks, Jon.

On another note, Jon, would it be possible to reintroduce the "start root from here" feature that DO used to have?

Especially when managing large and complex projects, where every project folder has dozens of parent and child folders, it would be extremely helpful to hide all parent folders and use the project folder as the root. Then, when needed, the user could switch the parent folders back on to access another project. It's a pity that this feature was removed (at least that's what I understand from comments on the internet).