Skip to content

Instantly share code, notes, and snippets.

@caisui
Created October 22, 2011 02:03
Show Gist options
  • Select an option

  • Save caisui/1305435 to your computer and use it in GitHub Desktop.

Select an option

Save caisui/1305435 to your computer and use it in GitHub Desktop.
CoffeeScript で Command 追加
commands.addUserCommand ["hel[lo]"], "Coffee Script Command Sample",
([name])->liberator.echo "Hello #{name}",
{
argCount: "1",
completer: (context, args)->
context.completions = [
["CoffeeScript", "Description1"]
["Vimperator", "Description2"]
["ECMAScript", "Description3"]
]
null
}, true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment