robcowie / SublimeTODO

**[DEPRECATED]** - See https://github.com/jonathandelgado/SublimeTodoReview - Extract TODO-type comments from open files and project folders
295 stars 54 forks source link

scan open files only #22

Closed chrisjaure closed 12 years ago

chrisjaure commented 12 years ago

I'd love to use this plugin, but we have a rather large project with thousands of files and scanning them all can take a bit. An option to scan only open files would be awesome.

robcowie commented 12 years ago

Sounds like a useful feature, I'll have a think about it. Would you prefer a setting (say open_files_only: True) or a second command ('Show TODOs in open files only`)?

Also, If you have the time I'd appreciate some numbers about the speed of the plugin when scanning large numbers of files. I've been considering changing the way the plugin works... scanning once in the background, maintaining a list of messages and updating it on file change. Could improve performance but it's a lot of work and I'm not sure it's worth the effort.

chrisjaure commented 12 years ago

It takes ~1:40 to scan ~4200 files.

I'd prefer a second command. And for consistent formatting with other commands, it should probably be something like "TODO: Open Files" but I know there's other todo plugins you need to avoid naming conflicts with.

robcowie commented 12 years ago

Damn it... I just pushed a commit I didn't want to push. Please ignore that; I'll revert.

robcowie commented 12 years ago

Second command Show TODOs: Open files only added. Give it a shot and let me know if there are any issues.

chrisjaure commented 12 years ago

Works perfectly. Thanks :)

robcowie commented 12 years ago

:+1: