ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Google Closure Library snippets

by closureplease ALL

Sublime 2 snippets for the Google Closure Library

Labels snippets

Details

  • 2014.01.24.11.02.25
  • github.​com
  • github.​com
  • 11 years ago
  • 56 minutes ago
  • 12 years ago

Installs

  • Total 5K
  • Win 3K
  • Mac 1K
  • Linux 714
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
Mac 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Google Closure Library Snippets

Sublime plugin with snippets for the Google Closure Library

Install

Install with Package Control. Search for: Google Closure Library Snippets.

Getting started

Just type cl on a javascript document and work with autocomplete.

The snippets are namespaced based on functionality, at most you'll have to type 4 chars and Enter:

snippetCategoryDescription
clareach Arrays goog.array.forEach()
clevlisten Events Event listener (goog.event.listen())
clevdispatch Events Dispatch an event, verbose version
clevcb Events Callback function declaration for events, including block docs
cldispose Generic dispose internal declaration (.disposeInternal = function())
clfn Generic Default function declaration with a logger
clsingle Generic Singleton declaration (goog.addSingletonGetter())
cltypedef Generic A very verbose type definition with weird annotation cases
clenum Generic Enum declaration
clprov Generic goog.provide();
clreq Generic goog.require();
clclassev New filesNew class boilerplate with events inheritance
clobjeach Objects goog.object.forEach()

Contributing

I am using this package as a helper for my workflow with Closure Library, feel free to do the same by submitting snippets that you use in yours.

License

MIT License © Thanasis Polychronakis