Skip to content
This repository has been archived by the owner on Jan 21, 2018. It is now read-only.

keybinding command #53

Open
artlawry opened this issue Apr 30, 2013 · 3 comments
Open

keybinding command #53

artlawry opened this issue Apr 30, 2013 · 3 comments

Comments

@artlawry
Copy link

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
Copy link
Author

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

(command is "todo" for those wondering)

@vovkkk
Copy link

vovkkk commented May 1, 2013

@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
Copy link
Author

artlawry commented May 1, 2013

@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"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants