Kirbies
Kirbies

Reputation: 827

TodoReview in sublime 3 does not find TODOs

I installed TodoReview for sublime 3 but I can't get it to catch my TODO statements. I'm coding in python and insert a TODO above a statement like this,

# TODO
print "This is just an example, I also tried varying number of hashes and cases, and typing the #TODO after the statement instead of above"

When then run Todo Review: Open files from the command palette, it only reads something like

// Thursday 05/07/15 at 03:03PM - 5 files in 0.03 secs

And nothing more (my file with the TODO is one of the five open files).

My TodoReview:sublime-settings file look like this.

{
"patterns": {
    "TODO": "TODO[\\s]*?:[\\s]*(?P<todo>.*)$"
},
"patterns_weight": {
},
"exclude_folders": [
    "*.git*"
],
"exclude_files": [
    "*.sublime-workspace",
    "*.sublime-project"
],
"case_sensitive": false,
"render_include_folder": true,
"render_folder_depth": 1,
"render_maxspaces": 50,
"render_header_format": "%d - %c files in %t secs",
"render_header_date": "%A %m/%d/%y at %I:%M%p",
"navigation_forward_skip" : 10,
"navigation_backward_skip" : 10
}

Upvotes: 3

Views: 2599

Answers (1)

Mike P
Mike P

Reputation: 752

It's looking for TODO:, not just TODO.

There should be a user settings for TodoReview; in Preferences -> Package Settings, there should be an entry for 'TodoReview', which will have a Default and User settings option.

You can then open the default settings, copy the 'patterns' key/value pair and paste it into the user settings file; edit the pattern to your specification and you should be good to go!

Upvotes: 8

Related Questions