Skip to content

Instantly share code, notes, and snippets.

@GiladShoham
Created January 2, 2014 17:56
Show Gist options
  • Select an option

  • Save GiladShoham/8223229 to your computer and use it in GitHub Desktop.

Select an option

Save GiladShoham/8223229 to your computer and use it in GitHub Desktop.
sublime text completions for crossrider
{
"completions":
[
{ "trigger": "a", "contents": "<a href=\"$1\">$0</a>" },
{ "trigger": "abbr", "contents": "<abbr>$0</abbr>" },
{ "trigger": "acronym", "contents": "<acronym>$0</acronym>" },
{ "trigger": "cr-closeTab", "contents": "appAPI.tabs.closeTab(tabInfo.tabId);" },
{ "trigger": "cr-createTab", "contents": "appAPI.tabs.create('${1:http://www.example.com}');" },
{ "trigger": "cr-getAllTabs", "contents": "appAPI.tabs.getAllTabs(function(allTabInfo) {\n // Display the array \n for (var i=0; i<allTabInfo.length; i++) { \n console.log(\n 'tabId: ' + allTabInfo[i].tabId + \n ' tabUrl: ' + allTabInfo[i].tabUrl \n } \n });"}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment