diff --git a/EthanBrown.DevTools.Web/EthanBrown.DevTools.Web.nuspec b/EthanBrown.DevTools.Web/EthanBrown.DevTools.Web.nuspec index 7dfa021..86d09bd 100644 --- a/EthanBrown.DevTools.Web/EthanBrown.DevTools.Web.nuspec +++ b/EthanBrown.DevTools.Web/EthanBrown.DevTools.Web.nuspec @@ -32,7 +32,8 @@ - + + diff --git a/EthanBrown.SublimeText2.WebPackages/tools/PackageCache/AngularJS (CoffeeScript)/README.md b/EthanBrown.SublimeText2.WebPackages/tools/PackageCache/AngularJS (CoffeeScript)/README.md index 9acf2b5..6034f4b 100644 --- a/EthanBrown.SublimeText2.WebPackages/tools/PackageCache/AngularJS (CoffeeScript)/README.md +++ b/EthanBrown.SublimeText2.WebPackages/tools/PackageCache/AngularJS (CoffeeScript)/README.md @@ -37,7 +37,7 @@ Note that packages are auto-updating, so as new modifications are made they will ### Manual tweaking of Package Control -This is not recommended, but Package control can be pointed directly at this +This is not recommended, but Package control can be pointed directly at this GitHub repository rather than using the registry. Add to `Packages\User\Package Control.sublime-settings`, under the appropriate keys in the JSON config file. @@ -251,59 +251,59 @@ All HTML based directives are keyed off the `ng`,`TAB` binding. | [select][select] | `ng`,`TAB` | HTML Element | | [textarea][textarea] | `ng`,`TAB` | HTML Element | -[form]: http://docs.angularjs.org/api/ng.directive:form -[input]: http://docs.angularjs.org/api/ng.directive:input -[input-check]: http://docs.angularjs.org/api/ng.directive:input.checkbox -[input-email]: http://docs.angularjs.org/api/ng.directive:input.email -[input-number]: http://docs.angularjs.org/api/ng.directive:input.number -[input-radio]: http://docs.angularjs.org/api/ng.directive:input.radio -[input-text]: http://docs.angularjs.org/api/ng.directive:input.text -[input-url]: http://docs.angularjs.org/api/ng.directive:input.url -[ngApp]: http://docs.angularjs.org/api/ng.directive:ngApp -[ngBind]: http://docs.angularjs.org/api/ng.directive:ngBind -[ngBindHtml]: http://docs.angularjs.org/api/ngSanitize.directive:ngBindHtml -[ngBindHtmlUnsafe]: http://docs.angularjs.org/api/ng.directive:ngBindHtmlUnsafe -[ngBindTemplate]: http://docs.angularjs.org/api/ng.directive:ngBindTemplate -[ngChange]: http://docs.angularjs.org/api/ng.directive:ngChange -[ngChecked]: http://docs.angularjs.org/api/ng.directive:ngChecked -[ngClass]: http://docs.angularjs.org/api/ng.directive:ngClass -[ngClassEven]: http://docs.angularjs.org/api/ng.directive:ngClassEven -[ngClassOdd]: http://docs.angularjs.org/api/ng.directive:ngClassOdd -[ngClick]: http://docs.angularjs.org/api/ng.directive:ngClick -[ngCloak]: http://docs.angularjs.org/api/ng.directive:ngCloak -[ngController]: http://docs.angularjs.org/api/ng.directive:ngController -[ngCsp]: http://docs.angularjs.org/api/ng.directive:ngCsp -[ngDblClick]: http://docs.angularjs.org/api/ng.directive:ngDblClick -[ngDisabled]: http://docs.angularjs.org/api/ng.directive:ngDisabled -[ngForm]: http://docs.angularjs.org/api/ng.directive:ngForm -[ngHide]: http://docs.angularjs.org/api/ng.directive:ngHide -[ngHref]: http://docs.angularjs.org/api/ng.directive:ngHref -[ngInclude]: http://docs.angularjs.org/api/ng.directive:ngInclude -[ngInit]: http://docs.angularjs.org/api/ng.directive:ngInit -[ngList]: http://docs.angularjs.org/api/ng.directive:ngList -[ngModel]: http://docs.angularjs.org/api/ng.directive:ngModel -[ngMousedown]: http://docs.angularjs.org/api/ng.directive:ngMousedown -[ngMouseenter]: http://docs.angularjs.org/api/ng.directive:ngMouseenter -[ngMouseleave]: http://docs.angularjs.org/api/ng.directive:ngMouseleave -[ngMousemove]: http://docs.angularjs.org/api/ng.directive:ngMousemove -[ngMouseover]: http://docs.angularjs.org/api/ng.directive:ngMouseover -[ngMouseup]: http://docs.angularjs.org/api/ng.directive:ngMouseup -[ngMultiple]: http://docs.angularjs.org/api/ng.directive:ngMultiple -[ngNonBindable]: http://docs.angularjs.org/api/ng.directive:ngNonBindable -[ngPluralize]: http://docs.angularjs.org/api/ng.directive:ngPluralize -[ngReadonly]: http://docs.angularjs.org/api/ng.directive:ngReadonly -[ngRepeat]: http://docs.angularjs.org/api/ng.directive:ngRepeat -[ngSelected]: http://docs.angularjs.org/api/ng.directive:ngSelected -[ngShow]: http://docs.angularjs.org/api/ng.directive:ngShow -[ngSrc]: http://docs.angularjs.org/api/ng.directive:ngSrc -[ngStyle]: http://docs.angularjs.org/api/ng.directive:ngStyle -[ngSubmit]: http://docs.angularjs.org/api/ng.directive:ngSubmit -[ngSwitch]: http://docs.angularjs.org/api/ng.directive:ngSwitch -[ngTransclude]: http://docs.angularjs.org/api/ng.directive:ngTransclude -[ngView]: http://docs.angularjs.org/api/ng.directive:ngView -[script]: http://docs.angularjs.org/api/ng.directive:script -[select]: http://docs.angularjs.org/api/ng.directive:select -[textarea]: http://docs.angularjs.org/api/ng.directive:textarea +[form]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:form +[input]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:input +[input-check]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:input.checkbox +[input-email]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:input.email +[input-number]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:input.number +[input-radio]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:input.radio +[input-text]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:input.text +[input-url]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:input.url +[ngApp]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngApp +[ngBind]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngBind +[ngBindHtml]: http://code.angularjs.org/1.1.4/docs/api/ngSanitize.directive:ngBindHtml +[ngBindHtmlUnsafe]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngBindHtmlUnsafe +[ngBindTemplate]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngBindTemplate +[ngChange]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngChange +[ngChecked]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngChecked +[ngClass]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngClass +[ngClassEven]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngClassEven +[ngClassOdd]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngClassOdd +[ngClick]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngClick +[ngCloak]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngCloak +[ngController]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngController +[ngCsp]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngCsp +[ngDblClick]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngDblClick +[ngDisabled]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngDisabled +[ngForm]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngForm +[ngHide]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngHide +[ngHref]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngHref +[ngInclude]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngInclude +[ngInit]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngInit +[ngList]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngList +[ngModel]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel +[ngMousedown]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngMousedown +[ngMouseenter]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngMouseenter +[ngMouseleave]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngMouseleave +[ngMousemove]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngMousemove +[ngMouseover]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngMouseover +[ngMouseup]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngMouseup +[ngMultiple]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngMultiple +[ngNonBindable]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngNonBindable +[ngPluralize]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngPluralize +[ngReadonly]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngReadonly +[ngRepeat]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngRepeat +[ngSelected]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngSelected +[ngShow]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngShow +[ngSrc]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngSrc +[ngStyle]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngStyle +[ngSubmit]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngSubmit +[ngSwitch]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngSwitch +[ngTransclude]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngTransclude +[ngView]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngView +[script]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:script +[select]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:select +[textarea]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:textarea ### Module @@ -321,18 +321,18 @@ All HTML based directives are keyed off the `ng`,`TAB` binding. | [service][m.service] | `mod`,`TAB` | CoffeeScript | | [value][m.value] | `mod`,`TAB` | CoffeeScript | -[module]: http://docs.angularjs.org/api/angular.Module -[m.config]: http://docs.angularjs.org/api/angular.Module#config -[m.constant]: http://docs.angularjs.org/api/angular.Module#constant -[m.controller]: http://docs.angularjs.org/api/angular.Module#controller -[m.directive]: http://docs.angularjs.org/api/angular.Module#directive +[module]: http://code.angularjs.org/1.1.4/docs/api/angular.Module +[m.config]: http://code.angularjs.org/1.1.4/docs/api/angular.Module#config +[m.constant]: http://code.angularjs.org/1.1.4/docs/api/angular.Module#constant +[m.controller]: http://code.angularjs.org/1.1.4/docs/api/angular.Module#controller +[m.directive]: http://code.angularjs.org/1.1.4/docs/api/angular.Module#directive [dir-complete]: http://docs.angularjs.org/guide/directive -[m.factory]: http://docs.angularjs.org/api/angular.Module#factory -[m.filter]: http://docs.angularjs.org/api/angular.Module#filter -[m.provider]: http://docs.angularjs.org/api/angular.Module#provider -[m.run]: http://docs.angularjs.org/api/angular.Module#run -[m.service]: http://docs.angularjs.org/api/angular.Module#service -[m.value]: http://docs.angularjs.org/api/angular.Module#value +[m.factory]: http://code.angularjs.org/1.1.4/docs/api/angular.Module#factory +[m.filter]: http://code.angularjs.org/1.1.4/docs/api/angular.Module#filter +[m.provider]: http://code.angularjs.org/1.1.4/docs/api/angular.Module#provider +[m.run]: http://code.angularjs.org/1.1.4/docs/api/angular.Module#run +[m.service]: http://code.angularjs.org/1.1.4/docs/api/angular.Module#service +[m.value]: http://code.angularjs.org/1.1.4/docs/api/angular.Module#value ### Scope @@ -351,19 +351,19 @@ All HTML based directives are keyed off the `ng`,`TAB` binding. | [$on][$s.$on] | `.$`,`TAB` | CoffeeScript | | [$watch][$s.$watch] | `.$`,`TAB` | CoffeeScript | -[$rootScope]: http://docs.angularjs.org/api/ng.$rootScope -[Scope]: http://docs.angularjs.org/api/ng.$rootScope.Scope -[$s.$apply]: http://docs.angularjs.org/api/ng.$rootScope.Scope#$apply -[$s.$broadcast]: http://docs.angularjs.org/api/ng.$rootScope.Scope#$broadcast -[$s.$destroy]: http://docs.angularjs.org/api/ng.$rootScope.Scope#$destroy -[$s.$digest]: http://docs.angularjs.org/api/ng.$rootScope.Scope#$digest -[$s.$emit]: http://docs.angularjs.org/api/ng.$rootScope.Scope#$emit -[$s.$eval]: http://docs.angularjs.org/api/ng.$rootScope.Scope#$eval -[$s.$evalAsync]: http://docs.angularjs.org/api/ng.$rootScope.Scope#$evalAsync -[$s.$id]: http://docs.angularjs.org/api/ng.$rootScope.Scope#$id -[$s.$new]: http://docs.angularjs.org/api/ng.$rootScope.Scope#$new -[$s.$on]: http://docs.angularjs.org/api/ng.$rootScope.Scope#$on -[$s.$watch]: http://docs.angularjs.org/api/ng.$rootScope.Scope#$watch +[$rootScope]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootScope +[Scope]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootScope.Scope +[$s.$apply]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootScope.Scope#$apply +[$s.$broadcast]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootScope.Scope#$broadcast +[$s.$destroy]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootScope.Scope#$destroy +[$s.$digest]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootScope.Scope#$digest +[$s.$emit]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootScope.Scope#$emit +[$s.$eval]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootScope.Scope#$eval +[$s.$evalAsync]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootScope.Scope#$evalAsync +[$s.$id]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootScope.Scope#$id +[$s.$new]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootScope.Scope#$new +[$s.$on]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootScope.Scope#$on +[$s.$watch]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootScope.Scope#$watch ### Controller @@ -384,20 +384,20 @@ Covers both [FormController][FormController] and [NgModelController][NgModelCont | [$valid][c.$valid] | `.$`,`TAB` | CoffeeScript | | [$invalid][c.$invalid] | `.$`,`TAB` | CoffeeScript | -[FormController]: http://docs.angularjs.org/api/ng.directive:form.FormController -[NgModelController]: http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController -[c.$render]: http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController#$render -[c.$setValidity]: http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController#$setValidity -[c.$setViewValue]: http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController#$setViewValue -[c.$viewValue]: http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController#$viewValue -[c.$modelValue]: http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController#$modelValue -[c.$parsers]: http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController#$parsers -[c.$formatters]: http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController#$formatters -[c.$error]: http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController#$error -[c.$pristine]: http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController#$pristine -[c.$dirty]: http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController#$dirty -[c.$valid]: http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController#$valid -[c.$invalid]: http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController#$invalid +[FormController]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:form.FormController +[NgModelController]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel.NgModelController +[c.$render]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel.NgModelController#$render +[c.$setValidity]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel.NgModelController#$setValidity +[c.$setViewValue]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel.NgModelController#$setViewValue +[c.$viewValue]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel.NgModelController#$viewValue +[c.$modelValue]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel.NgModelController#$modelValue +[c.$parsers]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel.NgModelController#$parsers +[c.$formatters]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel.NgModelController#$formatters +[c.$error]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel.NgModelController#$error +[c.$pristine]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel.NgModelController#$pristine +[c.$dirty]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel.NgModelController#$dirty +[c.$valid]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel.NgModelController#$valid +[c.$invalid]: http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngModel.NgModelController#$invalid ### Resource @@ -410,8 +410,8 @@ Covers both [FormController][FormController] and [NgModelController][NgModelCont | [$remove][$r.$methods] | `.$`,`TAB` | CoffeeScript | | [$save][$r.$methods] | `.$`,`TAB` | CoffeeScript | -[$resource]: http://docs.angularjs.org/api/ngResource.$resource -[$r.$methods]: http://docs.angularjs.org/api/ngResource.$resource#Returns +[$resource]: http://code.angularjs.org/1.1.4/docs/api/ngResource.$resource +[$r.$methods]: http://code.angularjs.org/1.1.4/docs/api/ngResource.$resource#Returns ### Filter @@ -439,17 +439,17 @@ Covers both [FormController][FormController] and [NgModelController][NgModelCont | [uppercase][uppercase] | `$filter`,`TAB` | CoffeeScript | | [uppercase][uppercase] | `fil`,`TAB` | HTML | -[$filter]: http://docs.angularjs.org/api/ng.$filter -[currency]: http://docs.angularjs.org/api/ng.filter:currency -[date]: http://docs.angularjs.org/api/ng.filter:date -[filter]: http://docs.angularjs.org/api/ng.filter:filter -[json]: http://docs.angularjs.org/api/ng.filter:json -[limitTo]: http://docs.angularjs.org/api/ng.filter:limitTo -[linky]: http://docs.angularjs.org/api/ngSanitize.filter:linky -[lowercase]: http://docs.angularjs.org/api/ng.filter:lowercase -[number]: http://docs.angularjs.org/api/ng.filter:number -[orderBy]: http://docs.angularjs.org/api/ng.filter:orderBy -[uppercase]: http://docs.angularjs.org/api/ng.filter:uppercase +[$filter]: http://code.angularjs.org/1.1.4/docs/api/ng.$filter +[currency]: http://code.angularjs.org/1.1.4/docs/api/ng.filter:currency +[date]: http://code.angularjs.org/1.1.4/docs/api/ng.filter:date +[filter]: http://code.angularjs.org/1.1.4/docs/api/ng.filter:filter +[json]: http://code.angularjs.org/1.1.4/docs/api/ng.filter:json +[limitTo]: http://code.angularjs.org/1.1.4/docs/api/ng.filter:limitTo +[linky]: http://code.angularjs.org/1.1.4/docs/api/ngSanitize.filter:linky +[lowercase]: http://code.angularjs.org/1.1.4/docs/api/ng.filter:lowercase +[number]: http://code.angularjs.org/1.1.4/docs/api/ng.filter:number +[orderBy]: http://code.angularjs.org/1.1.4/docs/api/ng.filter:orderBy +[uppercase]: http://code.angularjs.org/1.1.4/docs/api/ng.filter:uppercase ### Global API @@ -481,31 +481,31 @@ Covers both [FormController][FormController] and [NgModelController][NgModelCont | [angular.uppercase][angular.uppercase] | `ng`,`TAB` | CoffeeScript | | [angular.version][angular.version] | `ng`,`TAB` | CoffeeScript | -[angular.bind]: http://docs.angularjs.org/api/angular.bind -[angular.bootstrap]: http://docs.angularjs.org/api/angular.bootstrap -[angular.copy]: http://docs.angularjs.org/api/angular.copy -[angular.element]: http://docs.angularjs.org/api/angular.element -[angular.equals]: http://docs.angularjs.org/api/angular.equals -[angular.extend]: http://docs.angularjs.org/api/angular.extend -[angular.forEach]: http://docs.angularjs.org/api/angular.forEach -[angular.fromJson]: http://docs.angularjs.org/api/angular.fromJson -[angular.identity]: http://docs.angularjs.org/api/angular.identity -[angular.injector]: http://docs.angularjs.org/api/angular.injector -[angular.isArray]: http://docs.angularjs.org/api/angular.isArray -[angular.isDate]: http://docs.angularjs.org/api/angular.isDate -[angular.isDefined]: http://docs.angularjs.org/api/angular.isDefined -[angular.isElement]: http://docs.angularjs.org/api/angular.isElement -[angular.isFunction]: http://docs.angularjs.org/api/angular.isFunction -[angular.isNumber]: http://docs.angularjs.org/api/angular.isNumber -[angular.isObject]: http://docs.angularjs.org/api/angular.isObject -[angular.isString]: http://docs.angularjs.org/api/angular.isString -[angular.isUndefined]: http://docs.angularjs.org/api/angular.isUndefined -[angular.lowercase]: http://docs.angularjs.org/api/angular.lowercase -[angular.module]: http://docs.angularjs.org/api/angular.module -[angular.noop]: http://docs.angularjs.org/api/angular.noop -[angular.toJson]: http://docs.angularjs.org/api/angular.toJson -[angular.uppercase]: http://docs.angularjs.org/api/angular.uppercase -[angular.version]: http://docs.angularjs.org/api/angular.version +[angular.bind]: http://code.angularjs.org/1.1.4/docs/api/angular.bind +[angular.bootstrap]: http://code.angularjs.org/1.1.4/docs/api/angular.bootstrap +[angular.copy]: http://code.angularjs.org/1.1.4/docs/api/angular.copy +[angular.element]: http://code.angularjs.org/1.1.4/docs/api/angular.element +[angular.equals]: http://code.angularjs.org/1.1.4/docs/api/angular.equals +[angular.extend]: http://code.angularjs.org/1.1.4/docs/api/angular.extend +[angular.forEach]: http://code.angularjs.org/1.1.4/docs/api/angular.forEach +[angular.fromJson]: http://code.angularjs.org/1.1.4/docs/api/angular.fromJson +[angular.identity]: http://code.angularjs.org/1.1.4/docs/api/angular.identity +[angular.injector]: http://code.angularjs.org/1.1.4/docs/api/angular.injector +[angular.isArray]: http://code.angularjs.org/1.1.4/docs/api/angular.isArray +[angular.isDate]: http://code.angularjs.org/1.1.4/docs/api/angular.isDate +[angular.isDefined]: http://code.angularjs.org/1.1.4/docs/api/angular.isDefined +[angular.isElement]: http://code.angularjs.org/1.1.4/docs/api/angular.isElement +[angular.isFunction]: http://code.angularjs.org/1.1.4/docs/api/angular.isFunction +[angular.isNumber]: http://code.angularjs.org/1.1.4/docs/api/angular.isNumber +[angular.isObject]: http://code.angularjs.org/1.1.4/docs/api/angular.isObject +[angular.isString]: http://code.angularjs.org/1.1.4/docs/api/angular.isString +[angular.isUndefined]: http://code.angularjs.org/1.1.4/docs/api/angular.isUndefined +[angular.lowercase]: http://code.angularjs.org/1.1.4/docs/api/angular.lowercase +[angular.module]: http://code.angularjs.org/1.1.4/docs/api/angular.module +[angular.noop]: http://code.angularjs.org/1.1.4/docs/api/angular.noop +[angular.toJson]: http://code.angularjs.org/1.1.4/docs/api/angular.toJson +[angular.uppercase]: http://code.angularjs.org/1.1.4/docs/api/angular.uppercase +[angular.version]: http://code.angularjs.org/1.1.4/docs/api/angular.version ### Http @@ -524,17 +524,17 @@ Covers both [FormController][FormController] and [NgModelController][NgModelCont | [.error][$http.Returns] | `.error`,`TAB` | CoffeeScript | | [.success][$http.Returns] | `.success`,`TAB` | CoffeeScript | -[$http]: http://docs.angularjs.org/api/ng.$http -[$http.usage]: http://docs.angularjs.org/api/ng.$http#Usage -[$http.delete]: http://docs.angularjs.org/api/ng.$http#delete -[$http.get]: http://docs.angularjs.org/api/ng.$http#get -[$http.head]: http://docs.angularjs.org/api/ng.$http#head -[$http.jsonp]: http://docs.angularjs.org/api/ng.$http#jsonp -[$http.post]: http://docs.angularjs.org/api/ng.$http#post -[$http.put]: http://docs.angularjs.org/api/ng.$http#put -[$http.defaults]: http://docs.angularjs.org/api/ng.$http#defaults -[$http.pendingRequests]: http://docs.angularjs.org/api/ng.$http#defaults -[$http.Returns]: http://docs.angularjs.org/api/ng.$http#Returns +[$http]: http://code.angularjs.org/1.1.4/docs/api/ng.$http +[$http.usage]: http://code.angularjs.org/1.1.4/docs/api/ng.$http#Usage +[$http.delete]: http://code.angularjs.org/1.1.4/docs/api/ng.$http#delete +[$http.get]: http://code.angularjs.org/1.1.4/docs/api/ng.$http#get +[$http.head]: http://code.angularjs.org/1.1.4/docs/api/ng.$http#head +[$http.jsonp]: http://code.angularjs.org/1.1.4/docs/api/ng.$http#jsonp +[$http.post]: http://code.angularjs.org/1.1.4/docs/api/ng.$http#post +[$http.put]: http://code.angularjs.org/1.1.4/docs/api/ng.$http#put +[$http.defaults]: http://code.angularjs.org/1.1.4/docs/api/ng.$http#defaults +[$http.pendingRequests]: http://code.angularjs.org/1.1.4/docs/api/ng.$http#defaults +[$http.Returns]: http://code.angularjs.org/1.1.4/docs/api/ng.$http#Returns ### HttpBackend @@ -565,27 +565,27 @@ Note that `.expect` and `.when` are designed to chain, so we don't bind to | [whenPOST][$h.whenPOST] | `.when`,`TAB` | CoffeeScript | | [whenPUT][$h.whenPUT] | `.when`,`TAB` | CoffeeScript | -[$httpBackend]: http://docs.angularjs.org/api/ngMock.$httpBackend -[$h.expect]: http://docs.angularjs.org/api/ngMock.$httpBackend#expect -[$h.expectDELETE]: http://docs.angularjs.org/api/ngMock.$httpBackend#expectDELETE -[$h.expectGET]: http://docs.angularjs.org/api/ngMock.$httpBackend#expectGET -[$h.expectHEAD]: http://docs.angularjs.org/api/ngMock.$httpBackend#expectHEAD -[$h.expectJSONP]: http://docs.angularjs.org/api/ngMock.$httpBackend#expectJSONP -[$h.expectPATCH]: http://docs.angularjs.org/api/ngMock.$httpBackend#expectPATCH -[$h.expectPOST]: http://docs.angularjs.org/api/ngMock.$httpBackend#expectPOST -[$h.expectPUT]: http://docs.angularjs.org/api/ngMock.$httpBackend#expectPUT -[$h.flush]: http://docs.angularjs.org/api/ngMock.$httpBackend#flush -[$h.reset]: http://docs.angularjs.org/api/ngMock.$httpBackend#resetExpectations -[$h.verifyEx]: http://docs.angularjs.org/api/ngMock.$httpBackend#verifyNoOutstandingExceptions -[$h.verifyReqs]: http://docs.angularjs.org/api/ngMock.$httpBackend#verifyNoOutstandingRequests -[$h.when]: http://docs.angularjs.org/api/ngMock.$httpBackend#when -[$h.whenDELETE]: http://docs.angularjs.org/api/ngMock.$httpBackend#whenDELETE -[$h.whenGET]: http://docs.angularjs.org/api/ngMock.$httpBackend#whenGET -[$h.whenHEAD]: http://docs.angularjs.org/api/ngMock.$httpBackend#whenHEAD -[$h.whenJSONP]: http://docs.angularjs.org/api/ngMock.$httpBackend#whenJSONP -[$h.whenPATCH]: http://docs.angularjs.org/api/ngMock.$httpBackend#whenPATCH -[$h.whenPOST]: http://docs.angularjs.org/api/ngMock.$httpBackend#whenPOST -[$h.whenPUT]: http://docs.angularjs.org/api/ngMock.$httpBackend#whenPUT +[$httpBackend]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend +[$h.expect]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#expect +[$h.expectDELETE]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#expectDELETE +[$h.expectGET]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#expectGET +[$h.expectHEAD]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#expectHEAD +[$h.expectJSONP]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#expectJSONP +[$h.expectPATCH]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#expectPATCH +[$h.expectPOST]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#expectPOST +[$h.expectPUT]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#expectPUT +[$h.flush]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#flush +[$h.reset]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#resetExpectations +[$h.verifyEx]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#verifyNoOutstandingExceptions +[$h.verifyReqs]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#verifyNoOutstandingRequests +[$h.when]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#when +[$h.whenDELETE]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#whenDELETE +[$h.whenGET]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#whenGET +[$h.whenHEAD]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#whenHEAD +[$h.whenJSONP]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#whenJSONP +[$h.whenPATCH]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#whenPATCH +[$h.whenPOST]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#whenPOST +[$h.whenPUT]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$httpBackend#whenPUT ### Q @@ -597,11 +597,11 @@ Note that `.expect` and `.when` are designed to chain, so we don't bind to | [reject][$q.reject] | `$q.`,`TAB` | CoffeeScript | | [when][$q.when] | `$q.`,`TAB` | CoffeeScript | -[$q]: http://docs.angularjs.org/api/ng.$q -[$q.all]: http://docs.angularjs.org/api/ng.$q#all -[$q.defer]: http://docs.angularjs.org/api/ng.$q#defer -[$q.reject]: http://docs.angularjs.org/api/ng.$q#reject -[$q.when]: http://docs.angularjs.org/api/ng.$q#when +[$q]: http://code.angularjs.org/1.1.4/docs/api/ng.$q +[$q.all]: http://code.angularjs.org/1.1.4/docs/api/ng.$q#all +[$q.defer]: http://code.angularjs.org/1.1.4/docs/api/ng.$q#defer +[$q.reject]: http://code.angularjs.org/1.1.4/docs/api/ng.$q#reject +[$q.when]: http://code.angularjs.org/1.1.4/docs/api/ng.$q#when ### Route @@ -620,18 +620,18 @@ Note that `.expect` and `.when` are designed to chain, so we don't bind to | [when][$rp.when] | `$routeprovider.`,`TAB` | CoffeeScript | | [otherwise][$rp.other] | `.other`,`TAB` | CoffeeScript | -[$route]: http://docs.angularjs.org/api/ng.$route -[$route.current]: http://docs.angularjs.org/api/ng.$route#current -[$route.reload]: http://docs.angularjs.org/api/ng.$route#reload -[$route.routes]: http://docs.angularjs.org/api/ng.$route#routes -[$route.$rce]: http://docs.angularjs.org/api/ng.$route#$routeChangeError -[$route.$rcst]: http://docs.angularjs.org/api/ng.$route#$routeChangeStart -[$route.$rcs]: http://docs.angularjs.org/api/ng.$route#$routeChangeSuccess -[$route.$ru]: http://docs.angularjs.org/api/ng.$route#$routeUpdate -[$routeParams]: http://docs.angularjs.org/api/ng.$routeParams -[$routeProvider]: http://docs.angularjs.org/api/ng.$routeProvider -[$rp.when]: http://docs.angularjs.org/api/ng.$routeProvider#when -[$rp.other]: http://docs.angularjs.org/api/ng.$routeProvider#otherwise +[$route]: http://code.angularjs.org/1.1.4/docs/api/ng.$route +[$route.current]: http://code.angularjs.org/1.1.4/docs/api/ng.$route#current +[$route.reload]: http://code.angularjs.org/1.1.4/docs/api/ng.$route#reload +[$route.routes]: http://code.angularjs.org/1.1.4/docs/api/ng.$route#routes +[$route.$rce]: http://code.angularjs.org/1.1.4/docs/api/ng.$route#$routeChangeError +[$route.$rcst]: http://code.angularjs.org/1.1.4/docs/api/ng.$route#$routeChangeStart +[$route.$rcs]: http://code.angularjs.org/1.1.4/docs/api/ng.$route#$routeChangeSuccess +[$route.$ru]: http://code.angularjs.org/1.1.4/docs/api/ng.$route#$routeUpdate +[$routeParams]: http://code.angularjs.org/1.1.4/docs/api/ng.$routeParams +[$routeProvider]: http://code.angularjs.org/1.1.4/docs/api/ng.$routeProvider +[$rp.when]: http://code.angularjs.org/1.1.4/docs/api/ng.$routeProvider#when +[$rp.other]: http://code.angularjs.org/1.1.4/docs/api/ng.$routeProvider#otherwise ### Cookie @@ -643,11 +643,11 @@ Note that `.expect` and `.when` are designed to chain, so we don't bind to | [put][$c.put] | `$cookiestore.`,`TAB` | CoffeeScript | | [remove][$c.remove] | `$cookiestore.`,`TAB` | CoffeeScript | -[$cookies]: http://docs.angularjs.org/api/ngCookies.$cookies -[$cookieStore]: http://docs.angularjs.org/api/ngCookies.$cookieStore -[$c.get]: http://docs.angularjs.org/api/ngCookies.$cookieStore#get -[$c.put]: http://docs.angularjs.org/api/ngCookies.$cookieStore#put -[$c.remove]: http://docs.angularjs.org/api/ngCookies.$cookieStore#remove +[$cookies]: http://code.angularjs.org/1.1.4/docs/api/ngCookies.$cookies +[$cookieStore]: http://code.angularjs.org/1.1.4/docs/api/ngCookies.$cookieStore +[$c.get]: http://code.angularjs.org/1.1.4/docs/api/ngCookies.$cookieStore#get +[$c.put]: http://code.angularjs.org/1.1.4/docs/api/ngCookies.$cookieStore#put +[$c.remove]: http://code.angularjs.org/1.1.4/docs/api/ngCookies.$cookieStore#remove ### Location @@ -664,16 +664,16 @@ Note that `.expect` and `.when` are designed to chain, so we don't bind to | [search][$l.search] (get & set) | `$location.`,`TAB` | CoffeeScript | | [url][$l.url] (get & set) | `$location.`,`TAB` | CoffeeScript | -[$location]: http://docs.angularjs.org/api/ng.$location -[$l.absUrl]: http://docs.angularjs.org/api/ng.$location#absUrl -[$l.hash]: http://docs.angularjs.org/api/ng.$location#hash -[$l.host]: http://docs.angularjs.org/api/ng.$location#host -[$l.path]: http://docs.angularjs.org/api/ng.$location#path -[$l.port]: http://docs.angularjs.org/api/ng.$location#port -[$l.protocol]: http://docs.angularjs.org/api/ng.$location#protocol -[$l.replace]: http://docs.angularjs.org/api/ng.$location#replace -[$l.search]: http://docs.angularjs.org/api/ng.$location#search -[$l.url]: http://docs.angularjs.org/api/ng.$location#url +[$location]: http://code.angularjs.org/1.1.4/docs/api/ng.$location +[$l.absUrl]: http://code.angularjs.org/1.1.4/docs/api/ng.$location#absUrl +[$l.hash]: http://code.angularjs.org/1.1.4/docs/api/ng.$location#hash +[$l.host]: http://code.angularjs.org/1.1.4/docs/api/ng.$location#host +[$l.path]: http://code.angularjs.org/1.1.4/docs/api/ng.$location#path +[$l.port]: http://code.angularjs.org/1.1.4/docs/api/ng.$location#port +[$l.protocol]: http://code.angularjs.org/1.1.4/docs/api/ng.$location#protocol +[$l.replace]: http://code.angularjs.org/1.1.4/docs/api/ng.$location#replace +[$l.search]: http://code.angularjs.org/1.1.4/docs/api/ng.$location#search +[$l.url]: http://code.angularjs.org/1.1.4/docs/api/ng.$location#url ### Log @@ -685,11 +685,11 @@ Note that `.expect` and `.when` are designed to chain, so we don't bind to | [log][$log.log] | `$log.`,`TAB` | CoffeeScript | | [warn][$log.warn] | `$log.`,`TAB` | CoffeeScript | -[$log]: http://docs.angularjs.org/api/ng.$log -[$log.error]: http://docs.angularjs.org/api/ng.$log#error -[$log.info]: http://docs.angularjs.org/api/ng.$log#info -[$log.log]: http://docs.angularjs.org/api/ng.$log#log -[$log.warn]: http://docs.angularjs.org/api/ng.$log#warn +[$log]: http://code.angularjs.org/1.1.4/docs/api/ng.$log +[$log.error]: http://code.angularjs.org/1.1.4/docs/api/ng.$log#error +[$log.info]: http://code.angularjs.org/1.1.4/docs/api/ng.$log#info +[$log.log]: http://code.angularjs.org/1.1.4/docs/api/ng.$log#log +[$log.warn]: http://code.angularjs.org/1.1.4/docs/api/ng.$log#warn ### Mock @@ -704,14 +704,14 @@ Note that `.expect` and `.when` are designed to chain, so we don't bind to | [$log.logs][$log.logs] | `$log.`,`TAB` | CoffeeScript | | [$timeout.flush][$timeout.flush] | `$timeout.`,`TAB` | CoffeeScript | -[mock.debug]: http://docs.angularjs.org/api/angular.mock.debug -[mock.inject]: http://docs.angularjs.org/api/angular.mock.inject -[mock.module]: http://docs.angularjs.org/api/angular.mock.module -[mock.TzDate]: http://docs.angularjs.org/api/angular.mock.debug -[$log.assertEmpty]: http://docs.angularjs.org/api/ngMock.$log#assertEmpty -[$log.reset]: http://docs.angularjs.org/api/ngMock.$log#reset -[$log.logs]: http://docs.angularjs.org/api/ngMock.$log#logs -[$timeout.flush]: http://docs.angularjs.org/api/ngMock.$timeout#flush +[mock.debug]: http://code.angularjs.org/1.1.4/docs/api/angular.mock.debug +[mock.inject]: http://code.angularjs.org/1.1.4/docs/api/angular.mock.inject +[mock.module]: http://code.angularjs.org/1.1.4/docs/api/angular.mock.module +[mock.TzDate]: http://code.angularjs.org/1.1.4/docs/api/angular.mock.debug +[$log.assertEmpty]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$log#assertEmpty +[$log.reset]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$log#reset +[$log.logs]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$log#logs +[$timeout.flush]: http://code.angularjs.org/1.1.4/docs/api/ngMock.$timeout#flush ### Injector @@ -723,11 +723,11 @@ Note that `.expect` and `.when` are designed to chain, so we don't bind to | [instantiate][$i.instantiate] | `$injector.`,`TAB` | CoffeeScript | | [invoke][$i.invoke] | `$injector.`,`TAB` | CoffeeScript | -[$injector]: http://docs.angularjs.org/api/AUTO.$injector -[$i.annotate]: http://docs.angularjs.org/api/AUTO.$injector#annotate -[$i.get]: http://docs.angularjs.org/api/AUTO.$injector#get -[$i.instantiate]: http://docs.angularjs.org/api/AUTO.$injector#instantiate -[$i.invoke]: http://docs.angularjs.org/api/AUTO.$injector#invoke +[$injector]: http://code.angularjs.org/1.1.4/docs/api/AUTO.$injector +[$i.annotate]: http://code.angularjs.org/1.1.4/docs/api/AUTO.$injector#annotate +[$i.get]: http://code.angularjs.org/1.1.4/docs/api/AUTO.$injector#get +[$i.instantiate]: http://code.angularjs.org/1.1.4/docs/api/AUTO.$injector#instantiate +[$i.invoke]: http://code.angularjs.org/1.1.4/docs/api/AUTO.$injector#invoke ### Interpolate @@ -737,9 +737,9 @@ Note that `.expect` and `.when` are designed to chain, so we don't bind to | [endSymbol][$in.endSymbol] | `$interpolate.`,`TAB` | CoffeeScript | | [startsymbol][$in.startsymbol] | `$interpolate.`,`TAB` | CoffeeScript | -[$interpolate]: http://docs.angularjs.org/api/ng.$interpolate -[$in.endSymbol]: http://docs.angularjs.org/api/ng.$interpolate#endSymbol -[$in.startSymbol]: http://docs.angularjs.org/api/ng.$interpolate#startSymbol +[$interpolate]: http://code.angularjs.org/1.1.4/docs/api/ng.$interpolate +[$in.endSymbol]: http://code.angularjs.org/1.1.4/docs/api/ng.$interpolate#endSymbol +[$in.startSymbol]: http://code.angularjs.org/1.1.4/docs/api/ng.$interpolate#startSymbol ### Provide @@ -753,13 +753,13 @@ Note that `.expect` and `.when` are designed to chain, so we don't bind to | [service][$p.service] | `$provide.`,`TAB` | CoffeeScript | | [value][$p.value] | `$provide.`,`TAB` | CoffeeScript | -[$provide]: http://docs.angularjs.org/api/AUTO.$provide -[$p.constant]: http://docs.angularjs.org/api/AUTO.$provide#constant -[$p.decorator]: http://docs.angularjs.org/api/AUTO.$provide#decorator -[$p.factory]: http://docs.angularjs.org/api/AUTO.$provide#factory -[$p.provider]: http://docs.angularjs.org/api/AUTO.$provide#provider -[$p.service]: http://docs.angularjs.org/api/AUTO.$provide#service -[$p.value]: http://docs.angularjs.org/api/AUTO.$provide#value +[$provide]: http://code.angularjs.org/1.1.4/docs/api/AUTO.$provide +[$p.constant]: http://code.angularjs.org/1.1.4/docs/api/AUTO.$provide#constant +[$p.decorator]: http://code.angularjs.org/1.1.4/docs/api/AUTO.$provide#decorator +[$p.factory]: http://code.angularjs.org/1.1.4/docs/api/AUTO.$provide#factory +[$p.provider]: http://code.angularjs.org/1.1.4/docs/api/AUTO.$provide#provider +[$p.service]: http://code.angularjs.org/1.1.4/docs/api/AUTO.$provide#service +[$p.value]: http://code.angularjs.org/1.1.4/docs/api/AUTO.$provide#value ### Other Services @@ -778,18 +778,18 @@ Note that `.expect` and `.when` are designed to chain, so we don't bind to | [$timeout][$timeout] | `$`,`TAB` | CoffeeScript | | [$window][$window] | `$`,`TAB` | CoffeeScript | -[$anchorScroll]: http://docs.angularjs.org/api/ng.$anchorScroll -[$cacheFactory]: http://docs.angularjs.org/api/ng.$cacheFactory -[$compile]: http://docs.angularjs.org/api/ng.$compile -[$controller]: http://docs.angularjs.org/api/ng.$controller -[$document]: http://docs.angularjs.org/api/ng.$document -[$exceptionHandler]: http://docs.angularjs.org/api/ng.$exceptionHandler -[$locale]: http://docs.angularjs.org/api/ng.$locale -[$parse]: http://docs.angularjs.org/api/ng.$parse -[$rootElement]: http://docs.angularjs.org/api/ng.$rootElement -[$templateCache]: http://docs.angularjs.org/api/ng.$templateCache -[$timeout]: http://docs.angularjs.org/api/ng.$timeout -[$window]: http://docs.angularjs.org/api/ng.$window +[$anchorScroll]: http://code.angularjs.org/1.1.4/docs/api/ng.$anchorScroll +[$cacheFactory]: http://code.angularjs.org/1.1.4/docs/api/ng.$cacheFactory +[$compile]: http://code.angularjs.org/1.1.4/docs/api/ng.$compile +[$controller]: http://code.angularjs.org/1.1.4/docs/api/ng.$controller +[$document]: http://code.angularjs.org/1.1.4/docs/api/ng.$document +[$exceptionHandler]: http://code.angularjs.org/1.1.4/docs/api/ng.$exceptionHandler +[$locale]: http://code.angularjs.org/1.1.4/docs/api/ng.$locale +[$parse]: http://code.angularjs.org/1.1.4/docs/api/ng.$parse +[$rootElement]: http://code.angularjs.org/1.1.4/docs/api/ng.$rootElement +[$templateCache]: http://code.angularjs.org/1.1.4/docs/api/ng.$templateCache +[$timeout]: http://code.angularjs.org/1.1.4/docs/api/ng.$timeout +[$window]: http://code.angularjs.org/1.1.4/docs/api/ng.$window ## Future Improvements diff --git a/Posh-SetConsoleIcon/vscommand.ico b/Posh-SetConsoleIcon/vscommand.ico new file mode 100644 index 0000000..a69bca9 Binary files /dev/null and b/Posh-SetConsoleIcon/vscommand.ico differ diff --git a/Posh-SetConsoleIcon/vspowershell.ico b/Posh-SetConsoleIcon/vspowershell.ico new file mode 100644 index 0000000..3f976f9 Binary files /dev/null and b/Posh-SetConsoleIcon/vspowershell.ico differ diff --git a/Sublime/Antiki/.gitignore b/Sublime/Antiki/.gitignore new file mode 100644 index 0000000..3c04c2e --- /dev/null +++ b/Sublime/Antiki/.gitignore @@ -0,0 +1,3 @@ +*.pyc +.DS_Store +Antiki.sublime-settings diff --git a/Sublime/Antiki/Default (OSX).sublime-keymap b/Sublime/Antiki/Default (OSX).sublime-keymap new file mode 100644 index 0000000..db5aa96 --- /dev/null +++ b/Sublime/Antiki/Default (OSX).sublime-keymap @@ -0,0 +1,3 @@ +[ + {"keys": ["super+enter"], "command": "antiki"} +] diff --git a/Sublime/Antiki/Default.sublime-commands b/Sublime/Antiki/Default.sublime-commands new file mode 100644 index 0000000..4fd3774 --- /dev/null +++ b/Sublime/Antiki/Default.sublime-commands @@ -0,0 +1,3 @@ +[ + {"caption" : "Antiki at Cursor", "command" : "antiki"} +] \ No newline at end of file diff --git a/Sublime/Antiki/Default.sublime-keymap b/Sublime/Antiki/Default.sublime-keymap new file mode 100644 index 0000000..3ccdb5d --- /dev/null +++ b/Sublime/Antiki/Default.sublime-keymap @@ -0,0 +1,3 @@ +[ + {"keys": ["ctrl+enter"], "command": "antiki"} +] diff --git a/Sublime/Antiki/README.md b/Sublime/Antiki/README.md new file mode 100644 index 0000000..024496c --- /dev/null +++ b/Sublime/Antiki/README.md @@ -0,0 +1,44 @@ +Antiki -- a Xiki Clone for Sublime Text 2 +========================================= + +Antiki implements a tiny subset of [Xiki][0] for [Sublime Text 2][2]. It is intended to be more portable and predictable than sophisticated combination of Xiki and @lunixboch's [SublimeXiki][1], while implementing the essential feature of executing shell commands and replacing them with output. + +Antiki considers any line starting with `$` after zero or more tabs or spaces to be a possible command for execution. Placing your cursor on a command and pressing either "Command+Enter" or "Control-Enter" will cause Antiki to pass the command to your shell prompt, execute it, and replace a number of subquent lines with the output. Antiki will replace any lines with more indent than the command's indent, which effectively allows you to repeately run a command by returning your cursor to the original position and hitting "Command+Enter" again. + +This makes Antiki a great tool for writing documentation, examples and working through demos. + +## Example 1: + + $ redis-cli info | head + redis_version:2.4.17 + redis_git_sha1:00000000 + redis_git_dirty:0 + arch_bits:64 + multiplexing_api:kqueue + gcc_version:4.2.1 + process_id:7818 + run_id:ac64457c11931712a94ef36a9547e624893755d1 + uptime_in_seconds:51 + uptime_in_days:0 + +## Features: + +Antiki's insistence on being stupid and simple is its greatest advantage compared to similar implementations, making it portable, maintainable and understandable. + + - Can execute shell commands in any buffer, not just Xiki buffers. + - Does not require anything beyond Sublime Text itself, works out of the box in Windows and OSX. + - Is much more predictable than [Xiki][0] or [SublimeXiki][1], since it does not try to outsmart Sublime Text. + - Passes all commands through shell, ensuring features like piping to [JQ][3] or `grep` are easily available. + +## Limitations: + +Antiki does not provide [Xiki][0] menus or use Xiki helpers. It also does not support continuously updating output, and will hang until a command exits or ten seconds have passed -- for these features, the much more powerful [SublimeXiki][1] is recommended. + +## Contributors: + + - @efi -- bug report and fix for windows output decoding + +[0]: http://xiki.org +[1]: https://github.com/lunixbochs/SublimeXiki +[2]: http://www.sublimetext.com +[3]: http://stedolan.github.com/jq/ diff --git a/Sublime/Antiki/antiki.JSON-tmLanguage b/Sublime/Antiki/antiki.JSON-tmLanguage new file mode 100644 index 0000000..6ed8ad8 --- /dev/null +++ b/Sublime/Antiki/antiki.JSON-tmLanguage @@ -0,0 +1,8 @@ +{ "name": "Antiki", + "scopeName": "source.antiki", + "fileTypes": ["anti"], + "patterns": [{"name" : "keyword", "match": "^[ \t]*[$](.*)$"}, + {"name" : "markup.quote", "match" : "^[ \t]* ([^$].*)"}, + {"name" : "markup.heading", "match" : "^[ \t]*(#.*)$" }], + "uuid": "b92bb294-089b-43ea-b5da-45b5dcc9340a" +} \ No newline at end of file diff --git a/Sublime/Antiki/antiki.py b/Sublime/Antiki/antiki.py new file mode 100644 index 0000000..b1d03fb --- /dev/null +++ b/Sublime/Antiki/antiki.py @@ -0,0 +1,106 @@ +import sublime, sublime_plugin, re, subprocess, time, os, os.path + +class AntikiCommand(sublime_plugin.TextCommand): + def run(self, edit): + antiki(self.view, edit) + +def antiki(view, edit): + if view.is_read_only(): return + + base = view.file_name() + if base is not None: base = os.path.dirname(base) + cfg = sublime.load_settings("Antiki.sublime-settings") + env = build_env(cfg, base=base) + cwd = expand(cfg.get('cwd', '.'), env) + enc = cfg.get('encoding', 'utf-8') + + sels = view.sel() + end = None + + for sel in sels: + # ensure that there is at least one following line. + if sel.end() == view.size(): + view.insert(edit, view.size(), '\n') + + row, _ = view.rowcol(sel.b) + head, op, cmd = resolve_head(view, row) + if cmd is None: continue + indent = head + ' ' * len(op) + end = resolve_body(view, row+1, indent) + + out = head + op + cmd + '\n' + out = out + '\n'.join( + indent + line.decode(enc, 'ignore').rstrip() for line in perform_cmd(env, cwd, cmd) + ) + '\n' + + end = replace_lines(view, edit, row, end-row, out) + + if end is None: return # don't play with the selection.. + end = view.line(end.b) + view.sel().clear() + eol = end.end() + if end.empty(): + view.insert(edit, eol, head) + eol += len(head) + view.sel().add(sublime.Region(eol,eol)) + +def build_env(cfg, base=None): + env = os.environ.copy() + env['BASE'] = str(base or env.get("HOME") or '.') + mod = cfg.get('env', {}) + for key in mod: + env[key] = str(expand(mod[key], env)) + return env + +''' example: +$ echo $BASE + /Users/scott/Library/Application Support/Sublime Text 2/Packages/Antiki +''' + +def expand(val, env): + return val.format(**env) + +def perform_cmd(env, cwd, cmd): + args = cmd + pipe = subprocess.Popen( + args, stdout = subprocess.PIPE, stderr = subprocess.STDOUT, shell=True, env=env, cwd=cwd + ) + ticks = 0 + while ticks < 1000: + ticks += 1 + time.sleep(.01) + if pipe.poll() is not None: + return pipe.stdout.readlines() + pipe.kill() + return pipe.stdout.readlines() + +def replace_lines(view, edit, dest_row, dest_ct, src): + dest = sublime.Region( + view.text_point(dest_row,0), + view.text_point(dest_row+dest_ct,0) + ) + + view.replace(edit, dest, src) + end = view.text_point(dest_row,0) + len(src) + return sublime.Region(end,end) + +rx_antiki = re.compile('^([ \t]*)([$] +)(.*)$') + +def resolve_head(view, row): + line = get_line(view, row) + m = rx_antiki.match(line) + if m: return m.groups() + return None, None, None + +def resolve_body(view, row, indent): + while True: + line = get_line(view, row) + if not line: return row + if not line.startswith(indent): return row + row += 1 + +def get_line(view, row=0): + point = view.text_point(row, 0) + if row < 0: return None + line = view.line(point) + return view.substr(line).strip('\r\n') diff --git a/Sublime/Antiki/antiki.tmLanguage b/Sublime/Antiki/antiki.tmLanguage new file mode 100644 index 0000000..9f52b78 --- /dev/null +++ b/Sublime/Antiki/antiki.tmLanguage @@ -0,0 +1,37 @@ + + + + + fileTypes + + anti + + name + Antiki + patterns + + + match + ^[ ]*[$](.*)$ + name + keyword + + + match + ^[ ]* ([^$].*) + name + markup.quote + + + match + ^[ ]*(#.*)$ + name + markup.heading + + + scopeName + source.antiki + uuid + b92bb294-089b-43ea-b5da-45b5dcc9340a + + diff --git a/Sublime/Antiki/package-metadata.json b/Sublime/Antiki/package-metadata.json new file mode 100644 index 0000000..6aebb16 --- /dev/null +++ b/Sublime/Antiki/package-metadata.json @@ -0,0 +1 @@ +{"url": "https://github.com/swdunlop/antiki", "version": "2013.02.23.12.42.25", "description": "A Xiki Clone for Sublime Text 2"} \ No newline at end of file diff --git a/Sublime/PowerShell/.gitignore b/Sublime/PowerShell/.gitignore new file mode 100644 index 0000000..336f2e6 --- /dev/null +++ b/Sublime/PowerShell/.gitignore @@ -0,0 +1,3 @@ +*.pyc +*.cache +*.sublime-project diff --git a/Sublime/PowerShell/.hgignore b/Sublime/PowerShell/.hgignore new file mode 100644 index 0000000..93de221 --- /dev/null +++ b/Sublime/PowerShell/.hgignore @@ -0,0 +1,16 @@ +syntax: glob + +dist/ + +*.hgignore +*.hgtags + +*.pyc + +*.cache +*.sublime-project +*.sublime-workspace + +MANIFEST + +_.txt diff --git a/Sublime/PowerShell/LICENSE.txt b/Sublime/PowerShell/LICENSE.txt new file mode 100644 index 0000000..b77e31e --- /dev/null +++ b/Sublime/PowerShell/LICENSE.txt @@ -0,0 +1,7 @@ +Copyright (c) 2011 Guillermo López-Anglada + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Sublime/PowerShell/Snippets/(beg) scriptblock begin clause.sublime-snippet b/Sublime/PowerShell/Snippets/(beg) scriptblock begin clause.sublime-snippet new file mode 100644 index 0000000..6208fdf --- /dev/null +++ b/Sublime/PowerShell/Snippets/(beg) scriptblock begin clause.sublime-snippet @@ -0,0 +1,9 @@ + + + + + beg + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(catch) catch {...}.sublime-snippet b/Sublime/PowerShell/Snippets/(catch) catch {...}.sublime-snippet new file mode 100644 index 0000000..54e3545 --- /dev/null +++ b/Sublime/PowerShell/Snippets/(catch) catch {...}.sublime-snippet @@ -0,0 +1,7 @@ + + + catch + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(comm) comment block.sublime-snippet b/Sublime/PowerShell/Snippets/(comm) comment block.sublime-snippet new file mode 100644 index 0000000..c050c9f --- /dev/null +++ b/Sublime/PowerShell/Snippets/(comm) comment block.sublime-snippet @@ -0,0 +1,12 @@ + + + ]]> + + comm + + source.powershell + + Comment block + diff --git a/Sublime/PowerShell/Snippets/(elif) elseif {...}.sublime-snippet b/Sublime/PowerShell/Snippets/(elif) elseif {...}.sublime-snippet new file mode 100644 index 0000000..1063fb0 --- /dev/null +++ b/Sublime/PowerShell/Snippets/(elif) elseif {...}.sublime-snippet @@ -0,0 +1,10 @@ + + + + + elif + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(elifi) elseif in-line.sublime-snippet b/Sublime/PowerShell/Snippets/(elifi) elseif in-line.sublime-snippet new file mode 100644 index 0000000..f23af36 --- /dev/null +++ b/Sublime/PowerShell/Snippets/(elifi) elseif in-line.sublime-snippet @@ -0,0 +1,8 @@ + + + + + elifi + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(else) else {...}.sublime-snippet b/Sublime/PowerShell/Snippets/(else) else {...}.sublime-snippet new file mode 100644 index 0000000..c86a1be --- /dev/null +++ b/Sublime/PowerShell/Snippets/(else) else {...}.sublime-snippet @@ -0,0 +1,10 @@ + + + + + else + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(elsei) else in-line.sublime-snippet b/Sublime/PowerShell/Snippets/(elsei) else in-line.sublime-snippet new file mode 100644 index 0000000..2082cfe --- /dev/null +++ b/Sublime/PowerShell/Snippets/(elsei) else in-line.sublime-snippet @@ -0,0 +1,8 @@ + + + + + elsei + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(end) scriptblock end clause.sublime-snippet b/Sublime/PowerShell/Snippets/(end) scriptblock end clause.sublime-snippet new file mode 100644 index 0000000..d024577 --- /dev/null +++ b/Sublime/PowerShell/Snippets/(end) scriptblock end clause.sublime-snippet @@ -0,0 +1,9 @@ + + + + + end + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(fil) new filter.sublime-snippet b/Sublime/PowerShell/Snippets/(fil) new filter.sublime-snippet new file mode 100644 index 0000000..ead8026 --- /dev/null +++ b/Sublime/PowerShell/Snippets/(fil) new filter.sublime-snippet @@ -0,0 +1,10 @@ + + + + + fil + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(fin) finally {...}.sublime-snippet b/Sublime/PowerShell/Snippets/(fin) finally {...}.sublime-snippet new file mode 100644 index 0000000..f249dbb --- /dev/null +++ b/Sublime/PowerShell/Snippets/(fin) finally {...}.sublime-snippet @@ -0,0 +1,7 @@ + + + fin + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(fun) new function.sublime-snippet b/Sublime/PowerShell/Snippets/(fun) new function.sublime-snippet new file mode 100644 index 0000000..35772d4 --- /dev/null +++ b/Sublime/PowerShell/Snippets/(fun) new function.sublime-snippet @@ -0,0 +1,10 @@ + + + + + fun + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(here) heredoc string (single quoted).sublime-snippet b/Sublime/PowerShell/Snippets/(here) heredoc string (single quoted).sublime-snippet new file mode 100644 index 0000000..9e23ead --- /dev/null +++ b/Sublime/PowerShell/Snippets/(here) heredoc string (single quoted).sublime-snippet @@ -0,0 +1,10 @@ + + + + + here + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(hhere) heredoc string (double quoted).sublime-snippet b/Sublime/PowerShell/Snippets/(hhere) heredoc string (double quoted).sublime-snippet new file mode 100644 index 0000000..05dba70 --- /dev/null +++ b/Sublime/PowerShell/Snippets/(hhere) heredoc string (double quoted).sublime-snippet @@ -0,0 +1,10 @@ + + + + + hhere + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(if) if {...}.sublime-snippet b/Sublime/PowerShell/Snippets/(if) if {...}.sublime-snippet new file mode 100644 index 0000000..e36bd59 --- /dev/null +++ b/Sublime/PowerShell/Snippets/(if) if {...}.sublime-snippet @@ -0,0 +1,10 @@ + + + + + if + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(ifelse) if {...} else {...}.sublime-snippet b/Sublime/PowerShell/Snippets/(ifelse) if {...} else {...}.sublime-snippet new file mode 100644 index 0000000..b93ce9e --- /dev/null +++ b/Sublime/PowerShell/Snippets/(ifelse) if {...} else {...}.sublime-snippet @@ -0,0 +1,13 @@ + + + + + ifelse + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(ifi) if in-line.sublime-snippet b/Sublime/PowerShell/Snippets/(ifi) if in-line.sublime-snippet new file mode 100644 index 0000000..a502445 --- /dev/null +++ b/Sublime/PowerShell/Snippets/(ifi) if in-line.sublime-snippet @@ -0,0 +1,8 @@ + + + + + ifi + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(mydocs) get path to My Documents.sublime-snippet b/Sublime/PowerShell/Snippets/(mydocs) get path to My Documents.sublime-snippet new file mode 100644 index 0000000..136ec39 --- /dev/null +++ b/Sublime/PowerShell/Snippets/(mydocs) get path to My Documents.sublime-snippet @@ -0,0 +1,8 @@ + + + + + mydocs + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(proc) scriptblock process clause.sublime-snippet b/Sublime/PowerShell/Snippets/(proc) scriptblock process clause.sublime-snippet new file mode 100644 index 0000000..7d170bf --- /dev/null +++ b/Sublime/PowerShell/Snippets/(proc) scriptblock process clause.sublime-snippet @@ -0,0 +1,9 @@ + + + + + proc + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(sub) $(...) complex subexpression.sublime-snippet b/Sublime/PowerShell/Snippets/(sub) $(...) complex subexpression.sublime-snippet new file mode 100644 index 0000000..edd7a88 --- /dev/null +++ b/Sublime/PowerShell/Snippets/(sub) $(...) complex subexpression.sublime-snippet @@ -0,0 +1,8 @@ + + + + + sub + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(tmp) Create Temp File.sublime-snippet b/Sublime/PowerShell/Snippets/(tmp) Create Temp File.sublime-snippet new file mode 100644 index 0000000..221965f --- /dev/null +++ b/Sublime/PowerShell/Snippets/(tmp) Create Temp File.sublime-snippet @@ -0,0 +1,9 @@ + + + + + tmp + + source.powershell + diff --git a/Sublime/PowerShell/Snippets/(try) try {...}.sublime-snippet b/Sublime/PowerShell/Snippets/(try) try {...}.sublime-snippet new file mode 100644 index 0000000..2df3241 --- /dev/null +++ b/Sublime/PowerShell/Snippets/(try) try {...}.sublime-snippet @@ -0,0 +1,7 @@ + + + try + source.powershell + diff --git a/Sublime/PowerShell/Snippets/Heredoc single quote for real.sublime-snippet b/Sublime/PowerShell/Snippets/Heredoc single quote for real.sublime-snippet new file mode 100644 index 0000000..f566acd --- /dev/null +++ b/Sublime/PowerShell/Snippets/Heredoc single quote for real.sublime-snippet @@ -0,0 +1,7 @@ + + + hered + source.powershell + diff --git a/Sublime/PowerShell/Snippets/Heredoc single quote.sublime-snippet b/Sublime/PowerShell/Snippets/Heredoc single quote.sublime-snippet new file mode 100644 index 0000000..cecf07b --- /dev/null +++ b/Sublime/PowerShell/Snippets/Heredoc single quote.sublime-snippet @@ -0,0 +1,7 @@ + + + heredd + source.powershell + diff --git a/Sublime/PowerShell/Snippets/Path to Current Module.sublime-snippet b/Sublime/PowerShell/Snippets/Path to Current Module.sublime-snippet new file mode 100644 index 0000000..7ea449a --- /dev/null +++ b/Sublime/PowerShell/Snippets/Path to Current Module.sublime-snippet @@ -0,0 +1,5 @@ + + + thisdir + source.powershell + diff --git a/Sublime/PowerShell/Snippets/Powershell.sublime-completions b/Sublime/PowerShell/Snippets/Powershell.sublime-completions new file mode 100644 index 0000000..b59e5c0 --- /dev/null +++ b/Sublime/PowerShell/Snippets/Powershell.sublime-completions @@ -0,0 +1,17 @@ +{ + "scope": "source.powershell", + + "completions": [ + { "trigger": "dict", "contents": "@{$1$0}" }, + { "trigger": "arr", "contents": "@($0)" }, + { "trigger": "req", "contents": "#requires -$0" }, + { "trigger": "reqp", "contents": "#requires -pssnapin $0" }, + { "trigger": "reqv", "contents": "#requires -version ${0:2}" }, + { "trigger": "void", "contents": "[void] ($1)$0" }, + { "trigger": "sb", "contents": "\\${$1}$0" }, + { "trigger": "wd", "contents": "write-debug -message \"$1\"$0" }, + { "trigger": "wh", "contents": "write-host \"$1\"" }, + { "trigger": "ww", "contents": "write-warning $0" }, + { "trigger": "param", "contents": "param(\\$${1:paramName})" } + ] +} diff --git a/Sublime/PowerShell/Snippets/Set PSDebug Step.sublime-snippet b/Sublime/PowerShell/Snippets/Set PSDebug Step.sublime-snippet new file mode 100644 index 0000000..7ca96ff --- /dev/null +++ b/Sublime/PowerShell/Snippets/Set PSDebug Step.sublime-snippet @@ -0,0 +1,5 @@ + + + sd + source.powershell + \ No newline at end of file diff --git a/Sublime/PowerShell/Support/Comments.tmPreferences b/Sublime/PowerShell/Support/Comments.tmPreferences new file mode 100644 index 0000000..bd7b604 --- /dev/null +++ b/Sublime/PowerShell/Support/Comments.tmPreferences @@ -0,0 +1,42 @@ + + + + + name + Comments + scope + source.powershell + settings + + shellVariables + + + name + TM_COMMENT_START + value + # + + + name + TM_COMMENT_START_2 + value + <# + + + name + TM_COMMENT_END_2 + value + #> + + + name + TM_COMMENT_DISABLE_INDENT_2 + value + yes + + + + uuid + 06532840-4879-11df-9879-0800200c9a66 + + diff --git a/Sublime/PowerShell/Support/Powershell.sublime-build b/Sublime/PowerShell/Support/Powershell.sublime-build new file mode 100644 index 0000000..e114c94 --- /dev/null +++ b/Sublime/PowerShell/Support/Powershell.sublime-build @@ -0,0 +1,4 @@ +{ + "cmd": ["powershell.exe", "-noprofile", "-file", "$file"], + "selector": "source.powershell" +} diff --git a/Sublime/PowerShell/Support/PowershellSyntax.JSON-tmLanguage b/Sublime/PowerShell/Support/PowershellSyntax.JSON-tmLanguage new file mode 100644 index 0000000..b6abbdd --- /dev/null +++ b/Sublime/PowerShell/Support/PowershellSyntax.JSON-tmLanguage @@ -0,0 +1,392 @@ +{ + "fileTypes": ["ps1", "psm1", "psd1"], + "name": "Powershell v2", + "patterns": [ + { + "begin": "<#", + "beginCaptures": { + "0": { + "name": "punctuation.start.definition.comment.block.powershell" + } + }, + "end": "#>", + "endCaptures": { + "0": { + "name": "punctuation.end.definition.comment.block.powershell" + } + }, + "name": "comment.block.powershell", + "patterns": [ + { + "include": "#commentEmbeddedDocs" + } + ] + }, + { + "begin": "(?&1|>>|>|<<|<|>|>\\||2>|2>>|1>>", + "name": "keyword.operator.redirection.powershell" + }, + { + "match": "\\|{2}|&{2}|;", + "name": "keyword.other.statement-separator.powershell" + }, + { + "match": "&|(? + + + + fileTypes + + ps1 + psm1 + psd1 + + name + Powershell v2 + patterns + + + begin + <# + beginCaptures + + 0 + + name + punctuation.start.definition.comment.block.powershell + + + end + #> + endCaptures + + 0 + + name + punctuation.end.definition.comment.block.powershell + + + name + comment.block.powershell + patterns + + + include + #commentEmbeddedDocs + + + + + begin + (?<![\\-])# + end + $ + name + comment.line.powershell + patterns + + + include + #commentEmbeddedDocs + + + + + include + #variable + + + include + #scriptblock + + + begin + (?<!(?<!`)")" + end + "(?!") + name + string.quoted.double.powershell + patterns + + + include + #variable + + + include + #doubleQuotedStringEscapes + + + include + #interpolation + + + match + `\s*$ + name + keyword.other.powershell + + + + + comment + Needed to parse stuff correctly in 'argument mode'. (See about_parsing.) + include + #doubleQuotedStringEscapes + + + begin + (?<!')' + end + '(?!') + name + string.quoted.single.powershell + patterns + + + match + '' + name + constant.character.escape.powershell + + + + + begin + @"$ + end + ^"@ + name + string.quoted.double.heredoc.powershell + patterns + + + include + #interpolation + + + + + begin + @\( + captures + + 0 + + name + keyword.other.powershell + + + end + \) + name + meta.group.array-expression.powershell + patterns + + + include + $self + + + + + begin + \$\( + captures + + 0 + + name + keyword.other.powershell + + + comment + TODO: move to repo; make recursive. + end + \) + name + meta.group.complex.subexpression.powershell + patterns + + + include + $self + + + + + begin + @'$ + end + ^'@$ + name + string.quoted.double.heredoc.powershell + + + include + #numericConstant + + + match + -([lg][te]|[ci]?(eq|ne)) + name + keyword.operator.logical.powershell + + + include + #PSDefaults + + + match + (?i:[a-z][a-z0-9]+-[a-z][a-z0-9]+) + name + support.function.powershell + + + match + \b(?i:if|else|elseif|switch|while|default|try|finally|catch|for|do|until|break|continue|foreach|return|filter|in|trap|throw|param|begin|process|end|function|global|local|private|script|contained)\b + name + keyword.control.powershell + + + match + -(?i:(?:[ic]?eq|ne|[gl][te]|(?:not)?(?:like|match|contains)|replace)|is(?:not)?|as|and|or|band|bor|not|f)\b + name + keyword.operator.comparison.powershell + + + match + -(?i:and|or|not)|! + name + keyword.operator.logical.powershell + + + match + -(?i:f|band|bor|-bnot)\b + name + keyword.operator.bitwise.powershell + + + match + -f\b + name + keyword.operator.string-format.powershell + + + match + [+%*/-]?=|[+/*%-] + name + keyword.operator.assignment.powershell + + + match + 2>&1|>>|>|<<|<|>|>\||2>|2>>|1>> + name + keyword.operator.redirection.powershell + + + match + \|{2}|&{2}|; + name + keyword.other.statement-separator.powershell + + + match + &|(?<!\w)\.(?= )|`|,|\| + name + keyword.operator.other.powershell + + + repository + + PSDefaults + + comment + Default commandlets in Powershell v2 + match + Disconnect-(WSMan)|Exit-(PSSession)|Copy-(Item|ItemProperty)|Resolve-(Path)|Group-(Object)|Remove-(Computer|Event|EventLog|Item|ItemProperty|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|Variable|WmiObject|WSManInstance)|Unregister-(Event|PSSessionConfiguration)|Tee-(Object)|Pop-(Location)|Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item|ItemProperty|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance|WSManInstance|WSManQuickConfig)|Format-(Custom|List|Table|Wide)|Invoke-(Command|Expression|History|Item|WmiMethod|WSManAction)|Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)|Update-(FormatData|List|TypeData)|Sort-(Object)|Measure-(Command|Object)|ForEach-(Object)|Connect-(WSMan)|Suspend-(Service)|ConvertFrom-(Csv|SecureString|StringData)|Where-(Object)|Rename-(Item|ItemProperty)|Convert-(Path)|Select-(Object|String|Xml)|Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)|Stop-(Computer|Job|Process|Service|Transcript)|New-(Alias|Event|EventLog|Item|ItemProperty|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionOption|Service|TimeSpan|Variable|WebServiceProxy|WSManInstance|WSManSessionOption)|Resume-(Service)|Show-(EventLog)|Out-(Default|File|GridView|Host|Null|Printer|String)|Undo-(Transaction)|Trace-(Command)|Clear-(Content|EventLog|History|Item|ItemProperty|Variable)|Push-(Location)|Split-(Path)|Disable-(ComputerRestore|PSBreakpoint|PSSessionConfiguration|WSManCredSSP)|Reset-(ComputerMachinePassword)|Restore-(Computer)|ConvertTo-(Csv|Html|SecureString|Xml)|Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration|WSManCredSSP)|Join-(Path)|Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)|Compare-(Object)|Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|UICulture|Unique|Variable|WinEvent|WmiObject|WSManCredSSP|WSManInstance)|Receive-(Job)|Move-(Item|ItemProperty)|Add-(Computer|Content|History|Member|PSSnapin|Type)|Wait-(Event|Job|Process)|Send-(MailMessage)|Read-(Host)|Complete-(Transaction)|Checkpoint-(Computer)|Debug-(Process)|Use-(Transaction)|Restart-(Computer|Service)|Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)|Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|WSMan)|Start-(Job|Process|Service|Sleep|Transaction|Transcript)|Limit-(EventLog)|Enter-(PSSession) + name + support.function.builtin.powershell + + commentEmbeddedDocs + + patterns + + + captures + + 1 + + name + constant.string.documentation.powershell + + 2 + + name + keyword.operator.documentation.powershell + + + match + (?i:\s*(\.)(SYNOPSIS|DESCRIPTION|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|FUNCTIONALITY)) + name + comment.documentation.embedded.powershell + + + captures + + 1 + + name + constant.string.documentation.powershell + + 2 + + name + keyword.operator.documentation.powershell + + 3 + + name + keyword.operator.documentation.powershell + + + match + (?i:\s*(\.)(PARAMETER|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP)\s+([a-z0-9-_]+)) + name + comment.documentation.embedded.powershell + + + + doubleQuotedStringEscapes + + patterns + + + match + `[0abnfrvt"'$`] + name + constant.character.escape.powershell + + + match + "" + name + constant.character.escape.powershell + + + + interpolatedStringContent + + begin + \( + beginCaptures + + 0 + + name + keyword.other.powershell + + + contentName + interpolated.simple.source.powershell + end + \) + endCaptures + + 0 + + name + keyword.other.powershell + + + patterns + + + include + $self + + + include + #interpolation + + + include + #interpolatedStringContent + + + + interpolation + + begin + (\$)\( + beginCaptures + + 0 + + name + keyword.other.powershell + + + contentName + interpolated.complex.source.powershell + end + \) + endCaptures + + 0 + + name + keyword.other.powershell + + + patterns + + + include + $self + + + include + #interpolation + + + include + #interpolatedStringContent + + + + numericConstant + + patterns + + + captures + + 1 + + name + support.constant.powershell + + 2 + + name + keyword.operator.math.powershell + + 3 + + name + support.constant.powershell + + 4 + + name + keyword.other.powershell + + + match + (?i:\d+(E)(\+|\-)\d+(d)?(mb|kb|gb)?) + name + constant.numeric.scientific.powershell + + + captures + + 1 + + name + support.constant.powershell + + 2 + + name + keyword.other.powershell + + + match + (?i:(0x)[a-f0-9]+(mb|kb|gb)?) + name + constant.numeric.hexadecimal.powershell + + + captures + + 1 + + name + support.constant.powershell + + 2 + + name + support.constant.powershell + + 3 + + name + keyword.other.powershell + + + match + \d*(?<!\.)(\.)\d+(d)?(mb|kb|gb)? + name + constant.numeric.double.powershell + + + captures + + 1 + + name + support.constant.powershell + + 2 + + name + keyword.other.powershell + + + match + (?<!\w)\d+(d)?(mb|kb|gb)?(?!\w) + name + constant.numeric.powershell + + + + scriptblock + + begin + \{ + end + \} + name + meta.scriptblock.powershell + patterns + + + include + $self + + + + variable + + patterns + + + captures + + 1 + + name + keyword.other.powershell + + 2 + + name + constant.numeric.powershell + + + comment + Style var name as numeric constant so that they stand out. + match + (\$)(?i:(\$|\?|\^|args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext|false|FormatEnumerationLimit|HOME|Host|input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|null|OutputEncoding|PID|PROFILE|ProgressPreference|PSBoundParameters|PSCulture|PSEmailServer|PSHOME|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|PWD|ReportErrorShowExceptionClass|ReportErrorShowInnerException|ReportErrorShowSource|ReportErrorShowStackTrace|ShellId|StackTrace|true|VerbosePreference|WarningPreference|WhatIfPreference))\b + name + support.variable.builtin.powershell + + + captures + + 1 + + name + keyword.other.variable.powershell + + 2 + + name + storage.modifier.scope.powershell + + 3 + + name + variable.other.readwrite.powershell + + + match + (?i:(\$)(?:(private|script|global):)?([a-z0-9_]+)) + + + captures + + 1 + + name + keyword.other.variable.powershell + + 2 + + name + variable.other.readwrite.powershell + + 3 + + name + storage.modifier.scope.powershell + + + match + (?i:(\$)(\{(?:(private|script|global):)?.+?\})) + + + + + scopeName + source.powershell + uuid + f8f5ffb0-503e-11df-9879-0800200c9a66 + + diff --git a/Sublime/PowerShell/manifest.in b/Sublime/PowerShell/manifest.in new file mode 100644 index 0000000..2716d6f --- /dev/null +++ b/Sublime/PowerShell/manifest.in @@ -0,0 +1,7 @@ +include *.sublime-* +include *.tmLanguage +include *.tmPreferences +include LICENSE.txt + +exclude *.sublime-project +exclude *.sublime-workspace diff --git a/Sublime/PowerShell/package-metadata.json b/Sublime/PowerShell/package-metadata.json new file mode 100644 index 0000000..a3978c0 --- /dev/null +++ b/Sublime/PowerShell/package-metadata.json @@ -0,0 +1 @@ +{"url": "https://github.com/SublimeText/PowerShell", "version": "2013.01.25.16.56.44", "description": "Support for the MS PowerShell 2 programming language."} \ No newline at end of file diff --git a/Sublime/PowerShell/setup.py b/Sublime/PowerShell/setup.py new file mode 100644 index 0000000..61e82f6 --- /dev/null +++ b/Sublime/PowerShell/setup.py @@ -0,0 +1,591 @@ +# encoding: utf-8 + +PACKAGE_VERSION = "11.12.2011" + +"""Commands to build and manage .sublime-package archives with distutils.""" + +import sys +import os, string +from types import * +from glob import glob +from distutils import log, dir_util, dep_util, file_util, archive_util +from distutils.core import Command +from distutils.core import setup +from distutils.text_file import TextFile +from distutils.filelist import FileList +from distutils.errors import * +from distutils.spawn import spawn +from distutils.dir_util import mkpath +import subprocess + + +def make_zipfile (base_name, base_dir, verbose=0, dry_run=0): + """Create a zip file from all the files under 'base_dir'. The output + zip file will be named 'base_dir' + ".zip". Uses either the "zipfile" + Python module (if available) or the InfoZIP "zip" utility (if installed + and found on the default search path). If neither tool is available, + raises DistutilsExecError. Returns the name of the output zip file. + """ + try: + import zipfile + except ImportError: + zipfile = None + + zip_filename = base_name + ".sublime-package" + mkpath(os.path.dirname(zip_filename), dry_run=dry_run) + + # If zipfile module is not available, try spawning an external + # 'zip' command. + if zipfile is None: + if verbose: + zipoptions = "-r" + else: + zipoptions = "-rq" + + try: + spawn(["zip", zipoptions, zip_filename, base_dir], + dry_run=dry_run) + except DistutilsExecError: + # XXX really should distinguish between "couldn't find + # external 'zip' command" and "zip failed". + raise DistutilsExecError, \ + ("unable to create zip file '%s': " + "could neither import the 'zipfile' module nor " + "find a standalone zip utility") % zip_filename + + else: + log.info("creating '%s' and adding '%s' to it", + zip_filename, base_dir) + + if not dry_run: + z = zipfile.ZipFile(zip_filename, "w", + compression=zipfile.ZIP_DEFLATED) + + for dirpath, dirnames, filenames in os.walk(base_dir): + for name in filenames: + path = os.path.normpath(os.path.join(dirpath, name)) + arcname = path[len(base_dir):] + # if dirpath == base_dir: + # arcname = name + # else: + # arcname = path[len(base_dir):] + # print arcname + if os.path.isfile(path): + z.write(path, arcname) + log.info("adding '%s'" % path) + z.close() + + return zip_filename + + +def show_formats (): + """Print all possible values for the 'formats' option (used by + the "--help-formats" command-line option). + """ + from distutils.fancy_getopt import FancyGetopt + from distutils.archive_util import ARCHIVE_FORMATS + formats=[] + for format in ARCHIVE_FORMATS.keys(): + formats.append(("formats=" + format, None, + ARCHIVE_FORMATS[format][2])) + formats.sort() + pretty_printer = FancyGetopt(formats) + pretty_printer.print_help( + "List of available source distribution formats:") + +class spa (Command): + + description = "create a source distribution (tarball, zip file, etc.)" + + user_options = [ + ('template=', 't', + "name of manifest template file [default: MANIFEST.in]"), + ('manifest=', 'm', + "name of manifest file [default: MANIFEST]"), + ('use-defaults', None, + "include the default file set in the manifest " + "[default; disable with --no-defaults]"), + ('no-defaults', None, + "don't include the default file set"), + ('prune', None, + "specifically exclude files/directories that should not be " + "distributed (build tree, RCS/CVS dirs, etc.) " + "[default; disable with --no-prune]"), + ('no-prune', None, + "don't automatically exclude anything"), + ('manifest-only', 'o', + "just regenerate the manifest and then stop " + "(implies --force-manifest)"), + ('force-manifest', 'f', + "forcibly regenerate the manifest and carry on as usual"), + ('formats=', None, + "formats for source distribution (comma-separated list)"), + ('keep-temp', 'k', + "keep the distribution tree around after creating " + + "archive file(s)"), + ('dist-dir=', 'd', + "directory to put the source distribution archive(s) in " + "[default: dist]"), + ] + + boolean_options = ['use-defaults', 'prune', + 'manifest-only', 'force-manifest', + 'keep-temp'] + + help_options = [ + ('help-formats', None, + "list available distribution formats", show_formats), + ] + + negative_opt = {'no-defaults': 'use-defaults', + 'no-prune': 'prune' } + + default_format = { 'posix': 'gztar', + 'nt': 'zip' } + + def initialize_options (self): + # 'template' and 'manifest' are, respectively, the names of + # the manifest template and manifest file. + self.template = None + self.manifest = None + + # 'use_defaults': if true, we will include the default file set + # in the manifest + self.use_defaults = 1 + self.prune = 1 + + self.manifest_only = 0 + self.force_manifest = 0 + + self.formats = None + self.keep_temp = 0 + self.dist_dir = None + + self.archive_files = None + + + def finalize_options (self): + if self.manifest is None: + self.manifest = "MANIFEST" + if self.template is None: + self.template = "MANIFEST.in" + + self.ensure_string_list('formats') + if self.formats is None: + try: + self.formats = [self.default_format[os.name]] + except KeyError: + raise DistutilsPlatformError, \ + "don't know how to create source distributions " + \ + "on platform %s" % os.name + + bad_format = archive_util.check_archive_formats(self.formats) + if bad_format: + raise DistutilsOptionError, \ + "unknown archive format '%s'" % bad_format + + if self.dist_dir is None: + self.dist_dir = "dist" + + + def run (self): + + # 'filelist' contains the list of files that will make up the + # manifest + self.filelist = FileList() + + # Ensure that all required meta-data is given; warn if not (but + # don't die, it's not *that* serious!) + self.check_metadata() + + # Do whatever it takes to get the list of files to process + # (process the manifest template, read an existing manifest, + # whatever). File list is accumulated in 'self.filelist'. + self.get_file_list() + + # If user just wanted us to regenerate the manifest, stop now. + if self.manifest_only: + return + + # Otherwise, go ahead and create the source distribution tarball, + # or zipfile, or whatever. + self.make_distribution() + + + def check_metadata (self): + """Ensure that all required elements of meta-data (name, version, + URL, (author and author_email) or (maintainer and + maintainer_email)) are supplied by the Distribution object; warn if + any are missing. + """ + metadata = self.distribution.metadata + + missing = [] + for attr in ('name', 'version', 'url'): + if not (hasattr(metadata, attr) and getattr(metadata, attr)): + missing.append(attr) + + if missing: + self.warn("missing required meta-data: " + + string.join(missing, ", ")) + + if metadata.author: + if not metadata.author_email: + self.warn("missing meta-data: if 'author' supplied, " + + "'author_email' must be supplied too") + elif metadata.maintainer: + if not metadata.maintainer_email: + self.warn("missing meta-data: if 'maintainer' supplied, " + + "'maintainer_email' must be supplied too") + else: + self.warn("missing meta-data: either (author and author_email) " + + "or (maintainer and maintainer_email) " + + "must be supplied") + + # check_metadata () + + + def get_file_list (self): + """Figure out the list of files to include in the source + distribution, and put it in 'self.filelist'. This might involve + reading the manifest template (and writing the manifest), or just + reading the manifest, or just using the default file set -- it all + depends on the user's options and the state of the filesystem. + """ + + # If we have a manifest template, see if it's newer than the + # manifest; if so, we'll regenerate the manifest. + template_exists = os.path.isfile(self.template) + if template_exists: + template_newer = dep_util.newer(self.template, self.manifest) + + # The contents of the manifest file almost certainly depend on the + # setup script as well as the manifest template -- so if the setup + # script is newer than the manifest, we'll regenerate the manifest + # from the template. (Well, not quite: if we already have a + # manifest, but there's no template -- which will happen if the + # developer elects to generate a manifest some other way -- then we + # can't regenerate the manifest, so we don't.) + self.debug_print("checking if %s newer than %s" % + (self.distribution.script_name, self.manifest)) + setup_newer = dep_util.newer(self.distribution.script_name, + self.manifest) + + # cases: + # 1) no manifest, template exists: generate manifest + # (covered by 2a: no manifest == template newer) + # 2) manifest & template exist: + # 2a) template or setup script newer than manifest: + # regenerate manifest + # 2b) manifest newer than both: + # do nothing (unless --force or --manifest-only) + # 3) manifest exists, no template: + # do nothing (unless --force or --manifest-only) + # 4) no manifest, no template: generate w/ warning ("defaults only") + + manifest_outofdate = (template_exists and + (template_newer or setup_newer)) + force_regen = self.force_manifest or self.manifest_only + manifest_exists = os.path.isfile(self.manifest) + neither_exists = (not template_exists and not manifest_exists) + + # Regenerate the manifest if necessary (or if explicitly told to) + if manifest_outofdate or neither_exists or force_regen: + if not template_exists: + self.warn(("manifest template '%s' does not exist " + + "(using default file list)") % + self.template) + self.filelist.findall() + + if self.use_defaults: + self.add_defaults() + if template_exists: + self.read_template() + if self.prune: + self.prune_file_list() + + self.filelist.sort() + self.filelist.remove_duplicates() + self.write_manifest() + + # Don't regenerate the manifest, just read it in. + else: + self.read_manifest() + + # get_file_list () + + + def add_defaults (self): + """Add all the default files to self.filelist: + - README or README.txt + - setup.py + - test/test*.py + - all pure Python modules mentioned in setup script + - all C sources listed as part of extensions or C libraries + in the setup script (doesn't catch C headers!) + Warns if (README or README.txt) or setup.py are missing; everything + else is optional. + """ + + standards = [('README', 'README.txt'), self.distribution.script_name] + for fn in standards: + # XXX + if fn == 'setup.py': continue # We don't want setup.py + if type(fn) is TupleType: + alts = fn + got_it = 0 + for fn in alts: + if os.path.exists(fn): + got_it = 1 + self.filelist.append(fn) + break + + if not got_it: + self.warn("standard file not found: should have one of " + + string.join(alts, ', ')) + else: + if os.path.exists(fn): + self.filelist.append(fn) + else: + self.warn("standard file '%s' not found" % fn) + + optional = ['test/test*.py', 'setup.cfg'] + for pattern in optional: + files = filter(os.path.isfile, glob(pattern)) + if files: + self.filelist.extend(files) + + if self.distribution.has_pure_modules(): + build_py = self.get_finalized_command('build_py') + self.filelist.extend(build_py.get_source_files()) + + if self.distribution.has_ext_modules(): + build_ext = self.get_finalized_command('build_ext') + self.filelist.extend(build_ext.get_source_files()) + + if self.distribution.has_c_libraries(): + build_clib = self.get_finalized_command('build_clib') + self.filelist.extend(build_clib.get_source_files()) + + if self.distribution.has_scripts(): + build_scripts = self.get_finalized_command('build_scripts') + self.filelist.extend(build_scripts.get_source_files()) + + # add_defaults () + + + def read_template (self): + """Read and parse manifest template file named by self.template. + + (usually "MANIFEST.in") The parsing and processing is done by + 'self.filelist', which updates itself accordingly. + """ + log.info("reading manifest template '%s'", self.template) + template = TextFile(self.template, + strip_comments=1, + skip_blanks=1, + join_lines=1, + lstrip_ws=1, + rstrip_ws=1, + collapse_join=1) + + while 1: + line = template.readline() + if line is None: # end of file + break + + try: + self.filelist.process_template_line(line) + except DistutilsTemplateError, msg: + self.warn("%s, line %d: %s" % (template.filename, + template.current_line, + msg)) + + # read_template () + + + def prune_file_list (self): + """Prune off branches that might slip into the file list as created + by 'read_template()', but really don't belong there: + * the build tree (typically "build") + * the release tree itself (only an issue if we ran "spa" + previously with --keep-temp, or it aborted) + * any RCS, CVS, .svn, .hg, .git, .bzr, _darcs directories + """ + build = self.get_finalized_command('build') + base_dir = self.distribution.get_fullname() + base_dir = self.distribution.get_name() + + self.filelist.exclude_pattern(None, prefix=build.build_base) + self.filelist.exclude_pattern(None, prefix=base_dir) + + # pruning out vcs directories + # both separators are used under win32 + if sys.platform == 'win32': + seps = r'/|\\' + else: + seps = '/' + + vcs_dirs = ['RCS', 'CVS', r'\.svn', r'\.hg', r'\.git', r'\.bzr', + '_darcs'] + vcs_ptrn = r'(^|%s)(%s)(%s).*' % (seps, '|'.join(vcs_dirs), seps) + self.filelist.exclude_pattern(vcs_ptrn, is_regex=1) + + def write_manifest (self): + """Write the file list in 'self.filelist' (presumably as filled in + by 'add_defaults()' and 'read_template()') to the manifest file + named by 'self.manifest'. + """ + self.execute(file_util.write_file, + (self.manifest, self.filelist.files), + "writing manifest file '%s'" % self.manifest) + + # write_manifest () + + + def read_manifest (self): + """Read the manifest file (named by 'self.manifest') and use it to + fill in 'self.filelist', the list of files to include in the source + distribution. + """ + log.info("reading manifest file '%s'", self.manifest) + manifest = open(self.manifest) + while 1: + line = manifest.readline() + if line == '': # end of file + break + if line[-1] == '\n': + line = line[0:-1] + self.filelist.append(line) + manifest.close() + + # read_manifest () + + + def make_release_tree (self, base_dir, files): + """Create the directory tree that will become the source + distribution archive. All directories implied by the filenames in + 'files' are created under 'base_dir', and then we hard link or copy + (if hard linking is unavailable) those files into place. + Essentially, this duplicates the developer's source tree, but in a + directory named after the distribution, containing only the files + to be distributed. + """ + # Create all the directories under 'base_dir' necessary to + # put 'files' there; the 'mkpath()' is just so we don't die + # if the manifest happens to be empty. + self.mkpath(base_dir) + dir_util.create_tree(base_dir, files, dry_run=self.dry_run) + + # And walk over the list of files, either making a hard link (if + # os.link exists) to each one that doesn't already exist in its + # corresponding location under 'base_dir', or copying each file + # that's out-of-date in 'base_dir'. (Usually, all files will be + # out-of-date, because by default we blow away 'base_dir' when + # we're done making the distribution archives.) + + if hasattr(os, 'link'): # can make hard links on this system + link = 'hard' + msg = "making hard links in %s..." % base_dir + else: # nope, have to copy + link = None + msg = "copying files to %s..." % base_dir + + if not files: + log.warn("no files to distribute -- empty manifest?") + else: + log.info(msg) + for file in files: + if not os.path.isfile(file): + log.warn("'%s' not a regular file -- skipping" % file) + else: + dest = os.path.join(base_dir, file) + self.copy_file(file, dest, link=link) + + self.distribution.metadata.write_pkg_info(base_dir) + + # make_release_tree () + + def make_distribution (self): + """Create the source distribution(s). First, we create the release + tree with 'make_release_tree()'; then, we create all required + archive files (according to 'self.formats') from the release tree. + Finally, we clean up by blowing away the release tree (unless + 'self.keep_temp' is true). The list of archive files created is + stored so it can be retrieved later by 'get_archive_files()'. + """ + # Don't warn about missing meta-data here -- should be (and is!) + # done elsewhere. + base_dir = self.distribution.get_fullname() + base_dir = self.distribution.get_name() + # XXX + # base_dir = "TEST" + base_name = os.path.join(self.dist_dir, base_dir) + + + self.make_release_tree(base_dir, self.filelist.files) + archive_files = [] # remember names of files we create + # tar archive must be created last to avoid overwrite and remove + if 'tar' in self.formats: + self.formats.append(self.formats.pop(self.formats.index('tar'))) + + for fmt in self.formats: + # file = self.make_archive(base_name, fmt, base_dir=base_dir) + file = make_zipfile(base_name, base_dir=base_dir) + archive_files.append(file) + self.distribution.dist_files.append(('spa', '', file)) + + self.archive_files = archive_files + + if not self.keep_temp: + dir_util.remove_tree(base_dir, dry_run=self.dry_run) + + def get_archive_files (self): + """Return the list of archive files created when the command + was run, or None if the command hasn't run yet. + """ + return self.archive_files + +# class spa + + +class install(Command): + """Does it make sense?""" + + user_options = [('aa', 'a', 'aa')] + + def initialize_options(self): + pass + + def finalize_options(self): + pass + + def run(self): + print NotImplementedError("Command not implemented yet.") + + +class test(Command): + """Does it make sense?""" + + user_options = [('aa', 'a', 'aa')] + + def initialize_options(self): + pass + + def finalize_options(self): + pass + + def run(self): + if os.name == 'nt': + subprocess.call(["py.test.exe"]) + + + +setup(cmdclass={'spa': spa, 'install': install, 'test': test}, + name='PowerShell', + version=PACKAGE_VERSION, + description='PowerShell support for Sublime Text.', + author='Guillermo López', + author_email='guilan70@hotmail.com', + url='sublimetext.info', + ) diff --git a/Sublime/Puppet/Commands/Validate Syntax (puppetparse).tmCommand b/Sublime/Puppet/Commands/Validate Syntax (puppetparse).tmCommand new file mode 100644 index 0000000..dd106d2 --- /dev/null +++ b/Sublime/Puppet/Commands/Validate Syntax (puppetparse).tmCommand @@ -0,0 +1,30 @@ + + + + + beforeRunningCommand + saveActiveFile + command + #!/usr/bin/env ruby +require ENV['TM_SUPPORT_PATH'] + '/lib/textmate' +puts "<p>Running syntax check&hellip;</p>\n" +result = `puppet parser validate --color=false --confdir=/tmp/puppet --vardir=/tmp/puppet $TM_FILEPATH` +puts "<pre>" +puts result +puts "</pre>" +puts "<p>Check complete.</p>\n" +TextMate.go_to :line => $1 if result =~ /:(\d+)$/ + input + none + keyEquivalent + ^V + name + Validate Syntax (puppetparse) + output + showAsHTML + scope + source.puppet + uuid + 1DBD7B78-91F3-4528-9AC9-B71D9E5FE445 + + diff --git a/Sublime/Puppet/Preferences/Comments.tmPreferences b/Sublime/Puppet/Preferences/Comments.tmPreferences new file mode 100644 index 0000000..ef4c933 --- /dev/null +++ b/Sublime/Puppet/Preferences/Comments.tmPreferences @@ -0,0 +1,36 @@ + + + + + name + Comments + scope + source.puppet + settings + + shellVariables + + + name + TM_COMMENT_START + value + # + + + name + TM_COMMENT_START_2 + value + /* + + + name + TM_COMMENT_END_2 + value + */ + + + + uuid + BAB15109-162D-4E1F-92F9-CA83A21169C3 + + diff --git a/Sublime/Puppet/Preferences/Completions.tmPreferences b/Sublime/Puppet/Preferences/Completions.tmPreferences new file mode 100644 index 0000000..215d14a --- /dev/null +++ b/Sublime/Puppet/Preferences/Completions.tmPreferences @@ -0,0 +1,34 @@ + + + + + name + Completions + scope + source.puppet + settings + + completions + + name + provider + ensure + enable + command + path + owner + group + refresh + refreshonly + unless + backup + content + source + mode + recurse + + + uuid + A0062DFA-F753-41C5-B48A-5DF9AA1352DD + + diff --git a/Sublime/Puppet/Preferences/SymbolList (class_node_define).tmPreferences b/Sublime/Puppet/Preferences/SymbolList (class_node_define).tmPreferences new file mode 100644 index 0000000..4ab74b9 --- /dev/null +++ b/Sublime/Puppet/Preferences/SymbolList (class_node_define).tmPreferences @@ -0,0 +1,17 @@ + + + + + name + SymbolList (class_node_define) + scope + source.puppet entity.name.function entity.name.type + settings + + showInSymbolList + 1 + + uuid + DCFE74BF-4295-47AB-B91E-66A5761BFA96 + + \ No newline at end of file diff --git a/Sublime/Puppet/Preferences/SymbolList (resource).tmPreferences b/Sublime/Puppet/Preferences/SymbolList (resource).tmPreferences new file mode 100644 index 0000000..ee50c92 --- /dev/null +++ b/Sublime/Puppet/Preferences/SymbolList (resource).tmPreferences @@ -0,0 +1,19 @@ + + + + + name + SymbolList (resource) + scope + source.puppet meta.definition.resource.puppet + settings + + showInSymbolList + 1 + symbolTransformation + s/^\s*(\w+)\s*{\s*['"](.*)['"]:/ \u$1["$2"]/ + + uuid + 13DD53A2-401B-4149-82B0-001374330B40 + + diff --git a/Sublime/Puppet/Puppet.sublime-build b/Sublime/Puppet/Puppet.sublime-build new file mode 100644 index 0000000..2ca9bdc --- /dev/null +++ b/Sublime/Puppet/Puppet.sublime-build @@ -0,0 +1,6 @@ +{ + "cmd": [ "puppet", "parser", "validate", "--color=false", "--confdir=/tmp", "--vardir=/tmp", "$file" ], + "working_dir": "${project_path:${folder:${file_path}}}", + "selector": "source.pp", + "path": "/opt/local/bin:$PATH" +} \ No newline at end of file diff --git a/Sublime/Puppet/README.md b/Sublime/Puppet/README.md new file mode 100644 index 0000000..81df72e --- /dev/null +++ b/Sublime/Puppet/README.md @@ -0,0 +1,4 @@ +SublimePuppet +============= + +Puppet (puppetlabs.com) highlighting, snippets and completion for Sublime Text 2 \ No newline at end of file diff --git a/Sublime/Puppet/Snippets/Parameter.tmSnippet b/Sublime/Puppet/Snippets/Parameter.tmSnippet new file mode 100644 index 0000000..ad5ba48 --- /dev/null +++ b/Sublime/Puppet/Snippets/Parameter.tmSnippet @@ -0,0 +1,16 @@ + + + + + content + ${1:name} => "${2:value}",$0 + name + Parameter + scope + source.puppet + tabTrigger + = + uuid + 8261BD6F-38ED-4AB3-A20B-29AFDE01EE36 + + diff --git a/Sublime/Puppet/Snippets/baseclass.sublime-snippet b/Sublime/Puppet/Snippets/baseclass.sublime-snippet new file mode 100644 index 0000000..2f108b8 --- /dev/null +++ b/Sublime/Puppet/Snippets/baseclass.sublime-snippet @@ -0,0 +1,74 @@ + + present; + \} + \} + + class config \{ + file \{ + "/etc/${1:name}": + ensure => directory, + owner => root, + group => root, + mode => 700, + require => Class["install"]; + + "/etc/${1:name}/${3:config}": + ensure => present, + owner => root, + group => root, + mode => 600, + require => Class["install"]; + #content => template ("${1:name}/${3:config}.erb"); + #source => [ + # "puppet://$server/modules/${1:name}/\$\{fqdn\}.conf", + # "puppet://$server/modules/${1:name}/${1:name}.conf" + #]; + \} + + #logrotate::file { "${1:name}": + # source => "/etc/logrotate.d/${1:name}", + # log => "/var/log/${4:logfile}.log", + #\} + \} + + class service \{ + service \{ "${1:name}": + enable => true, + ensure => running, + #hasrestart => true, + #hasstatus => true, + require => Class["config"], + \} + \} + + include install + include config + include service + + Class["install"] -> + Class["config"] -> + Class["service"] +\} +${0}]]> + baseclass + source.puppet + baseclass + diff --git a/Sublime/Puppet/Snippets/case.tmSnippet b/Sublime/Puppet/Snippets/case.tmSnippet new file mode 100644 index 0000000..3c7142b --- /dev/null +++ b/Sublime/Puppet/Snippets/case.tmSnippet @@ -0,0 +1,23 @@ + + + + + content + case \$${1:variable} { + "${2:value}": { + ${3:# code} + } + default: { + ${4:# code} + } +}$0 + name + case + scope + source.puppet + tabTrigger + case + uuid + 4C76CA5D-F7F7-4354-AAAD-1F8B00D73823 + + diff --git a/Sublime/Puppet/Snippets/class.tmSnippet b/Sublime/Puppet/Snippets/class.tmSnippet new file mode 100644 index 0000000..c010804 --- /dev/null +++ b/Sublime/Puppet/Snippets/class.tmSnippet @@ -0,0 +1,21 @@ + + + + + content + # Class: $1 +# +# +class ${1:name} { + ${2:# resources} +}$0 + name + class + scope + source.puppet + tabTrigger + class + uuid + 2D3C6C03-B268-42B1-A856-33FB0437B00E + + diff --git a/Sublime/Puppet/Snippets/cron.tmSnippet b/Sublime/Puppet/Snippets/cron.tmSnippet new file mode 100644 index 0000000..3c476b0 --- /dev/null +++ b/Sublime/Puppet/Snippets/cron.tmSnippet @@ -0,0 +1,23 @@ + + + + + content + cron { "${1:name}": + command => "${2:command}", + user => "${3:root}", + month => "${4:*}", + monthday => "${5:*}", + hour => "${6:*}", + minute => "${7:*}", +}$0 + name + cron + scope + source.puppet + tabTrigger + cron + uuid + C22C1778-E61D-40EC-8E06-4B4A5ABEC0E7 + + diff --git a/Sublime/Puppet/Snippets/define.tmSnippet b/Sublime/Puppet/Snippets/define.tmSnippet new file mode 100644 index 0000000..a178dd4 --- /dev/null +++ b/Sublime/Puppet/Snippets/define.tmSnippet @@ -0,0 +1,22 @@ + + + + + content + # Define: $1 +# Parameters: +# $2 +# +define ${1:name} (${2:arguments}) { + ${3:# puppet code} +}$0 + name + define + scope + source.puppet + tabTrigger + define + uuid + 22538B08-D4D6-4172-B672-77893A6D8E40 + + diff --git a/Sublime/Puppet/Snippets/else.tmSnippet b/Sublime/Puppet/Snippets/else.tmSnippet new file mode 100644 index 0000000..d6324c3 --- /dev/null +++ b/Sublime/Puppet/Snippets/else.tmSnippet @@ -0,0 +1,18 @@ + + + + + content + else { + ${1:# enter puppet code} +}$0 + name + else + scope + source.puppet + tabTrigger + else + uuid + B3E52D1C-3A49-44FA-8D1E-2910567F22C4 + + diff --git a/Sublime/Puppet/Snippets/exec.tmSnippet b/Sublime/Puppet/Snippets/exec.tmSnippet new file mode 100644 index 0000000..fb45cad --- /dev/null +++ b/Sublime/Puppet/Snippets/exec.tmSnippet @@ -0,0 +1,20 @@ + + + + + content + exec { "${1:name}": + command => "${2:/bin/echo}", + #path => "/usr/bin:/usr/sbin:/bin:/usr/local/bin", + #refreshonly => true, +}$0 + name + exec + scope + source.puppet + tabTrigger + exec + uuid + 849952B4-0D8A-4B5F-996D-35D531AAAE81 + + diff --git a/Sublime/Puppet/Snippets/file.tmSnippet b/Sublime/Puppet/Snippets/file.tmSnippet new file mode 100644 index 0000000..e36bd11 --- /dev/null +++ b/Sublime/Puppet/Snippets/file.tmSnippet @@ -0,0 +1,18 @@ + + + + + content + file { "${1:name}": + ensure => ${2:file}, +}$0 + name + file + scope + source.puppet + tabTrigger + file + uuid + C84524F5-B248-4A4B-87B9-69DCA93C393F + + diff --git a/Sublime/Puppet/Snippets/group.tmSnippet b/Sublime/Puppet/Snippets/group.tmSnippet new file mode 100644 index 0000000..6f2bec6 --- /dev/null +++ b/Sublime/Puppet/Snippets/group.tmSnippet @@ -0,0 +1,18 @@ + + + + + content + group { "${1:name}": + gid => $2, +}$0 + name + group + scope + source.puppet + tabTrigger + group + uuid + 44C1B58A-0EF0-4022-A9EF-2D3B432C83FE + + diff --git a/Sublime/Puppet/Snippets/if.tmSnippet b/Sublime/Puppet/Snippets/if.tmSnippet new file mode 100644 index 0000000..ea1a00e --- /dev/null +++ b/Sublime/Puppet/Snippets/if.tmSnippet @@ -0,0 +1,18 @@ + + + + + content + if ${1:test} { + ${2:# enter puppet code} +}$0 + name + if + scope + source.puppet + tabTrigger + if + uuid + A60AC7AD-8710-4CCB-9A52-D8B84ABDD521 + + diff --git a/Sublime/Puppet/Snippets/package.tmSnippet b/Sublime/Puppet/Snippets/package.tmSnippet new file mode 100644 index 0000000..2c36dc1 --- /dev/null +++ b/Sublime/Puppet/Snippets/package.tmSnippet @@ -0,0 +1,18 @@ + + + + + content + package { "${1:name}": + ensure => ${2:installed}, +}$0 + name + package + scope + source.puppet + tabTrigger + package + uuid + 1A1C51EE-AC6D-4F7F-A342-4D6DE1F4FAD3 + + diff --git a/Sublime/Puppet/Snippets/selector.tmSnippet b/Sublime/Puppet/Snippets/selector.tmSnippet new file mode 100644 index 0000000..16d793f --- /dev/null +++ b/Sublime/Puppet/Snippets/selector.tmSnippet @@ -0,0 +1,19 @@ + + + + + content + \$${1:variable} ? { + "${2:key}" => "${3:value}", + default => "${4:value}", +}$0 + name + selector + scope + source.puppet + tabTrigger + ? + uuid + 88BA23C0-A6AD-4115-A765-9074BB8C85BD + + diff --git a/Sublime/Puppet/Snippets/service.sublime-snippet b/Sublime/Puppet/Snippets/service.sublime-snippet new file mode 100644 index 0000000..a3aea93 --- /dev/null +++ b/Sublime/Puppet/Snippets/service.sublime-snippet @@ -0,0 +1,13 @@ + + true, + ensure => running, + #hasrestart => true, + #hasstatus => true, + #require => Class["config"], +\} +]]> + service + source.puppet + service + diff --git a/Sublime/Puppet/Snippets/user.tmSnippet b/Sublime/Puppet/Snippets/user.tmSnippet new file mode 100644 index 0000000..08f96d9 --- /dev/null +++ b/Sublime/Puppet/Snippets/user.tmSnippet @@ -0,0 +1,23 @@ + + + + + content + user { "${1:name}": + comment => "${2:First Last}", + home => "${3:/home/$1}", + ensure => ${4:present}, + #shell => "/bin/bash", + #uid => '501', + #gid => '20' +}$0 + name + user + scope + source.puppet + tabTrigger + user + uuid + 831FA574-7FC1-47B7-BDD3-67E3E94E8188 + + diff --git a/Sublime/Puppet/Snippets/yumrepo.tmSnippet b/Sublime/Puppet/Snippets/yumrepo.tmSnippet new file mode 100644 index 0000000..f41d8d4 --- /dev/null +++ b/Sublime/Puppet/Snippets/yumrepo.tmSnippet @@ -0,0 +1,23 @@ + + + + + content + yumrepo { "${1:name}": + baseurl => "${2}", + descr => "${3:The $1 repository}", + enabled => "${4:1}", + gpgcheck => "${5:1}", + gpgkey => "${6:file:///etc/pki/rpm-gpg/RPM-GPG-KEY-$1}", + mirrorlist => "${7}" +}$0 + name + yumrepo + scope + source.puppet + tabTrigger + yumrepo + uuid + 7AC2033D-9B16-4127-8E03-0F8AD7220920 + + diff --git a/Sublime/Puppet/Syntaxes/Puppet.tmLanguage b/Sublime/Puppet/Syntaxes/Puppet.tmLanguage new file mode 100644 index 0000000..c1ffa67 --- /dev/null +++ b/Sublime/Puppet/Syntaxes/Puppet.tmLanguage @@ -0,0 +1,653 @@ + + + + + fileTypes + + pp + + foldingStartMarker + (^\s*/\*|(\{|\[|\()\s*$) + foldingStopMarker + (\*/|^\s*(\}|\]|\))) + keyEquivalent + ^~P + name + Puppet + patterns + + + include + #line_comment + + + begin + ^\s*/\* + end + \*/ + name + comment.block.puppet + + + begin + (?x)^\s* + (node|class)\s+ + ((?:[-_A-Za-z0-9".]+::)*[-_A-Za-z0-9".]+)\s* # identifier + captures + + 1 + + name + storage.type.puppet + + 2 + + name + entity.name.type.class.puppet + + + end + (?={) + name + meta.definition.class.puppet + patterns + + + begin + \b(inherits)\b\s+ + captures + + 1 + + name + storage.modifier.puppet + + + end + (?={) + name + meta.definition.class.inherits.puppet + patterns + + + match + \b((?:[-_A-Za-z0-9".]+::)*[-_A-Za-z0-9".]+)\b + name + support.type.puppet + + + + + + + begin + ^\s*(define)\s+([a-zA-Z0-9_:]+)\s*(\() + beginCaptures + + 1 + + name + storage.type.function.puppet + + 2 + + name + entity.name.function.puppet + + 3 + + name + punctuation.definition.parameters.begin.puppet + + + contentName + meta.function.arguments.puppet + end + \) + endCaptures + + 1 + + name + punctuation.definition.parameters.end.puppet + + + name + meta.function.puppet + patterns + + + captures + + 1 + + name + variable.other.puppet + + 2 + + name + punctuation.definition.variable.puppet + + + match + ((\$+)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)\s*(?=,|\)) + name + meta.function.argument.no-default.puppet + + + begin + ((\$+)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)(?:\s*(=)\s*)\s* + captures + + 1 + + name + variable.other.puppet + + 2 + + name + punctuation.definition.variable.puppet + + 3 + + name + keyword.operator.assignment.puppet + + + end + (?=,|\)) + name + meta.function.argument.default.puppet + patterns + + + include + #parameter-default-types + + + + + + + captures + + 1 + + name + storage.type.puppet + + 2 + + name + entity.name.section.puppet + + + match + ^\s*(\w+)\s*{\s*(['"].+['"]): + name + meta.definition.resource.puppet + + + match + \b(case|if|unless|else)(?!::) + name + keyword.control.puppet + + + match + ((\$?)"?[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*"?):(?=\s+|$) + name + entity.name.section.puppet + + + include + #strings + + + include + #variable + + + begin + (?i)\b(import|include)\b\s* + beginCaptures + + 1 + + name + keyword.control.import.include.puppet + + + end + (?=\s|$) + name + meta.include.puppet + + + match + \b\w+\s*(?==>)\s* + name + constant.other.key.puppet + + + match + (?<={)\s*\w+\s*(?=}) + name + constant.other.bareword.puppet + + + match + \b(escape|gsub|alert|crit|debug|notice|defined|emerg|err|failed|file|generate|include|info|realize|search|tag|tagged|template|warning)\b + name + support.function.puppet + + + repository + + constants + + patterns + + + match + (?i)\b(false|true|running|present|absent|file|directory)\b + name + constant.language.php + + + + double-quoted-string + + begin + " + beginCaptures + + 0 + + name + punctuation.definition.string.begin.puppet + + + end + " + endCaptures + + 0 + + name + punctuation.definition.string.end.puppet + + + name + string.quoted.double.puppet + patterns + + + include + #escaped_char + + + include + #variable + + + + escaped_char + + match + \\. + name + constant.character.escape.puppet + + line_comment + + patterns + + + captures + + 1 + + name + comment.line.number-sign.puppet + + 2 + + name + punctuation.definition.comment.puppet + + + match + ^((#).*$\n?) + name + meta.comment.full-line.puppet + + + captures + + 1 + + name + punctuation.definition.comment.puppet + + + match + (#).*$\n? + name + comment.line.number-sign.puppet + + + + nested_braces + + begin + \{ + captures + + 1 + + name + punctuation.section.scope.puppet + + + end + \} + patterns + + + include + #escaped_char + + + include + #nested_braces + + + + nested_braces_interpolated + + begin + \{ + captures + + 1 + + name + punctuation.section.scope.puppet + + + end + \} + patterns + + + include + #escaped_char + + + include + #variable + + + include + #nested_braces_interpolated + + + + nested_brackets + + begin + \[ + captures + + 1 + + name + punctuation.section.scope.puppet + + + end + \] + patterns + + + include + #escaped_char + + + include + #nested_brackets + + + + nested_brackets_interpolated + + begin + \[ + captures + + 1 + + name + punctuation.section.scope.puppet + + + end + \] + patterns + + + include + #escaped_char + + + include + #variable + + + include + #nested_brackets_interpolated + + + + nested_parens + + begin + \( + captures + + 1 + + name + punctuation.section.scope.puppet + + + end + \) + patterns + + + include + #escaped_char + + + include + #nested_parens + + + + nested_parens_interpolated + + begin + \( + captures + + 1 + + name + punctuation.section.scope.puppet + + + end + \) + patterns + + + include + #escaped_char + + + include + #variable + + + include + #nested_parens_interpolated + + + + parameter-default-types + + patterns + + + include + #strings + + + match + = + name + keyword.operator.assignment.php + + + begin + (\[) + beginCaptures + + 1 + + name + punctuation.definition.array.begin.puppet + + + end + \] + endCaptures + + 0 + + name + punctuation.definition.array.end.puppet + + + name + meta.array.php + patterns + + + include + #parameter-default-types + + + + + include + #constants + + + + single-quoted-string + + begin + ' + beginCaptures + + 0 + + name + punctuation.definition.string.begin.puppet + + + end + ' + endCaptures + + 0 + + name + punctuation.definition.string.end.puppet + + + name + string.quoted.single.puppet + patterns + + + include + #escaped_char + + + + strings + + patterns + + + include + #double-quoted-string + + + include + #single-quoted-string + + + + variable + + patterns + + + captures + + 1 + + name + punctuation.definition.variable.puppet + + + match + (\$)([a-zA-Zx7f-xff\$]|::)([a-zA-Z0-9_x7f-xff\$]|::)*\b + name + variable.other.readwrite.global.puppet + + + captures + + 1 + + name + punctuation.definition.variable.puppet + + 2 + + name + punctuation.definition.variable.puppet + + + match + (\$\{)(?:[a-zA-Zx7f-xff\$]|::)(?:[a-zA-Z0-9_x7f-xff\$]|::)*(\}) + name + variable.other.readwrite.global.puppet + + + + + scopeName + source.puppet + uuid + AAF4E089-E3C9-4FB9-B099-FD2CCBD4E786 + + diff --git a/Sublime/Puppet/Templates/module.tmTemplate/info.plist b/Sublime/Puppet/Templates/module.tmTemplate/info.plist new file mode 100644 index 0000000..13aec0f --- /dev/null +++ b/Sublime/Puppet/Templates/module.tmTemplate/info.plist @@ -0,0 +1,22 @@ + + + + + command + if [[ ! -d "$TM_NEW_FILE" ]]; then + mkdir -p "$TM_NEW_FILE/manifests" + mkdir -p "$TM_NEW_FILE/files" + mkdir -p "$TM_NEW_FILE/templates" + TM_YEAR=`date +%Y` \ + TM_DATE=`date +%Y-%m-%d` \ + TM_USERNAME=`niutil -readprop / /users/\$USER realname` \ + perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \ + < init.pp > "$TM_NEW_FILE/manifests/init.pp" +fi + + name + module + uuid + 285328A3-F7E4-4D5C-9175-D5EFD947C787 + + diff --git a/Sublime/Puppet/Templates/module.tmTemplate/init.pp b/Sublime/Puppet/Templates/module.tmTemplate/init.pp new file mode 100644 index 0000000..d2feb2c --- /dev/null +++ b/Sublime/Puppet/Templates/module.tmTemplate/init.pp @@ -0,0 +1,19 @@ +# +# Module: ${TM_NEW_FILE_BASENAME} +# +# Created by ${TM_USERNAME} on ${TM_DATE}. +# Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights reserved. +# +# Define: +# +# +# Parameters: +# +# +# Actions: +# +# Requires: +# +# Sample Usage: +# (start code) +# (end) diff --git a/Sublime/Puppet/info.plist b/Sublime/Puppet/info.plist new file mode 100644 index 0000000..d984558 --- /dev/null +++ b/Sublime/Puppet/info.plist @@ -0,0 +1,55 @@ + + + + + mainMenu + + items + + 1DBD7B78-91F3-4528-9AC9-B71D9E5FE445 + ------------------------------------ + 2D3C6C03-B268-42B1-A856-33FB0437B00E + C22C1778-E61D-40EC-8E06-4B4A5ABEC0E7 + 22538B08-D4D6-4172-B672-77893A6D8E40 + 1A1C51EE-AC6D-4F7F-A342-4D6DE1F4FAD3 + C84524F5-B248-4A4B-87B9-69DCA93C393F + 831FA574-7FC1-47B7-BDD3-67E3E94E8188 + 44C1B58A-0EF0-4022-A9EF-2D3B432C83FE + 849952B4-0D8A-4B5F-996D-35D531AAAE81 + 4C76CA5D-F7F7-4354-AAAD-1F8B00D73823 + A60AC7AD-8710-4CCB-9A52-D8B84ABDD521 + B3E52D1C-3A49-44FA-8D1E-2910567F22C4 + 88BA23C0-A6AD-4115-A765-9074BB8C85BD + + submenus + + + name + Puppet + ordering + + BAB15109-162D-4E1F-92F9-CA83A21169C3 + DCFE74BF-4295-47AB-B91E-66A5761BFA96 + 13DD53A2-401B-4149-82B0-001374330B40 + A0062DFA-F753-41C5-B48A-5DF9AA1352DD + AAF4E089-E3C9-4FB9-B099-FD2CCBD4E786 + 2D3C6C03-B268-42B1-A856-33FB0437B00E + C22C1778-E61D-40EC-8E06-4B4A5ABEC0E7 + 22538B08-D4D6-4172-B672-77893A6D8E40 + 1A1C51EE-AC6D-4F7F-A342-4D6DE1F4FAD3 + C84524F5-B248-4A4B-87B9-69DCA93C393F + 831FA574-7FC1-47B7-BDD3-67E3E94E8188 + 44C1B58A-0EF0-4022-A9EF-2D3B432C83FE + 849952B4-0D8A-4B5F-996D-35D531AAAE81 + 4C76CA5D-F7F7-4354-AAAD-1F8B00D73823 + A60AC7AD-8710-4CCB-9A52-D8B84ABDD521 + B3E52D1C-3A49-44FA-8D1E-2910567F22C4 + 88BA23C0-A6AD-4115-A765-9074BB8C85BD + 7AC2033D-9B16-4127-8E03-0F8AD7220920 + 285328A3-F7E4-4D5C-9175-D5EFD947C787 + 1DBD7B78-91F3-4528-9AC9-B71D9E5FE445 + + uuid + 2DB168AA-8A4D-458B-B6DE-AFC8E60F845E + + diff --git a/Sublime/Puppet/package-metadata.json b/Sublime/Puppet/package-metadata.json new file mode 100644 index 0000000..c4f3a22 --- /dev/null +++ b/Sublime/Puppet/package-metadata.json @@ -0,0 +1 @@ +{"url": "https://github.com/russCloak/SublimePuppet", "version": "2013.01.11.19.53.28", "description": "Puppet (puppetlabs.com) highlighting, snippets and completion for Sublime Text 2"} \ No newline at end of file diff --git a/Sublime/Underscore.js Snippets/README.md b/Sublime/Underscore.js Snippets/README.md new file mode 100644 index 0000000..4d620c8 --- /dev/null +++ b/Sublime/Underscore.js Snippets/README.md @@ -0,0 +1,46 @@ +# Underscore 1.4.2 snippets for Sublime Text 2 + +A Sublime Text 2 package containing all of [Underscore](http://underscorejs.org/)'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](http://wbond.net/sublime_packages/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](http://underscorejs.org/). This repository (c) Carlo Zottmann, [municode.de](http://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. + diff --git a/Sublime/Underscore.js Snippets/Underscore-after.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-after.sublime-snippet new file mode 100644 index 0000000..952ca83 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-after.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _after + source.js + Underscore _.after() + diff --git a/Sublime/Underscore.js Snippets/Underscore-all.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-all.sublime-snippet new file mode 100644 index 0000000..a54015d --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-all.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _all + source.js + Underscore _.all() + diff --git a/Sublime/Underscore.js Snippets/Underscore-any.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-any.sublime-snippet new file mode 100644 index 0000000..f4a0139 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-any.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _any + source.js + Underscore _.any() + diff --git a/Sublime/Underscore.js Snippets/Underscore-bind.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-bind.sublime-snippet new file mode 100644 index 0000000..9a570b9 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-bind.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _bind + source.js + Underscore _.bind() + diff --git a/Sublime/Underscore.js Snippets/Underscore-bindAll.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-bindAll.sublime-snippet new file mode 100644 index 0000000..3db5d22 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-bindAll.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _bindAll + source.js + Underscore _.bindAll() + diff --git a/Sublime/Underscore.js Snippets/Underscore-chain.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-chain.sublime-snippet new file mode 100644 index 0000000..cccf027 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-chain.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _chain + source.js + Underscore _.chain() + diff --git a/Sublime/Underscore.js Snippets/Underscore-clone.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-clone.sublime-snippet new file mode 100644 index 0000000..26f8f5d --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-clone.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _clone + source.js + Underscore _.clone() + diff --git a/Sublime/Underscore.js Snippets/Underscore-compact.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-compact.sublime-snippet new file mode 100644 index 0000000..ee18b34 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-compact.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _compact + source.js + Underscore _.compact() + diff --git a/Sublime/Underscore.js Snippets/Underscore-compose.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-compose.sublime-snippet new file mode 100644 index 0000000..e24bad8 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-compose.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _compose + source.js + Underscore _.compose() + diff --git a/Sublime/Underscore.js Snippets/Underscore-contains.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-contains.sublime-snippet new file mode 100644 index 0000000..b98d38f --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-contains.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _contains + source.js + Underscore _.contains() + diff --git a/Sublime/Underscore.js Snippets/Underscore-countBy.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-countBy.sublime-snippet new file mode 100644 index 0000000..a0f5943 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-countBy.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _countBy + source.js + Underscore _.countBy() + diff --git a/Sublime/Underscore.js Snippets/Underscore-debounce.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-debounce.sublime-snippet new file mode 100644 index 0000000..f5fb1d3 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-debounce.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _debounce + source.js + Underscore _.debounce() + diff --git a/Sublime/Underscore.js Snippets/Underscore-defaults.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-defaults.sublime-snippet new file mode 100644 index 0000000..4175824 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-defaults.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _defaults + source.js + Underscore _.defaults() + diff --git a/Sublime/Underscore.js Snippets/Underscore-defer.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-defer.sublime-snippet new file mode 100644 index 0000000..582da37 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-defer.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _defer + source.js + Underscore _.defer() + diff --git a/Sublime/Underscore.js Snippets/Underscore-delay.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-delay.sublime-snippet new file mode 100644 index 0000000..411203c --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-delay.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _delay + source.js + Underscore _.delay() + diff --git a/Sublime/Underscore.js Snippets/Underscore-difference.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-difference.sublime-snippet new file mode 100644 index 0000000..eb82b49 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-difference.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _difference + source.js + Underscore _.difference() + diff --git a/Sublime/Underscore.js Snippets/Underscore-each.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-each.sublime-snippet new file mode 100644 index 0000000..e3ffe5a --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-each.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _each + source.js + Underscore _.each() + diff --git a/Sublime/Underscore.js Snippets/Underscore-escape.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-escape.sublime-snippet new file mode 100644 index 0000000..6bb8b33 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-escape.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _escape + source.js + Underscore _.escape() + diff --git a/Sublime/Underscore.js Snippets/Underscore-extend.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-extend.sublime-snippet new file mode 100644 index 0000000..101e54e --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-extend.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _extend + source.js + Underscore _.extend() + diff --git a/Sublime/Underscore.js Snippets/Underscore-filter.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-filter.sublime-snippet new file mode 100644 index 0000000..3c86862 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-filter.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _filter + source.js + Underscore _.filter() + diff --git a/Sublime/Underscore.js Snippets/Underscore-find.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-find.sublime-snippet new file mode 100644 index 0000000..8cb6b7a --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-find.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _find + source.js + Underscore _.find() + diff --git a/Sublime/Underscore.js Snippets/Underscore-first.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-first.sublime-snippet new file mode 100644 index 0000000..210d956 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-first.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _first + source.js + Underscore _.first() + diff --git a/Sublime/Underscore.js Snippets/Underscore-flatten.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-flatten.sublime-snippet new file mode 100644 index 0000000..f0207de --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-flatten.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _flatten + source.js + Underscore _.flatten() + diff --git a/Sublime/Underscore.js Snippets/Underscore-functions.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-functions.sublime-snippet new file mode 100644 index 0000000..16abad4 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-functions.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _functions + source.js + Underscore _.functions() + diff --git a/Sublime/Underscore.js Snippets/Underscore-groupBy.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-groupBy.sublime-snippet new file mode 100644 index 0000000..2f2129d --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-groupBy.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _groupBy + source.js + Underscore _.groupBy() + diff --git a/Sublime/Underscore.js Snippets/Underscore-has.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-has.sublime-snippet new file mode 100644 index 0000000..53b00f1 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-has.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _has + source.js + Underscore _.has() + diff --git a/Sublime/Underscore.js Snippets/Underscore-identity.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-identity.sublime-snippet new file mode 100644 index 0000000..33409b6 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-identity.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _identity + source.js + Underscore _.identity() + diff --git a/Sublime/Underscore.js Snippets/Underscore-indexOf.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-indexOf.sublime-snippet new file mode 100644 index 0000000..e9ae6ed --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-indexOf.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _indexOf + source.js + Underscore _.indexOf() + diff --git a/Sublime/Underscore.js Snippets/Underscore-initial.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-initial.sublime-snippet new file mode 100644 index 0000000..9c6e845 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-initial.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _initial + source.js + Underscore _.initial() + diff --git a/Sublime/Underscore.js Snippets/Underscore-intersection.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-intersection.sublime-snippet new file mode 100644 index 0000000..620a8bf --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-intersection.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _intersection + source.js + Underscore _.intersection() + diff --git a/Sublime/Underscore.js Snippets/Underscore-invert.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-invert.sublime-snippet new file mode 100644 index 0000000..8993a0b --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-invert.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _invert + source.js + Underscore _.invert() + diff --git a/Sublime/Underscore.js Snippets/Underscore-invoke.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-invoke.sublime-snippet new file mode 100644 index 0000000..15403d5 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-invoke.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _invoke + source.js + Underscore _.invoke() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isArguments.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isArguments.sublime-snippet new file mode 100644 index 0000000..5a7a2ba --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isArguments.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isArguments + source.js + Underscore _.isArguments() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isArray.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isArray.sublime-snippet new file mode 100644 index 0000000..9358dc1 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isArray.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isArray + source.js + Underscore _.isArray() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isBoolean.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isBoolean.sublime-snippet new file mode 100644 index 0000000..b269fe6 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isBoolean.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isBoolean + source.js + Underscore _.isBoolean() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isDate.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isDate.sublime-snippet new file mode 100644 index 0000000..d453192 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isDate.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isDate + source.js + Underscore _.isDate() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isElement.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isElement.sublime-snippet new file mode 100644 index 0000000..69090ac --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isElement.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isElement + source.js + Underscore _.isElement() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isEmpty.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isEmpty.sublime-snippet new file mode 100644 index 0000000..5cd1538 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isEmpty.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isEmpty + source.js + Underscore _.isEmpty() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isEqual.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isEqual.sublime-snippet new file mode 100644 index 0000000..62a743a --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isEqual.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isEqual + source.js + Underscore _.isEqual() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isFinite.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isFinite.sublime-snippet new file mode 100644 index 0000000..01eeedd --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isFinite.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isFinite + source.js + Underscore _.isFinite() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isFunction.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isFunction.sublime-snippet new file mode 100644 index 0000000..d364cea --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isFunction.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isFunction + source.js + Underscore _.isFunction() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isNaN.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isNaN.sublime-snippet new file mode 100644 index 0000000..eedfc08 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isNaN.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isNaN + source.js + Underscore _.isNaN() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isNull.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isNull.sublime-snippet new file mode 100644 index 0000000..d844d5d --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isNull.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isNull + source.js + Underscore _.isNull() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isNumber.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isNumber.sublime-snippet new file mode 100644 index 0000000..f7fa43a --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isNumber.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isNumber + source.js + Underscore _.isNumber() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isObject.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isObject.sublime-snippet new file mode 100644 index 0000000..ccf376a --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isObject.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isObject + source.js + Underscore _.isObject() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isRegExp.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isRegExp.sublime-snippet new file mode 100644 index 0000000..13b796c --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isRegExp.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isRegExp + source.js + Underscore _.isRegExp() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isString.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isString.sublime-snippet new file mode 100644 index 0000000..f5ad799 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isString.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isString + source.js + Underscore _.isString() + diff --git a/Sublime/Underscore.js Snippets/Underscore-isUndefined.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-isUndefined.sublime-snippet new file mode 100644 index 0000000..1d3a11f --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-isUndefined.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _isUndefined + source.js + Underscore _.isUndefined() + diff --git a/Sublime/Underscore.js Snippets/Underscore-keys.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-keys.sublime-snippet new file mode 100644 index 0000000..5681385 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-keys.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _keys + source.js + Underscore _.keys() + diff --git a/Sublime/Underscore.js Snippets/Underscore-last.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-last.sublime-snippet new file mode 100644 index 0000000..4773d94 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-last.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _last + source.js + Underscore _.last() + diff --git a/Sublime/Underscore.js Snippets/Underscore-lastIndexOf.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-lastIndexOf.sublime-snippet new file mode 100644 index 0000000..1c06ec1 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-lastIndexOf.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _lastIndexOf + source.js + Underscore _.lastIndexOf() + diff --git a/Sublime/Underscore.js Snippets/Underscore-map.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-map.sublime-snippet new file mode 100644 index 0000000..b8d6cc1 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-map.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _map + source.js + Underscore _.map() + diff --git a/Sublime/Underscore.js Snippets/Underscore-max.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-max.sublime-snippet new file mode 100644 index 0000000..1d40e98 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-max.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _max + source.js + Underscore _.max() + diff --git a/Sublime/Underscore.js Snippets/Underscore-memoize.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-memoize.sublime-snippet new file mode 100644 index 0000000..dbc436a --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-memoize.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _memoize + source.js + Underscore _.memoize() + diff --git a/Sublime/Underscore.js Snippets/Underscore-min.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-min.sublime-snippet new file mode 100644 index 0000000..d6fb84a --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-min.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _min + source.js + Underscore _.min() + diff --git a/Sublime/Underscore.js Snippets/Underscore-mixin.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-mixin.sublime-snippet new file mode 100644 index 0000000..ac02bd2 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-mixin.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _mixin + source.js + Underscore _.mixin() + diff --git a/Sublime/Underscore.js Snippets/Underscore-noConflict.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-noConflict.sublime-snippet new file mode 100644 index 0000000..21ec222 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-noConflict.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _noConflict + source.js + Underscore _.noConflict() + diff --git a/Sublime/Underscore.js Snippets/Underscore-object.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-object.sublime-snippet new file mode 100644 index 0000000..6d0c7a8 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-object.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _object + source.js + Underscore _.object() + diff --git a/Sublime/Underscore.js Snippets/Underscore-omit.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-omit.sublime-snippet new file mode 100644 index 0000000..a2a9cbc --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-omit.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _omit + source.js + Underscore _.omit() + diff --git a/Sublime/Underscore.js Snippets/Underscore-once.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-once.sublime-snippet new file mode 100644 index 0000000..9249dfa --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-once.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _once + source.js + Underscore _.once() + diff --git a/Sublime/Underscore.js Snippets/Underscore-pairs.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-pairs.sublime-snippet new file mode 100644 index 0000000..7f12441 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-pairs.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _pairs + source.js + Underscore _.pairs() + diff --git a/Sublime/Underscore.js Snippets/Underscore-pick.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-pick.sublime-snippet new file mode 100644 index 0000000..25e7a36 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-pick.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _pick + source.js + Underscore _.pick() + diff --git a/Sublime/Underscore.js Snippets/Underscore-pluck.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-pluck.sublime-snippet new file mode 100644 index 0000000..1943dc1 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-pluck.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _pluck + source.js + Underscore _.pluck() + diff --git a/Sublime/Underscore.js Snippets/Underscore-random.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-random.sublime-snippet new file mode 100644 index 0000000..f89deaa --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-random.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _random + source.js + Underscore _.random() + diff --git a/Sublime/Underscore.js Snippets/Underscore-range.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-range.sublime-snippet new file mode 100644 index 0000000..c86fee7 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-range.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _range + source.js + Underscore _.range() + diff --git a/Sublime/Underscore.js Snippets/Underscore-reduce.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-reduce.sublime-snippet new file mode 100644 index 0000000..566d9a3 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-reduce.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _reduce + source.js + Underscore _.reduce() + diff --git a/Sublime/Underscore.js Snippets/Underscore-reduceRight.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-reduceRight.sublime-snippet new file mode 100644 index 0000000..8db3797 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-reduceRight.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _reduceRight + source.js + Underscore _.reduceRight() + diff --git a/Sublime/Underscore.js Snippets/Underscore-reject.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-reject.sublime-snippet new file mode 100644 index 0000000..5d3a0ba --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-reject.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _reject + source.js + Underscore _.reject() + diff --git a/Sublime/Underscore.js Snippets/Underscore-rest.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-rest.sublime-snippet new file mode 100644 index 0000000..f78492f --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-rest.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _rest + source.js + Underscore _.rest() + diff --git a/Sublime/Underscore.js Snippets/Underscore-result.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-result.sublime-snippet new file mode 100644 index 0000000..76d86cf --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-result.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _result + source.js + Underscore _.result() + diff --git a/Sublime/Underscore.js Snippets/Underscore-shuffle.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-shuffle.sublime-snippet new file mode 100644 index 0000000..91e5a97 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-shuffle.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _shuffle + source.js + Underscore _.shuffle() + diff --git a/Sublime/Underscore.js Snippets/Underscore-size.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-size.sublime-snippet new file mode 100644 index 0000000..c5aa3f5 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-size.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _size + source.js + Underscore _.size() + diff --git a/Sublime/Underscore.js Snippets/Underscore-sortBy.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-sortBy.sublime-snippet new file mode 100644 index 0000000..ea7e7d9 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-sortBy.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _sortBy + source.js + Underscore _.sortBy() + diff --git a/Sublime/Underscore.js Snippets/Underscore-sortedIndex.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-sortedIndex.sublime-snippet new file mode 100644 index 0000000..774c0cf --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-sortedIndex.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _sortedIndex + source.js + Underscore _.sortedIndex() + diff --git a/Sublime/Underscore.js Snippets/Underscore-tap.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-tap.sublime-snippet new file mode 100644 index 0000000..bae1fcc --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-tap.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _tap + source.js + Underscore _.tap() + diff --git a/Sublime/Underscore.js Snippets/Underscore-template.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-template.sublime-snippet new file mode 100644 index 0000000..f8b1414 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-template.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _template + source.js + Underscore _.template() + diff --git a/Sublime/Underscore.js Snippets/Underscore-throttle.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-throttle.sublime-snippet new file mode 100644 index 0000000..8749246 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-throttle.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _throttle + source.js + Underscore _.throttle() + diff --git a/Sublime/Underscore.js Snippets/Underscore-times.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-times.sublime-snippet new file mode 100644 index 0000000..bf159b2 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-times.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _times + source.js + Underscore _.times() + diff --git a/Sublime/Underscore.js Snippets/Underscore-toArray.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-toArray.sublime-snippet new file mode 100644 index 0000000..18816b0 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-toArray.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _toArray + source.js + Underscore _.toArray() + diff --git a/Sublime/Underscore.js Snippets/Underscore-union.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-union.sublime-snippet new file mode 100644 index 0000000..e42909a --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-union.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _union + source.js + Underscore _.union() + diff --git a/Sublime/Underscore.js Snippets/Underscore-uniq.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-uniq.sublime-snippet new file mode 100644 index 0000000..9754f6f --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-uniq.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _uniq + source.js + Underscore _.uniq() + diff --git a/Sublime/Underscore.js Snippets/Underscore-uniqueId.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-uniqueId.sublime-snippet new file mode 100644 index 0000000..9cec9b1 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-uniqueId.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _uniqueId + source.js + Underscore _.uniqueId() + diff --git a/Sublime/Underscore.js Snippets/Underscore-value.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-value.sublime-snippet new file mode 100644 index 0000000..dd74dd9 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-value.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _value + source.js + Underscore _.value() + diff --git a/Sublime/Underscore.js Snippets/Underscore-values.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-values.sublime-snippet new file mode 100644 index 0000000..e584dcd --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-values.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _values + source.js + Underscore _.values() + diff --git a/Sublime/Underscore.js Snippets/Underscore-where.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-where.sublime-snippet new file mode 100644 index 0000000..2cada17 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-where.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _where + source.js + Underscore _.where() + diff --git a/Sublime/Underscore.js Snippets/Underscore-without.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-without.sublime-snippet new file mode 100644 index 0000000..1316aad --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-without.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _without + source.js + Underscore _.without() + diff --git a/Sublime/Underscore.js Snippets/Underscore-wrap.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-wrap.sublime-snippet new file mode 100644 index 0000000..368d3a9 --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-wrap.sublime-snippet @@ -0,0 +1,10 @@ + + + + + _wrap + source.js + Underscore _.wrap() + diff --git a/Sublime/Underscore.js Snippets/Underscore-zip.sublime-snippet b/Sublime/Underscore.js Snippets/Underscore-zip.sublime-snippet new file mode 100644 index 0000000..d2cd57a --- /dev/null +++ b/Sublime/Underscore.js Snippets/Underscore-zip.sublime-snippet @@ -0,0 +1,8 @@ + + + + + _zip + source.js + Underscore _.zip() + diff --git a/Sublime/Underscore.js Snippets/package-metadata.json b/Sublime/Underscore.js Snippets/package-metadata.json new file mode 100644 index 0000000..7b6db07 --- /dev/null +++ b/Sublime/Underscore.js Snippets/package-metadata.json @@ -0,0 +1 @@ +{"url": "https://github.com/carlo/sublime-underscorejs-snippets", "version": "2012.12.06.05.34.02", "description": "Underscore 1.4.2 snippets for Sublime Text 2. The snippets follow object-oriented style, i.e. `_(array).map(\u2026)`."} \ No newline at end of file diff --git a/Sublime/User/Package Control.sublime-settings b/Sublime/User/Package Control.sublime-settings new file mode 100644 index 0000000..277c413 --- /dev/null +++ b/Sublime/User/Package Control.sublime-settings @@ -0,0 +1,84 @@ +{ + "auto_upgrade_last_run": null, + "installed_packages": + [ + "Abacus", + "AdvancedNewFile", + "AngularJS (CoffeeScript)", + "Antiki", + "AutoFileName", + "Block Cursor Everywhere", + "Bracketeer", + "BracketHighlighter", + "Chai Completions", + "Clipboard Manager", + "CoffeeComplete Plus (Autocompletion)", + "ConsoleExec", + "DocBlockr", + "EasyMotion", + "EditorConfig", + "Emmet", + "EncodingHelper", + "ExportHtml", + "FileDiffs", + "Git", + "GitHubinator", + "Grunt", + "Hayaku - tools for writing CSS faster", + "HTML5", + "Http Requester", + "jQuery", + "KeymapManager", + "LESS", + "LiveReload", + "Markdown Preview", + "Missing Palette Commands", + "Modific", + "MoveTab", + "Navigation History", + "Open Recent Files", + "OpenSearchResult", + "Package Control", + "PowerShell", + "Pretty JSON", + "Puppet", + "RecentActiveFiles", + "Related Files", + "Search Anywhere", + "SideBarEnhancements", + "SideBarGit", + "SmartMarkdown", + "Solarized Color Scheme", + "StringEncode", + "Sublime Files", + "sublime-better-coffeescript", + "sublime-github", + "SublimeLinter", + "SublimeTODO", + "Tag", + "Theme - Soda", + "TrailingSpaces", + "Twitter Bootstrap Snippets", + "Underscore.js Snippets", + "ZZZ.EthanBrown.SublimeKeyMap.Editor", + "ZZZ.EthanBrown.SublimeKeyMap.Git", + "ZZZ.EthanBrown.SublimeKeyMap.Util", + "ZZZ.EthanBrown.SublimeKeyMap.Web" + ], + "package_name_map": + { + "SublimeKeyMap.Editor": "ZZZ.EthanBrown.SublimeKeyMap.Editor", + "SublimeKeyMap.Git": "ZZZ.EthanBrown.SublimeKeyMap.Git", + "SublimeKeyMap.Util": "ZZZ.EthanBrown.SublimeKeyMap.Util", + "SublimeKeyMap.Web": "ZZZ.EthanBrown.SublimeKeyMap.Web" + }, + "repositories": + [ + "https://github.com/abrookins/OpenSearchResult", + "https://github.com/Iristyle/SublimeKeyMap.Editor", + "https://github.com/Iristyle/SublimeKeyMap.Git", + "https://github.com/Iristyle/SublimeKeyMap.Util", + "https://github.com/Iristyle/SublimeKeyMap.Web", + "https://github.com/Iristyle/SublimeLinter" + ] +} diff --git a/Sublime/User/SublimeGrunt.sublime-settings b/Sublime/User/SublimeGrunt.sublime-settings new file mode 100644 index 0000000..6f8151c --- /dev/null +++ b/Sublime/User/SublimeGrunt.sublime-settings @@ -0,0 +1,6 @@ +{ + "exec_args": { + "path": "C:\\Program Files (x86)\\nodejs" + } +} + diff --git a/Sublime/User/XML.sublime-settings b/Sublime/User/XML.sublime-settings new file mode 100644 index 0000000..02c82e0 --- /dev/null +++ b/Sublime/User/XML.sublime-settings @@ -0,0 +1,11 @@ +{ + "extensions": + [ + "xml", + "xsd", + "xslt", + "svg", + "nuspec", + "gpx" + ] +} diff --git a/VirtualBoxService/VirtualBoxService.nuspec b/VirtualBoxService/VirtualBoxService.nuspec new file mode 100644 index 0000000..e5b0bb5 --- /dev/null +++ b/VirtualBoxService/VirtualBoxService.nuspec @@ -0,0 +1,33 @@ + + + + VirtualBoxService + A Windows-Service to control Startup and Shutdown of Virtualbox VMs. + 0.1-beta + Felix Ruettiger + Ethan Brown + A Windows-Service to control Startup and Shutdown of Virtualbox VMs. + +* Starts and stops virtual machines of Oracle VirtualBox +* Supports three different shutdown-methods +* Runs as Windows-Service +* Uses the Virtualbox-Configuration of the user account under which the Service runs +* Delays shutdown of Windows until all machines have properly shutdown (only on Vista SP1 and higher) +* Configurable from within Virtualbox GUI or phpvirtualbox +* Starts and Stops Virtualbox-Webservice (vboxwebsrv) + + https://code.google.com/p/virtualboxservice/ + VirtualBox Service + http://www.gnu.org/licenses/gpl.html + false + https://github.com/Iristyle/ChocolateyPackages/raw/master/VirtualBoxService/vbox_logo2_gradient.png + + + + + + + + + + diff --git a/VirtualBoxService/tools/chocolateyInstall.ps1 b/VirtualBoxService/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..84015ab --- /dev/null +++ b/VirtualBoxService/tools/chocolateyInstall.ps1 @@ -0,0 +1,80 @@ +$package = 'VirtualBoxService' + +try { + function Which([string]$cmd) + { + Get-Command -ErrorAction "SilentlyContinue" $cmd | + Select -ExpandProperty Definition + } + + $binRoot = $Env:SystemDrive + + if ($Env:Chocolatey_Bin_Root) + { + $binRoot = Join-Path $Env:SystemDrive $Env:Chocolatey_Bin_Root + } + + $params = @{ + PackageName = $package; + Url = 'http://virtualboxservice.googlecode.com/files/VirtualBoxService-v0.1.zip'; + UnzipLocation = Join-Path $binRoot $package + #UnzipLocation = Join-Path $Env:ProgramFiles $package + } + + Install-ChocolateyZipPackage @params + + $installUtil = "$Env:windir\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe" + $path = "$params.UnzipLocation\VirtualBoxService.exe" + &$installUtil $path + + + # Welcome to VirtualboxService-Installer! + # 1 How to use + # Use the buttons to the right, to install or uninstall the service. Once the service is installed the “Virtualboxservice.exe” and its depending library-DLLs must stay at the current location. After the “Install Service”-button was pressed, a dialog appears, which asks you to enter the logon-information for the user, the service should run as. The virtualmachine-registry of this user is used. + # Copy the following VirtualboxService-Magic-Tag into the description of the machines you would like to be run by the service: + + # + + # Autostart: + # Possible values: “true” or “false”. + # Determines, if machine should be started by service on host-boot and shutdown on host-shutdown. + # ShutdownType: + # Possible values: “SaveState”, “ACPIShutdown”, “HardOff” + # · SaveState: Machine-State is saved on host-shutdown + # · ACPIShutdown: ACPI-Shutdown-Command is sent to the Machine on host-shutdown. + # · HardOff: Machine is turned off on host-shutdown. + # All shutdown-types will delay the host-shutdown as long as needed to properly shutdown all machines. This works reliably on Windows Vista SP1 and greater. On XP the delay is dependent on the setting of “WaitToKillService”-Registry-Entry (default: 20 Seconds). + # ACPIShutdownTimeout: Specifies the timeout for the acpi-shutdown-type (in milliseconds). + + # 2 License + # Copyright 2011 Felix Rüttiger. + # This software is distributed under the GPLv3-License. + + # This program is free software: you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation, either version 3 of the License, or + # (at your option) any later version. + + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + + +# # some files are copied to c:\windows\system32 +# $installVirtualBoxServiceScript = @" +# Push-Location '$sitePackages' +# &'$localPython' VirtualBoxService_postinstall.py `-install +# Remove-Item .\VirtualBoxService_postinstall.py +# "@ + +# Start-ChocolateyProcessAsAdmin $installVirtualBoxServiceScript + +# $VirtualBoxServiceTemp, $destination | +# Remove-Item -Recurse -ErrorAction SilentlyContinue + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +} diff --git a/VirtualBoxService/vbox_logo2_gradient.png b/VirtualBoxService/vbox_logo2_gradient.png new file mode 100644 index 0000000..bb436f8 Binary files /dev/null and b/VirtualBoxService/vbox_logo2_gradient.png differ