Skip to content

Instantly share code, notes, and snippets.

@ctsstc
Last active January 30, 2025 23:49
Show Gist options
  • Save ctsstc/f37bc849a8673448c8315504559a24d7 to your computer and use it in GitHub Desktop.
Save ctsstc/f37bc849a8673448c8315504559a24d7 to your computer and use it in GitHub Desktop.
Tabs Outliner - Collapse All
treeView.treeModel.currentSession_rootNode.subnodes.forEach(node => node.setCollapsing(true))
@AtomicNess123
Copy link

How to make all tabs collapse? It seems one must be on the specific node, but I can't find how to collapse all nodes.

@ctsstc
Copy link
Author

ctsstc commented Oct 12, 2022

@AtomicNess123 you just right click -> inspect -> console -> paste the script
and it should collapse all the nodes top level nodes, it may not be collapsing nested sub-nodes if that's what you're talking about.

@neviln
Copy link

neviln commented Jan 30, 2025

Is there an updated version of this code to expand all nodes and another one to collapse all nodes?
The recent update to Tabs Outliner broke the "Expand/Collapse All Nodes" button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment