blob: a520b3069e51e5bcaf27224d436304bcd42702ee [file] [log] [blame]
Guido van Rossum6ba219e1999-01-07 00:10:00 +00001
2TO DO:
3
Guido van Rossum5ec13c51999-02-08 22:27:18 +00004- improve debugger:
5 - manage breakpoints globally, allow bp deletion, tbreak, cbreak etc.
6 - real object browser
Guido van Rossum5ec13c51999-02-08 22:27:18 +00007 - help on how to use it (a simple help button will do wonders)
8 - performance? (updates of large sets of locals are slow)
9 - better integration of "debug module"
Guido van Rossum4c6d0c71999-04-22 22:32:32 +000010 - debugger should be global resource (attached to flist, not to shell)
11 - fix the stupid bug where you need to step twice
Guido van Rossum2092b431999-05-21 04:45:20 +000012 - after closing and reopening PyShell, debugger no longer works :-(
Guido van Rossum5ec13c51999-02-08 22:27:18 +000013- insert the initial current directory into sys.path
14- default directory attribute for each window instead of only for windows
15 that have an associated filename
Guido van Rossum6ba219e1999-01-07 00:10:00 +000016- command expansion from keywords, module contents, other buffers, etc.
17- "Recent documents" menu item
Guido van Rossum9f5362b1999-04-22 14:07:33 +000018- Filter region command
Guido van Rossum4c6d0c71999-04-22 22:32:32 +000019- Optional horizontal scroll bar
Guido van Rossum6ba219e1999-01-07 00:10:00 +000020- more emacsisms:
Guido van Rossum5ec13c51999-02-08 22:27:18 +000021 - parentheses matching
22 - M-[, M-] to move by paragraphs
Guido van Rossum5ec13c51999-02-08 22:27:18 +000023 - incremental search?
24 - ^K should cut to buffer
Guido van Rossum2092b431999-05-21 04:45:20 +000025- search should indicate wrap-around in some way
Guido van Rossum6ba219e1999-01-07 00:10:00 +000026- restructure state sensitive code to avoid testing flags all the time
Guido van Rossum6ba219e1999-01-07 00:10:00 +000027- persistent user state (e.g. window and cursor positions, bindings)
28- make backups when saving
29- check file mtimes at various points
30- interface with RCS/CVS/Perforce ???
Guido van Rossum4c6d0c71999-04-22 22:32:32 +000031- status bar???
Guido van Rossum6ba219e1999-01-07 00:10:00 +000032- better help?
Guido van Rossum9f5362b1999-04-22 14:07:33 +000033- don't open second class browser on same module (nor second path browser)
34- unify class and path browsers
35- use a tree widget instead of a smalltalk/NeXT style multicolumn browser
Guido van Rossum4c6d0c71999-04-22 22:32:32 +000036 Need to define a standard way whereby one can determine one is running
Guido van Rossum9f5362b1999-04-22 14:07:33 +000037 inside IDLE (needed for Tk mainloop, also handy for $PYTHONSTARTUP)
38- Add utility methods for use by extensions (e.g. to get selection)
Guido van Rossum6ba219e1999-01-07 00:10:00 +000039
40Details:
41
42- when there's a selection, left/right arrow should go to either
43 end of the selection
44- ^O (on Unix -- open-line) should honor autoindent
45- after paste, show end of pasted text
46- on Windows, should turn short filename to long filename (not only in argv!)
47 (shouldn't this be done -- or undone -- by ntpath.normpath?)
Guido van Rossum2092b431999-05-21 04:45:20 +000048- new autoindent after colon even indents when the colon is in a comment!
49- sometimes forward slashes in pathname remain
50- sometimes star in window name remains in Windows menu
Guido van Rossum6ba219e1999-01-07 00:10:00 +000051
52Structural problems:
53
54- too much knowledge in FileList about EditorWindow (for example)
Guido van Rossum2092b431999-05-21 04:45:20 +000055- should add some primitives for accessing the selection etc.
56 to repeat cumbersome code over and over
Guido van Rossum6ba219e1999-01-07 00:10:00 +000057
58======================================================================
59
60Jeff Bauer suggests:
61
62- The editor should show the current line number.
63- Open Module doesn't appear to handle hierarchical packages.
64- Class browser should also allow hierarchical packages.
65- Open and Open Module could benefit from a history,
66 either command line style, or Microsoft recent-file
67 style.
68- Add a Smalltalk-style inspector (i.e. Tkinspect)
69
70The last suggestion is already a reality, but not yet
71integrated into IDLE. I use a module called inspector.py,
72that used to be available from python.org(?) It no longer
73appears to be in the contributed section, and the source
74has no author attribution.
75
76In any case, the code is useful for visually navigating
77an object's attributes, including its container hierarchy.
78
79 >>> from inspector import Tkinspect
80 >>> Tkinspect(None, myObject)
81
82Tkinspect could probably be extended and refined to
83integrate better into IDLE.
84
85======================================================================
86
87Comparison to PTUI
88------------------
89
90+ PTUI has a status line
91
92+ PTUI's help is better (HTML!)
93
94+ PTUI can attach a shell to any module
95
Guido van Rossum6ba219e1999-01-07 00:10:00 +000096+ PTUI has more bells and whistles:
97 open multiple
98 append
Guido van Rossum6ba219e1999-01-07 00:10:00 +000099 examine
Guido van Rossum6ba219e1999-01-07 00:10:00 +0000100
101? PTUI's fontify is faster but synchronous (and still too slow);
102 does a lousy job if editing affects lines below
103
104- PTUI's shell is worse:
105 no coloring;
106 no editing of multi-line commands;
107 ^P seems to permanently remove some text from the buffer
108
109- PTUI's undo is worse:
110 no redo;
111 one char at a time
112
113- PTUI's GUI is a tad ugly:
114 I don't like the multiple buffers in one window model;
115 I don't like the big buttons at the top of the widow
116
117- PTUI lacks an integrated debugger
118
Guido van Rossum21ad59f1999-04-08 20:28:42 +0000119- PTUI lacks path and class browsers
Guido van Rossum6ba219e1999-01-07 00:10:00 +0000120
121- PTUI lacks many of IDLE's features:
122 - expand word
123 - regular expression search
124 - search files (grep)
Guido van Rossumc66e8601999-01-11 14:52:40 +0000125 - (un)tabify
126 - center
127 - zoom height
Guido van Rossum6ba219e1999-01-07 00:10:00 +0000128
129======================================================================
130
131Notes after trying to run Grail
132-------------------------------
133
134- Grail does stuff to sys.path based on sys.argv[0]; you must set
135sys.argv[0] to something decent first (it is normally set to the path of
136the idle script).
137
138- Grail must be exec'ed in __main__ because that's imported by some
139other parts of Grail.
140
141- Grail uses a module called History and so does idle :-(
142
143======================================================================