top level fold problem

Help
yang
2005-06-02
2013-04-26
  • yang
    yang
    2005-06-02

    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()