TODO.txt 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. Original IDLE todo, much of it now outdated:
  2. ============================================
  3. TO DO:
  4. - improve debugger:
  5. - manage breakpoints globally, allow bp deletion, tbreak, cbreak etc.
  6. - real object browser
  7. - 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"
  10. - debugger should be global resource (attached to flist, not to shell)
  11. - fix the stupid bug where you need to step twice
  12. - display class name in stack viewer entries for methods
  13. - suppress tracing through IDLE internals (e.g. print) DONE
  14. - add a button to suppress through a specific module or class or method
  15. - more object inspection to stack viewer, e.g. to view all array items
  16. - insert the initial current directory into sys.path DONE
  17. - default directory attribute for each window instead of only for windows
  18. that have an associated filename
  19. - command expansion from keywords, module contents, other buffers, etc.
  20. - "Recent documents" menu item DONE
  21. - Filter region command
  22. - Optional horizontal scroll bar
  23. - more Emacsisms:
  24. - ^K should cut to buffer
  25. - M-[, M-] to move by paragraphs
  26. - incremental search?
  27. - search should indicate wrap-around in some way
  28. - restructure state sensitive code to avoid testing flags all the time
  29. - persistent user state (e.g. window and cursor positions, bindings)
  30. - make backups when saving
  31. - check file mtimes at various points
  32. - Pluggable interface with RCS/CVS/Perforce/Clearcase
  33. - better help?
  34. - don't open second class browser on same module (nor second path browser)
  35. - unify class and path browsers
  36. - Need to define a standard way whereby one can determine one is running
  37. inside IDLE (needed for Tk mainloop, also handy for $PYTHONSTARTUP)
  38. - Add more utility methods for use by extensions (a la get_selection)
  39. - Way to run command in totally separate interpreter (fork+os.system?) DONE
  40. - Way to find definition of fully-qualified name:
  41. In other words, select "UserDict.UserDict", hit some magic key and
  42. it loads up UserDict.py and finds the first def or class for UserDict.
  43. - need a way to force colorization on/off
  44. - need a way to force auto-indent on/off
  45. Details:
  46. - ^O (on Unix -- open-line) should honor autoindent
  47. - after paste, show end of pasted text
  48. - on Windows, should turn short filename to long filename (not only in argv!)
  49. (shouldn't this be done -- or undone -- by ntpath.normpath?)
  50. - new autoindent after colon even indents when the colon is in a comment!
  51. - sometimes forward slashes in pathname remain
  52. - sometimes star in window name remains in Windows menu
  53. - With unix bindings, ESC by itself is ignored
  54. - Sometimes for no apparent reason a selection from the cursor to the
  55. end of the command buffer appears, which is hard to get rid of
  56. because it stays when you are typing!
  57. - The Line/Col in the status bar can be wrong initially in PyShell DONE
  58. Structural problems:
  59. - too much knowledge in FileList about EditorWindow (for example)
  60. - should add some primitives for accessing the selection etc.
  61. to repeat cumbersome code over and over
  62. ======================================================================
  63. Jeff Bauer suggests:
  64. - Open Module doesn't appear to handle hierarchical packages.
  65. - Class browser should also allow hierarchical packages.
  66. - Open and Open Module could benefit from a history, DONE
  67. either command line style, or Microsoft recent-file
  68. style.
  69. - Add a Smalltalk-style inspector (i.e. Tkinspect)
  70. The last suggestion is already a reality, but not yet
  71. integrated into IDLE. I use a module called inspector.py,
  72. that used to be available from python.org(?) It no longer
  73. appears to be in the contributed section, and the source
  74. has no author attribution.
  75. In any case, the code is useful for visually navigating
  76. an object's attributes, including its container hierarchy.
  77. >>> from inspector import Tkinspect
  78. >>> Tkinspect(None, myObject)
  79. Tkinspect could probably be extended and refined to
  80. integrate better into IDLE.
  81. ======================================================================
  82. Comparison to PTUI
  83. ------------------
  84. + PTUI's help is better (HTML!)
  85. + PTUI can attach a shell to any module
  86. + PTUI has some more I/O commands:
  87. open multiple
  88. append
  89. examine (what's that?)
  90. ======================================================================
  91. Notes after trying to run Grail
  92. -------------------------------
  93. - Grail does stuff to sys.path based on sys.argv[0]; you must set
  94. sys.argv[0] to something decent first (it is normally set to the path of
  95. the idle script).
  96. - Grail must be exec'ed in __main__ because that's imported by some
  97. other parts of Grail.
  98. - Grail uses a module called History and so does idle :-(
  99. ======================================================================
  100. Robin Friedrich's items:
  101. Things I'd like to see:
  102. - I'd like support for shift-click extending the selection. There's a
  103. bug now that it doesn't work the first time you try it.
  104. - Printing is needed. How hard can that be on Windows? FIRST CUT DONE
  105. - The python-mode trick of autoindenting a line with <tab> is neat and
  106. very handy.
  107. - (someday) a spellchecker for docstrings and comments.
  108. - a pagedown/up command key which moves to next class/def statement (top
  109. level)
  110. - split window capability
  111. - DnD text relocation/copying
  112. Things I don't want to see.
  113. - line numbers... will probably slow things down way too much.
  114. - Please use another icon for the tree browser leaf. The small snake
  115. isn't cutting it.
  116. ----------------------------------------------------------------------
  117. - Customizable views (multi-window or multi-pane). (Markus Gritsch)
  118. - Being able to double click (maybe double right click) on a callable
  119. object in the editor which shows the source of the object, if
  120. possible. (Gerrit Holl)
  121. - Hooks into the guts, like in Emacs. (Mike Romberg)
  122. - Sharing the editor with a remote tutor. (Martijn Faassen)
  123. - Multiple views on the same file. (Tony J Ibbs)
  124. - Store breakpoints in a global (per-project) database (GvR); Dirk
  125. Heise adds: save some space-trimmed context and search around when
  126. reopening a file that might have been edited by someone else.
  127. - Capture menu events in extensions without changing the IDLE source.
  128. (Matthias Barmeier)
  129. - Use overlapping panels (a "notebook" in MFC terms I think) for info
  130. that doesn't need to be accessible simultaneously (e.g. HTML source
  131. and output). Use multi-pane windows for info that does need to be
  132. shown together (e.g. class browser and source). (Albert Brandl)
  133. - A project should invisibly track all symbols, for instant search,
  134. replace and cross-ref. Projects should be allowed to span multiple
  135. directories, hosts, etc. Project management files are placed in a
  136. directory you specify. A global mapping between project names and
  137. project directories should exist [not so sure --GvR]. (Tim Peters)
  138. - Merge attr-tips and auto-expand. (Mark Hammond, Tim Peters)
  139. - Python Shell should behave more like a "shell window" as users know
  140. it -- i.e. you can only edit the current command, and the cursor can't
  141. escape from the command area. (Albert Brandl)
  142. - Set X11 class to "idle/Idle", set icon and title to something
  143. beginning with "idle" -- for window manangers. (Randall Hopper)
  144. - Config files editable through a preferences dialog. (me) DONE
  145. - Config files still editable outside the preferences dialog.
  146. (Randall Hopper) DONE
  147. - When you're editing a command in PyShell, and there are only blank
  148. lines below the cursor, hitting Return should ignore or delete those
  149. blank lines rather than deciding you're not on the last line. (me)
  150. - Run command (F5 c.s.) should be more like Pythonwin's Run -- a
  151. dialog with options to give command line arguments, run the debugger,
  152. etc. (me)
  153. - Shouldn't be able to delete part of the prompt (or any text before
  154. it) in the PyShell. (Martijn Faassen) DONE
  155. - Emacs style auto-fill (also smart about comments and strings).
  156. (Jeremy Hylton)
  157. - Output of Run Script should go to a separate output window, not to
  158. the shell window. Output of separate runs should all go to the same
  159. window but clearly delimited. (David Scherer) REJECT FIRST, LATTER DONE
  160. - GUI form designer to kick VB's butt. (Robert Geiger) THAT'S NOT IDLE
  161. - Printing! Possibly via generation of PDF files which the user must
  162. then send to the printer separately. (Dinu Gherman) FIRST CUT