By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,944 Members | 1,819 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,944 IT Pros & Developers. It's quick & easy.

Scintilla/SciTE - Python folding

P: n/a
Question:

Is there a way to unfold a Python class *without* unfolding
all its methods etc. so that you can get a quick overview
of the class?

Details:

I normally open a file either with 'fold.on.open=1' set in
the user's options file resp. I use 'toggle all folds' from
the menu to fold everything in an unfolded file.
But then, when I unfold e.g. a class, everything inside the
class gets unfolded, too. What I would need is something like
'unfold one level only'. Thought, that maybe the keystroke
'Ctrl-Keypad*' was meant for that, but it doesn't work that way.

I am using Scintilla/SciTE 1.59 (Linux / compiled from the
sources).

Thanks in advance for your answers! Nuff.

Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Nuff Said:
I normally open a file either with 'fold.on.open=1' set in
the user's options file resp. I use 'toggle all folds' from
the menu to fold everything in an unfolded file.
But then, when I unfold e.g. a class, everything inside the
class gets unfolded, too. What I would need is something like
'unfold one level only'. Thought, that maybe the keystroke
'Ctrl-Keypad*' was meant for that, but it doesn't work that way.

I am using Scintilla/SciTE 1.59 (Linux / compiled from the
sources).


There is currently no support for this in SciTE. Scintilla doesn't
implement the 'policy' layer of folding although most containers have copied
SciTE's commands (fold click, fold ctrl click and fold ctrl shift click).
The toggle all folds really only toggles the top level folds. If you want to
fold a class completely, from the unfolded state: fold ctrl click. Then you
can uncover one layer with fold click.

There are lots of folding command variants that may be interesting, but
many of the ones that sound useful seem both language and context sensitive:
for example, a command for python that folds away function and method
bodies, but leaves those bodies unfolded internally so they can be viewed
with a single click.

Neil
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.