From a997d4427196a34d873d431b4e7192f16bbf7398 Mon Sep 17 00:00:00 2001 From: Preston Lamb Date: Thu, 5 May 2016 11:05:00 -0600 Subject: [PATCH] moved all the completions into snippets instead. --- .gitignore | 2 ++ ng2-html.sublime-completions | 9 --------- ng2-ts.sublime-completions | 5 ----- snippets/ng2-for.sublime-snippet | 7 +++++++ snippets/ng2-if.sublime-snippet | 7 +++++++ snippets/ng2-model.sublime-snippet | 7 +++++++ snippets/ng2-router-link.sublime-snippet | 7 +++++++ snippets/ng2-switch.sublime-snippet | 11 +++++++++++ 8 files changed, 41 insertions(+), 14 deletions(-) create mode 100644 .gitignore delete mode 100644 ng2-html.sublime-completions delete mode 100644 ng2-ts.sublime-completions create mode 100644 snippets/ng2-for.sublime-snippet create mode 100644 snippets/ng2-if.sublime-snippet create mode 100644 snippets/ng2-model.sublime-snippet create mode 100644 snippets/ng2-router-link.sublime-snippet create mode 100644 snippets/ng2-switch.sublime-snippet diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..15c74cd --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +test.* \ No newline at end of file diff --git a/ng2-html.sublime-completions b/ng2-html.sublime-completions deleted file mode 100644 index 283c580..0000000 --- a/ng2-html.sublime-completions +++ /dev/null @@ -1,9 +0,0 @@ -{ - "scope": "text.html meta.tag", - "completions": [ - { "trigger": "*ngFor", "contents": "*ngFor=\"let ${1:item} of ${2:list}\" "} - { "trigger": "*ngIf", "contents": "*ngIf=\"${1:condition}\" "} - { "trigger": "ngModel", "contents": " [ngModel]=\"${1:model}\" "} - { "trigger": "routerLink", "contents": " [routerLink]=\"['${1:RouteName}']\" "} - ] -} \ No newline at end of file diff --git a/ng2-ts.sublime-completions b/ng2-ts.sublime-completions deleted file mode 100644 index ab4ec03..0000000 --- a/ng2-ts.sublime-completions +++ /dev/null @@ -1,5 +0,0 @@ -{ - "scope": "source.ts source.tsx", - "completions": [ - ] -} \ No newline at end of file diff --git a/snippets/ng2-for.sublime-snippet b/snippets/ng2-for.sublime-snippet new file mode 100644 index 0000000..d9dd52c --- /dev/null +++ b/snippets/ng2-for.sublime-snippet @@ -0,0 +1,7 @@ + + + ngFor + text.html meta.tag + Angular 2 ngFor Snippet + \ No newline at end of file diff --git a/snippets/ng2-if.sublime-snippet b/snippets/ng2-if.sublime-snippet new file mode 100644 index 0000000..65b5707 --- /dev/null +++ b/snippets/ng2-if.sublime-snippet @@ -0,0 +1,7 @@ + + + ngIf + text.html meta.tag + Angular 2 ngIf Snippet + \ No newline at end of file diff --git a/snippets/ng2-model.sublime-snippet b/snippets/ng2-model.sublime-snippet new file mode 100644 index 0000000..c6a773a --- /dev/null +++ b/snippets/ng2-model.sublime-snippet @@ -0,0 +1,7 @@ + + + ngModel + text.html meta.tag + Angular 2 ngModel Snippet + \ No newline at end of file diff --git a/snippets/ng2-router-link.sublime-snippet b/snippets/ng2-router-link.sublime-snippet new file mode 100644 index 0000000..aead57e --- /dev/null +++ b/snippets/ng2-router-link.sublime-snippet @@ -0,0 +1,7 @@ + + + routerLink + text.html meta.tag + Angular 2 routerLink Snippet + \ No newline at end of file diff --git a/snippets/ng2-switch.sublime-snippet b/snippets/ng2-switch.sublime-snippet new file mode 100644 index 0000000..9377531 --- /dev/null +++ b/snippets/ng2-switch.sublime-snippet @@ -0,0 +1,11 @@ + + +
${3:output}
+
${5:output}
+ + ]]>
+ ngSwitch + text.html + Angular 2 ngSwitch Snippet +
\ No newline at end of file