This post is WAY too long. But I don't know how to shorten it and have it make sense. I try to get to the main issue in bold at the bottom.
I just find the Tree macro very good for understanding and using TW.
An issue is that whilst its easy to collapse all branches, expanding them currently has to be done one-by-one via click on "folder".
I think it would be great if you could expand a whole branch--with its sub-branches and leaves--on one click of a button.
FYI expanded branches are enabled by the Tree macro creating a state tiddler. On first click of a "folder" the branch state tiddler's content is 'show'. On second click the "folder" folds and the state tiddler's text field is changed to 'hide'.
I was trying to figure out how you could, via a button, create the state tiddlers needed for all the "sub-branches" of a "branch" and its "leaves" to be revealed in one go by creating a set of state tiddlers with text="show".
Its beyond me as "branches" as such are virtual. They don't exist. The state tiddler to reveal "leaves" is the leaves' "path" less the final portion of the name after the last "/". Such "branch" state tiddlers, once set, function to reveal all "leaves" (real tiddlers) within that "branch". I have no idea how you'd code to automate the creation of the needed state tiddlers.
Then look at Advanced Search under filter ... [prefix[$:/state/tree/$:/plugins/]] to see the states created.
This branch contains 24 Tiddlers. And 8 branches need clicking/opening to reveal them all--i.e. 8 state tiddlers are created.
How would I be able to create these 8 state tiddlers on one-click?
Any thoughts much appreciated!
Josiah