Skip to content

Instantly share code, notes, and snippets.

@fernandotakai
Created September 22, 2008 14:33
Show Gist options
  • Save fernandotakai/11999 to your computer and use it in GitHub Desktop.
Save fernandotakai/11999 to your computer and use it in GitHub Desktop.
CmdUtils.CreateCommand({
name:"trac",
icon: "http://labs.toolness.com/trac/chrome/common/trac.ico",
author: "Fernando 'fern' Takai",
takes: {'ticket number': noun_arb_text},
preview: function ( pblock, ticket ){
pblock.innerHTML = "Goes to ticket number #" + ticket.text
},
execute: function ( ticket ){
var url = "http://labs.toolness.com/trac/ticket/" + ticket.text;
Utils.openUrlInBrowser(url);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment