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

keybinding command #53

Open artlawry opened 11 years ago

artlawry commented 11 years ago

Is there a particular command that allows custom keybindings for generating the open files/project TODO file?

something like:

{ "keys": ["super+\"], "command": "show_todos" }

I couldn't find documentation on this or how to find a packages mappable commands.

artlawry commented 11 years ago

apologies - found it with sublime.log_commands(True) in console

(command is "todo" for those wondering)

vovkkk commented 11 years ago

@artlawry in general you can find command right in code: it shall be class e.g. class SomeArbitraryNameCommand and command shall be some_arbitrary_name

@robcowie could you please come up with a more complicated name? there are a lot of plugins and simple command name has more possibility for conflicts, i.e. imagine if another plugin has same command name.

artlawry commented 11 years ago

@vovkkk I was thinking the same thing regarding name complexity, or rather better namespacing. "todo" could apply to too many other packages.

I recommend something like "parse_comment_todos"