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

Google Closure Library snippets

by closureplease ST2/ST3

Sublime 2 snippets for the Google Closure Library

Labels snippets

Details

  • 2014.01.24.11.02.25
  • github.​com
  • github.​com
  • 6 years ago
  • 34 minutes ago
  • 7 years ago

Installs

  • Total 4K
  • Win 2K
  • OS X 1K
  • Linux 627
Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 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
Windows 0 4 1 0 4 5 1 1 1 3 2 2 1 1 2 0 1 2 3 1 1 3 2 5 0 0 3 3 5 0 0 3 2 4 2 3 1 2 1 0 0 1 1 7 2 4
OS X 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 1 1 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 1 0
Linux 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 2 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 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