ActiveState Community

TODO helper

Posted by toddw on 2007-09-07 15:01 | Staff Pick!
1.4.1
Todd Whiteman
Wed, 2008-12-24 10:14
  • : 4.4.0 - 5.*
  • : 4.4.0 - 5.*

Display TODO items found in the current file / opened files / active project.

Features:

  • regex search markers
  • case sensitivity
  • search in current file, all opened files or the active project
  • double-click to jump to file
  • next, previous buttons to jump between markers
  • statusbar icon shown when todo items found

The extension search results will be updated on each of these Komodo events:

  • File open
  • File close
  • File save
  • View changed
  • Project changed

Screenshot:
Todo helper screenshot

Source code:
The complete source code for the todo extension is available through the OpenKomodo svn repository:
http://svn.openkomodo.com/openkomodo/browse/addons/todo

Contributors:

Special thanks to Renato Rodrigues (RRaver) for providing the following additions to the todo extension:
* extension icon (as seen in the extension manager)
* statusbar notifier
* localization support

pd | Fri, 2008-12-05 02:58

It seems that the plug in also scans the print lines in Python scripts, which is probably not desirable. Perhaps an options could be added to only
scan for to do tokens in comments?

toddw | Fri, 2008-12-05 11:57

Yes, you are correct about the TODO extension scanning for all occurrences of the search text, which is not always what you want. For the most part this can be tweaked using the find expression itself, as it uses a regular expression syntax.

The context specific searching is a good idea, one on which we have a Komodo enhancement request for:
http://bugs.activestate.com/show_bug.cgi?id=80034

Once that is completed for Komodo's find system, it will also filter down to the TODO extension (which is implemented on top of the Komodo find system).

Cheers,
Todd

pd | Mon, 2008-12-08 02:01

Thank you for the reply and explanation. Hope this feature will be implemented in the next 5.0.x updates then.

cendrizzi | Fri, 2009-06-12 13:02

Maybe I'll try to figure out how to do an extension, but this probably would be something easy to implement for those that do know, and would be very helpful.

The little status bar thing is nice, but I never notice it. I think it would be more helpful to show a number on the tab name with the number of todo's on the page. For example "TODO (3)". Maybe this could just be a preference.