Closed cortex359 closed 10 years ago
Good point. I think my only reason might have been for the slight time it takes in folding all blocks in a relatively large file. But I guess the converse is that the user who requests a fold all function should be aware of the implications. I also was unable to find any APIs within brackets to show that some action is taking place just to give some feedback to the user about a longish running process.
The Fold All command only folds the parent code blocks but does not go any deeper. Since most code has only a few main blocks (like html the tag or in js modules the define() line) it has no practical use. The main feature of a Fold All function should especially be to fold all the little blocks inside the main blocks. The Alt-Click function does fold the inner blocks of the selected block, so why not the Fold All function?