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)
3 Likes
very interesting syntax. where did you find this?
Docs are still being written but some info can be found here:
-
Evaluator manual page (general info)
-
Manual has a list of Evaluator variables you can use in Buttons and Functions. (E.g. Click "Label" there.)
-
Detailed release notes: Miscellaneous Commands discusses
{= ... =}
to insert Evaluator results into commands, and@label
to change a button's label.
1 Like