我正在尝试开发一个需要像这样的Keybinding的包:
{
"keys": [",", "<character>", "<character>"],
"command": "super_awesome"
}
这是有效的,这意味着Sublime在我按,
后需要两个字符,但是从插件中我无法访问这两个字符。 Sublime仅为包提供
class SuperAwesomeCommand(sublime_plugin.TextCommand):
def run(edit, **args):
print(args) # => { 'character': '2nd character pressed' }
有没有办法实现这个目标?
谢谢!