473,414 Members | 1,776 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Scintilla/SciTE - Python folding

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
1 3072
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
by: Sticks | last post by:
i'm new to python and i was wondering what editors people prefer to use and why.
2
by: Konrad Koller | last post by:
Under Windows print formatting (header, footer etc.) is OK. Under LINUX it does not work. SciTEGlobal.properties state around line 352: # Printing - only works on Windows Why? How is print...
2
by: fabien | last post by:
Hi, I am writing a POV-RAY editor with Python using either QT or GTK as GUI 'wrapper'. ( I am still trying both ) * * * * PYGTK * * * * I have downloaded PygtkScintilla-1.99.5. There is a...
1
by: jim.eggleston | last post by:
I just figured out a reasonably decent way to use pdb in SciTE for debugging Python scripts. Debugging takes place in the SciTE output window. I have only tested this with SciTE on Windows. Here...
7
by: Chris Jones | last post by:
I'm trying to make sense of a python program and was wondering if vim has any python-oriented functionalities (apart from syntax highlighting) that would make it somewhat easier to browse the...
14
by: John Salerno | last post by:
Specifically, I'm using UltraEdit and perhaps there's no way perfect way to implement code folding with it, given how it uses its syntax highlighting file to do so (i.e., you have to specify an...
4
by: John Ladasky | last post by:
Hi there. The following minimal code in Python 2.3.4 works under Idle v. 1.0.3, but not under SciTE v. 1.66: from time import sleep try: while True: sleep(0.25) print ".",
0
by: egbert | last post by:
Is it possible to set Python as the default language in SciTE? Not all my python scripts have the .py extension, only the to_be_imported ones. And I use SciTE only for Python. e. -- Egbert...
5
by: Laszlo Nagy | last post by:
Hello, I was trying to get answers for these. SPE homepage was down. Then I found it on berlios (http://developer.berlios.de/forum/forum.php?forum_id=12695) but no one answered since 5 days. In...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.