Is there a way to only collapse expanded folders, not expand all, then collapse all as in default button?

I use this to smart toggle expand/collapse, making use of Evaluator clauses.

@label=expanded>0 ? "&Collapse Folders" : "&Expand Folders"
Go * EXPANDBRANCH=wild,{=expanded>0 ? "collapse" : "top"=}

Basically, if you have any folders expanded, it will be collapsed, otherwise, all the folders will be expanded (only top level)


very interesting syntax. where did you find this?

Docs are still being written but some info can be found here:

1 Like