Collapse Tree?

Is there any way to add a menu item to right-click which would collapse the current tree?

Possibly, but it depends what you want to do exactly.

Which right-click menu?

Which parts of the tree do you want to collapse, and which do you want to leave expanded?

Thank you Leo for responding. I use a dual default lister which opens my default folders.The bottom tree gets long and many times I would just like to quickly collapse it to get to the folders below without scrolling a mile.

The first screen is the way DO opens with default lister. The second screen is what I would like it to look like after selecting collapse in a right-click menu. Sure would be nice if it was a toggle click on/off and totally awesome if the location of the mouse pointer could determine what tree/branch gets collapsed or expanded.

The one thing that presents an issue is, would it close the entire tree, or just the branch, now that I think about it. I would prefer that it would close the long branch. Probably not possible, but food for thought and a common issue when working with some of the very long branches I have such as this one.

Any suggests you may have would certainly be appreciated. Do you think other users have this issue?

Assuming Preferences / Folder Tree / Options / Expand selected branch is turned off, you could use this command:

Go REBUILDTREE
dopusrt /acmd Go CURRENT

That will collapse everything in the tree for the active side (top or bottom), then re-expand up to the current folder. (If the mentioned option is on then it'll also expand the current folder.)

The dopusrt /acmd voodoo is needed to avoid the tree scrolling the current folder out of view (which looks like a small bug to me, but that works around it by running the two commands separately).

Thank you for the reply Leo. I am just uncertain where I would place these commands to have it show on the Right Click Mouse Button. Would you be so kind as to enlighten me with your wisdom?

Which menu do you want to edit?

Hi Leo,

I am not sure. I sent a snapshot of where the mouse would be located on the screen and what the Right-Click Menu looks like,

Looks like the folder context menu.

Settings > File Types > All Folders > Context Menu.

Hi Leo,

Thank you for your help. I tried your suggestions, but it doesn't really do what I was hoping for and it actually crashed DO once. I have changed my directory structure to get closer to what I need.

I have another question. I have Libraries which I custom sort. The sorting works as expected in File Explorer, but not in DO. Any suggestions? I have attached two screenshots showing the directory arrangements. File Explorer correctly places "Heat Cals - Old" below "Heat Calcs" in the list, but DO doesn't seem to follow the rules where you can move the folders up or down in the Libraries list. Anyway to remove the Drive Letter from the end of the folders like File Explorer?