summaryrefslogtreecommitdiffstats
path: root/Tools/idle/FormatParagraph.py
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of old IDLE. Lib/idlelib rules!Guido van Rossum2003-06-141-154/+0
|
* Apply diff2.txt from SF patch http://www.python.org/sf/572113Walter Dörwald2002-09-111-11/+10
| | | | | | | | (with one small bugfix in bgen/bgen/scantools.py) This replaces string module functions with string methods for the stuff in the Tools directory. Several uses of string.letters etc. are still remaining.
* Whitespace normalization.Tim Peters2001-01-171-2/+2
|
* Add close() method that breaks a cycle.Guido van Rossum1999-06-251-0/+3
|
* Tim Peters smart.patch:Guido van Rossum1999-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EditorWindow.py: + Added get_tabwidth & set_tabwidth "virtual text" methods, that get/set the widget's view of what a tab means. + Moved TK_TABWIDTH_DEFAULT here from AutoIndent. + Renamed Mark's get_selection_index to get_selection_indices (sorry, Mark, but the name was plain wrong <wink>). FormatParagraph.py: renamed use of get_selection_index. AutoIndent.py: + Moved TK_TABWIDTH_DEFAULT to EditorWindow. + Rewrote set_indentation_params to use new VTW get/set_tabwidth methods. + Changed smart_backspace_event to delete whitespace back to closest preceding virtual tab stop or real character (note that this may require inserting characters if backspacing over a tab!). + Nuked almost references to the selection tag, in favor of using get_selection_indices. The sole exception is in set_region, for which no "set_selection" abstraction has yet been agreed upon. + Had too much fun using the spiffy new features of the format-paragraph cmd.
* Code by Mark Hammond to format paragraphs embedded in comments.Guido van Rossum1999-06-101-10/+55
| | | | | Read the comments (which I reformatted using the new feature :-) for some limitations.
* Tim Peters writes:Guido van Rossum1999-05-031-0/+2
| | | | | | | | | | | | I'm still unsure, but couldn't stand the virtual event trickery so tried a different sin (adding undo_block_start/stop methods to the Text instance in EditorWindow.py). Like it or not, it's efficient and works <wink>. Better idea? Give the attached a whirl. Even if you hate the implementation, I think you'll like the results. Think I caught all the "block edit" cmds, including Format Paragraph, plus subtler ones involving smart indents and backspacing.
* Change paragraph width limit to 70 (like Emacs M-Q).Guido van Rossum1999-01-071-1/+1
|
* Hm. There was a boundary condition error at the end of the file too.Guido van Rossum1999-01-041-1/+1
|
* Added Unix Meta-q key binding;Guido van Rossum1999-01-041-1/+5
| | | | fix find_paragraph when at start of file.
* Add new extension to reformat a (text) paragraph.Guido van Rossum1999-01-041-0/+101