This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author GeeTransit
Recipients GeeTransit, terry.reedy
Date 2019-08-18.17:46:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566150411.87.0.37054908058.issue37882@roundup.psfhosted.org>
In-reply-to
Content
Congrats on adding line numbers to IDLE.

With this change, a change to add code folding could be done more easily as the folding can reference the line numbers. Many other IDEs have code folding but IDLE should also have it.

Code folding could be done with a +/- to the right of the line numbers and can show/hide the indented suite under the header (compound statements). It should use indentation as tool to figure out which parts can be folded. Blank lines don't count. Single line compound statements cannot be folded.

Something like this:

1  - | def spam(ham):
2  - |     if ham:
3    |         eggs()
4    | 
5  + | def frob():
8    | 
9  - | FOO = (
10   |     1, 2, 3, 4,
11   |     5, 6, 7, 8,
12   | )
13   | 
14   | BAR = (
17   | )
18   | 
19   | if True: print("True")
20   |
History
Date User Action Args
2019-08-18 17:46:51GeeTransitsetrecipients: + GeeTransit, terry.reedy
2019-08-18 17:46:51GeeTransitsetmessageid: <1566150411.87.0.37054908058.issue37882@roundup.psfhosted.org>
2019-08-18 17:46:51GeeTransitlinkissue37882 messages
2019-08-18 17:46:51GeeTransitcreate