add command for collapse recursively
For getting back from the situation that is expanded recursively
I think what you actually want is collapse-children command. Recursive collapsing is not so useful for users, because it forgets the tree state.
I think this feature is for getting back from mistake. When I pushed not "i" but "E" by mistake, I had to close the many nodes what I don't focus in expanded tree. So, I want the function that gets the tree state back.
So, recursive expanding is the essential problem?
Hmm? I think recursive expanding is no problem. I want only the undo function.
+1 LGTM!