Underscore 1.4 snippets for Sublime Text 2. The snippets follow object-oriented style, i.e. `_(array).map(…)`.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
Underscore-after.sublime-snippet
Underscore-all.sublime-snippet
Underscore-any.sublime-snippet
Underscore-bind.sublime-snippet
Underscore-bindAll.sublime-snippet
Underscore-chain.sublime-snippet
Underscore-clone.sublime-snippet
Underscore-compact.sublime-snippet
Underscore-compose.sublime-snippet
Underscore-contains.sublime-snippet
Underscore-countBy.sublime-snippet
Underscore-debounce.sublime-snippet
Underscore-defaults.sublime-snippet
Underscore-defer.sublime-snippet
Underscore-delay.sublime-snippet
Underscore-difference.sublime-snippet
Underscore-each.sublime-snippet
Underscore-escape.sublime-snippet
Underscore-extend.sublime-snippet
Underscore-filter.sublime-snippet
Underscore-find.sublime-snippet
Underscore-findWhere.sublime-snippet
Underscore-first.sublime-snippet
Underscore-flatten.sublime-snippet
Underscore-functions.sublime-snippet
Underscore-groupBy.sublime-snippet
Underscore-has.sublime-snippet
Underscore-identity.sublime-snippet
Underscore-indexOf.sublime-snippet
Underscore-initial.sublime-snippet
Underscore-intersection.sublime-snippet
Underscore-invert.sublime-snippet
Underscore-invoke.sublime-snippet
Underscore-isArguments.sublime-snippet
Underscore-isArray.sublime-snippet
Underscore-isBoolean.sublime-snippet
Underscore-isDate.sublime-snippet
Underscore-isElement.sublime-snippet
Underscore-isEmpty.sublime-snippet
Underscore-isEqual.sublime-snippet
Underscore-isFinite.sublime-snippet
Underscore-isFunction.sublime-snippet
Underscore-isNaN.sublime-snippet
Underscore-isNull.sublime-snippet
Underscore-isNumber.sublime-snippet
Underscore-isObject.sublime-snippet
Underscore-isRegExp.sublime-snippet
Underscore-isString.sublime-snippet
Underscore-isUndefined.sublime-snippet
Underscore-keys.sublime-snippet
Underscore-last.sublime-snippet
Underscore-lastIndexOf.sublime-snippet
Underscore-map.sublime-snippet
Underscore-max.sublime-snippet
Underscore-memoize.sublime-snippet
Underscore-min.sublime-snippet
Underscore-mixin.sublime-snippet
Underscore-noConflict.sublime-snippet
Underscore-object.sublime-snippet
Underscore-omit.sublime-snippet
Underscore-once.sublime-snippet
Underscore-pairs.sublime-snippet
Underscore-partial.sublime-snippet
Underscore-pick.sublime-snippet
Underscore-pluck.sublime-snippet
Underscore-random.sublime-snippet
Underscore-range.sublime-snippet
Underscore-reduce.sublime-snippet
Underscore-reduceRight.sublime-snippet
Underscore-reject.sublime-snippet
Underscore-rest.sublime-snippet
Underscore-result.sublime-snippet
Underscore-shuffle.sublime-snippet
Underscore-size.sublime-snippet
Underscore-sortBy.sublime-snippet
Underscore-sortedIndex.sublime-snippet
Underscore-tap.sublime-snippet
Underscore-template.sublime-snippet
Underscore-throttle.sublime-snippet
Underscore-times.sublime-snippet
Underscore-toArray.sublime-snippet
Underscore-union.sublime-snippet
Underscore-uniq.sublime-snippet
Underscore-uniqueId.sublime-snippet
Underscore-value.sublime-snippet
Underscore-values.sublime-snippet
Underscore-where.sublime-snippet
Underscore-without.sublime-snippet
Underscore-wrap.sublime-snippet
Underscore-zip.sublime-snippet

README.md

Underscore 1.4.4 snippets for Sublime Text 2

A Sublime Text 2 package containing all of Underscore's methods.

Most snippets follow object-oriented style (_(obj).method(…)); very few don't. Yes, consistency should always win, but then again, _(1).range(10) looks weird -- I personally prefer _.range( 1, 10 ). YMMV.

Invocation

In any JS file, type an underscore character (_), and the selector should pop up. Hit Return to insert the snippet.

All methods are available in the form _[method name], for example _map or _reduceRight.

Installation (using Package Control)

Open ST2's Package Control and look for "Underscore.js Snippets".

Installation (without using Package Control)

Clone this repository into your Packages/ folder, like so:

git clone https://github.com/carlo/sublime-underscorejs-snippets.git

Legal

Underscore (c) DocumentCloud. This repository (c) Carlo Zottmann, municode.de, carlo@municode.de.

This here repository is licensed under the WTFPL v2.

           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                   Version 2, December 2004

Copyright (C) 2004 Sam Hocevar
 14 rue de Plaisance, 75014 Paris, France
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

 0. You just DO WHAT THE FUCK YOU WANT TO.

Acknowledgements

Thanks to Github user Pleasurazy for his 1.4.4-related contributions and bugfixes.