In SciTE,Ctrl+Shift+Click in the fold margin will expand or contract all the top level folds,but in DrPy,this does not work.I think this feature is useful to view the overall structure of a file.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Fast solution:
You use the functions FoldAll and ExpandAll and memorize the state of folding.
Enhance in drTextf OnMarginClick(self, event):
Pseudocode:
if evt.GetShift() and evt.GetControl():
if <drframevar_foldvar> == 1:
<drframe>.ExpandAll
else:
<drframe>.FoldAll()
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In SciTE,Ctrl+Shift+Click in the fold margin will expand or contract all the top level folds,but in DrPy,this does not work.I think this feature is useful to view the overall structure of a file.
Thanks.
You could make a plugin for that.
Fast solution:
You use the functions FoldAll and ExpandAll and memorize the state of folding.
Enhance in drTextf OnMarginClick(self, event):
Pseudocode:
if evt.GetShift() and evt.GetControl():
if <drframevar_foldvar> == 1:
<drframe>.ExpandAll
else:
<drframe>.FoldAll()