SublimeTODO

I’m sure i’ve written about a Sublime Text package called SublimeTODO before.

It’s easy to install but getting to the list of todos isn’t relatively easy. I created a keyboard shortcut of cmd + shift+ g. Add this to your user key bindings, making sure it’s valid JSON.

[
    { "keys": ["super+shift+g"], "command": "todo" }
]

If you work on projects with a package system (NPM, Ruby gems, Composer etc), builds scripts or other stuff you didnt create, you don’t want to search them for todos. Add this to your user settings. Note that you can easilly create new comment prefixes. I have CRITICAL, MAYBE and a few other things.

"todo":
{
    "case_sensitive": true,
    "file_exclude_patterns":
    [
        "*.sql"
    ],
    "folder_exclude_patterns":
    [
        "node_modules",
        "build",
        "tmp",
        ".sass-cache"
    ],
    "patterns":
    {
        "BUG": "BUG[\s]*?:+(?P.*)$",
        "CHANGED": "CHANGED[\s]*?:+(?P\S.*)$",
        "CRITICAL": "CRITICAL[\s]*?:+(?P.*)$",
        "FIXME": "FIX ?ME[\s]*?:+(?P\S.*)$",
        "FUCKTHISSHIT": "FUCKTHISSHIT[\s]*?:+(?P.*)$",
        "MAYBE": "MAYBE[\s]*?:+(?P.*)$",
        "NOTE": "NOTE[\s]*?:+(?P.*)$",
        "TODO": "TODO[\s]*?:+(?P.*)$"
    }
},

I like inline todos.


Update: 14:52pm, 29th Jan 2014
As Leny pointed out, this plugin doesent work in Sublime Text 3, so he made this plugin. I’ve not tested it.


Update: 20:33pm, 11th June 2014
I wrote a new article about a new plugin for Sublime Text 3.