1999-01-06 20:10:00 -04:00
|
|
|
|
|
|
|
TO DO:
|
|
|
|
|
1999-02-08 18:27:18 -04:00
|
|
|
- improve debugger:
|
|
|
|
- manage breakpoints globally, allow bp deletion, tbreak, cbreak etc.
|
|
|
|
- real object browser
|
|
|
|
- help on how to use it (a simple help button will do wonders)
|
|
|
|
- performance? (updates of large sets of locals are slow)
|
|
|
|
- better integration of "debug module"
|
1999-04-22 19:32:32 -03:00
|
|
|
- debugger should be global resource (attached to flist, not to shell)
|
|
|
|
- fix the stupid bug where you need to step twice
|
1999-05-21 01:45:20 -03:00
|
|
|
- after closing and reopening PyShell, debugger no longer works :-(
|
1999-02-08 18:27:18 -04:00
|
|
|
- insert the initial current directory into sys.path
|
|
|
|
- default directory attribute for each window instead of only for windows
|
|
|
|
that have an associated filename
|
1999-01-06 20:10:00 -04:00
|
|
|
- command expansion from keywords, module contents, other buffers, etc.
|
|
|
|
- "Recent documents" menu item
|
1999-04-22 11:07:33 -03:00
|
|
|
- Filter region command
|
1999-04-22 19:32:32 -03:00
|
|
|
- Optional horizontal scroll bar
|
1999-01-06 20:10:00 -04:00
|
|
|
- more emacsisms:
|
1999-02-08 18:27:18 -04:00
|
|
|
- parentheses matching
|
|
|
|
- M-[, M-] to move by paragraphs
|
|
|
|
- incremental search?
|
|
|
|
- ^K should cut to buffer
|
1999-05-21 01:45:20 -03:00
|
|
|
- search should indicate wrap-around in some way
|
1999-01-06 20:10:00 -04:00
|
|
|
- restructure state sensitive code to avoid testing flags all the time
|
|
|
|
- persistent user state (e.g. window and cursor positions, bindings)
|
|
|
|
- make backups when saving
|
|
|
|
- check file mtimes at various points
|
|
|
|
- interface with RCS/CVS/Perforce ???
|
1999-04-22 19:32:32 -03:00
|
|
|
- status bar???
|
1999-01-06 20:10:00 -04:00
|
|
|
- better help?
|
1999-04-22 11:07:33 -03:00
|
|
|
- don't open second class browser on same module (nor second path browser)
|
|
|
|
- unify class and path browsers
|
|
|
|
- use a tree widget instead of a smalltalk/NeXT style multicolumn browser
|
1999-04-22 19:32:32 -03:00
|
|
|
Need to define a standard way whereby one can determine one is running
|
1999-04-22 11:07:33 -03:00
|
|
|
inside IDLE (needed for Tk mainloop, also handy for $PYTHONSTARTUP)
|
1999-07-15 10:11:02 -03:00
|
|
|
- Add more utility methods for use by extensions (a la get_selection)
|
|
|
|
- Way to run command in totally separate interpreter (fork+os.system?)
|
|
|
|
- Way to find definition of fully-qualified name:
|
|
|
|
In other words, select "UserDict.UserDict", hit some magic key and
|
|
|
|
it loads up UserDict.py and finds the first def or class for UserDict.
|
1999-01-06 20:10:00 -04:00
|
|
|
|
|
|
|
Details:
|
|
|
|
|
|
|
|
- when there's a selection, left/right arrow should go to either
|
|
|
|
end of the selection
|
|
|
|
- ^O (on Unix -- open-line) should honor autoindent
|
|
|
|
- after paste, show end of pasted text
|
|
|
|
- on Windows, should turn short filename to long filename (not only in argv!)
|
|
|
|
(shouldn't this be done -- or undone -- by ntpath.normpath?)
|
1999-05-21 01:45:20 -03:00
|
|
|
- new autoindent after colon even indents when the colon is in a comment!
|
|
|
|
- sometimes forward slashes in pathname remain
|
|
|
|
- sometimes star in window name remains in Windows menu
|
1999-01-06 20:10:00 -04:00
|
|
|
|
|
|
|
Structural problems:
|
|
|
|
|
|
|
|
- too much knowledge in FileList about EditorWindow (for example)
|
1999-05-21 01:45:20 -03:00
|
|
|
- should add some primitives for accessing the selection etc.
|
|
|
|
to repeat cumbersome code over and over
|
1999-01-06 20:10:00 -04:00
|
|
|
|
|
|
|
======================================================================
|
|
|
|
|
|
|
|
Jeff Bauer suggests:
|
|
|
|
|
|
|
|
- The editor should show the current line number.
|
|
|
|
- Open Module doesn't appear to handle hierarchical packages.
|
|
|
|
- Class browser should also allow hierarchical packages.
|
|
|
|
- Open and Open Module could benefit from a history,
|
|
|
|
either command line style, or Microsoft recent-file
|
|
|
|
style.
|
|
|
|
- Add a Smalltalk-style inspector (i.e. Tkinspect)
|
|
|
|
|
|
|
|
The last suggestion is already a reality, but not yet
|
|
|
|
integrated into IDLE. I use a module called inspector.py,
|
|
|
|
that used to be available from python.org(?) It no longer
|
|
|
|
appears to be in the contributed section, and the source
|
|
|
|
has no author attribution.
|
|
|
|
|
|
|
|
In any case, the code is useful for visually navigating
|
|
|
|
an object's attributes, including its container hierarchy.
|
|
|
|
|
|
|
|
>>> from inspector import Tkinspect
|
|
|
|
>>> Tkinspect(None, myObject)
|
|
|
|
|
|
|
|
Tkinspect could probably be extended and refined to
|
|
|
|
integrate better into IDLE.
|
|
|
|
|
|
|
|
======================================================================
|
|
|
|
|
|
|
|
Comparison to PTUI
|
|
|
|
------------------
|
|
|
|
|
|
|
|
+ PTUI has a status line
|
|
|
|
|
|
|
|
+ PTUI's help is better (HTML!)
|
|
|
|
|
|
|
|
+ PTUI can attach a shell to any module
|
|
|
|
|
|
|
|
+ PTUI has more bells and whistles:
|
|
|
|
open multiple
|
|
|
|
append
|
|
|
|
examine
|
|
|
|
|
|
|
|
? PTUI's fontify is faster but synchronous (and still too slow);
|
|
|
|
does a lousy job if editing affects lines below
|
|
|
|
|
|
|
|
- PTUI's shell is worse:
|
|
|
|
no coloring;
|
|
|
|
no editing of multi-line commands;
|
|
|
|
^P seems to permanently remove some text from the buffer
|
|
|
|
|
|
|
|
- PTUI's undo is worse:
|
|
|
|
no redo;
|
|
|
|
one char at a time
|
|
|
|
|
|
|
|
- PTUI's GUI is a tad ugly:
|
|
|
|
I don't like the multiple buffers in one window model;
|
|
|
|
I don't like the big buttons at the top of the widow
|
|
|
|
|
|
|
|
- PTUI lacks an integrated debugger
|
|
|
|
|
1999-04-08 17:28:42 -03:00
|
|
|
- PTUI lacks path and class browsers
|
1999-01-06 20:10:00 -04:00
|
|
|
|
|
|
|
- PTUI lacks many of IDLE's features:
|
|
|
|
- expand word
|
|
|
|
- regular expression search
|
|
|
|
- search files (grep)
|
1999-01-11 10:52:40 -04:00
|
|
|
- (un)tabify
|
|
|
|
- center
|
|
|
|
- zoom height
|
1999-01-06 20:10:00 -04:00
|
|
|
|
|
|
|
======================================================================
|
|
|
|
|
|
|
|
Notes after trying to run Grail
|
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
- Grail does stuff to sys.path based on sys.argv[0]; you must set
|
|
|
|
sys.argv[0] to something decent first (it is normally set to the path of
|
|
|
|
the idle script).
|
|
|
|
|
|
|
|
- Grail must be exec'ed in __main__ because that's imported by some
|
|
|
|
other parts of Grail.
|
|
|
|
|
|
|
|
- Grail uses a module called History and so does idle :-(
|
|
|
|
|
|
|
|
======================================================================
|