diff --git a/snippets/c++-mode/beginend b/snippets/c++-mode/beginend index 68303e2..590c708 100644 --- a/snippets/c++-mode/beginend +++ b/snippets/c++-mode/beginend @@ -1,3 +1,4 @@ #name : v.begin(), v.end() +# key: beginend # -- ${1:v}.begin(), $1.end \ No newline at end of file diff --git a/snippets/c++-mode/class b/snippets/c++-mode/class index 820fc6c..5289d9c 100644 --- a/snippets/c++-mode/class +++ b/snippets/c++-mode/class @@ -1,4 +1,5 @@ #name : class ... { ... } +# key: class # -- class ${1:Name} { diff --git a/snippets/c++-mode/ns b/snippets/c++-mode/ns index 0c2513f..0b736e7 100644 --- a/snippets/c++-mode/ns +++ b/snippets/c++-mode/ns @@ -1,3 +1,4 @@ #name : namespace ... +# key: ns # -- namespace \ No newline at end of file diff --git a/snippets/c++-mode/template b/snippets/c++-mode/template index 7e50616..d2ad159 100644 --- a/snippets/c++-mode/template +++ b/snippets/c++-mode/template @@ -1,3 +1,4 @@ #name : template +# key: template # -- template \ No newline at end of file diff --git a/snippets/c++-mode/using b/snippets/c++-mode/using index 13d0f5d..27ec885 100644 --- a/snippets/c++-mode/using +++ b/snippets/c++-mode/using @@ -1,4 +1,5 @@ #name : using namespace ... +# key: using # -- using namespace ${std}; $0 \ No newline at end of file diff --git a/snippets/c-mode/fopen b/snippets/c-mode/fopen index 5b49529..0e48c21 100644 --- a/snippets/c-mode/fopen +++ b/snippets/c-mode/fopen @@ -1,3 +1,4 @@ #name : FILE *fp = fopen(..., ...); +# key: fopen # -- FILE *${fp} = fopen(${"file"}, "${r}"); \ No newline at end of file diff --git a/snippets/c-mode/printf b/snippets/c-mode/printf index 055461d..4006b7c 100644 --- a/snippets/c-mode/printf +++ b/snippets/c-mode/printf @@ -1,6 +1,7 @@ # -*- mode: snippet -*- # name : printf # contributor : joaotavora +# key: printf # -- printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);") }$2${1:$(if (string-match "%" text) "\);" "")} \ No newline at end of file diff --git a/snippets/cc-mode/do b/snippets/cc-mode/do index 5f7a313..70e208a 100644 --- a/snippets/cc-mode/do +++ b/snippets/cc-mode/do @@ -1,4 +1,5 @@ #name : do { ... } while (...) +# key: do # -- do { diff --git a/snippets/cc-mode/for b/snippets/cc-mode/for index c4cade6..7343e58 100644 --- a/snippets/cc-mode/for +++ b/snippets/cc-mode/for @@ -1,4 +1,5 @@ #name : for (...; ...; ...) { ... } +# key: for # -- for (${1:int i = 0}; ${2:i < N}; ${3:++i}) { diff --git a/snippets/cc-mode/if b/snippets/cc-mode/if index c3fe10d..a52bee9 100644 --- a/snippets/cc-mode/if +++ b/snippets/cc-mode/if @@ -1,4 +1,5 @@ #name : if (...) { ... } +# key: cc-modeif # -- if (${1:condition}) { diff --git a/snippets/cc-mode/inc b/snippets/cc-mode/inc index c18a4d2..25bd8fe 100644 --- a/snippets/cc-mode/inc +++ b/snippets/cc-mode/inc @@ -1,3 +1,4 @@ #name : #include "..." +# key: inc # -- #include "$1" \ No newline at end of file diff --git a/snippets/cc-mode/inc.1 b/snippets/cc-mode/inc.1 index f85c08a..e367d5b 100644 --- a/snippets/cc-mode/inc.1 +++ b/snippets/cc-mode/inc.1 @@ -1,3 +1,4 @@ #name : #include <...> +# key: inc # -- #include <$1> \ No newline at end of file diff --git a/snippets/cc-mode/main b/snippets/cc-mode/main index 292a99c..620de06 100644 --- a/snippets/cc-mode/main +++ b/snippets/cc-mode/main @@ -1,4 +1,5 @@ #name: int main(argc, argv) { ... } +# key: main # -- int main(int argc, char *argv[]) { diff --git a/snippets/cc-mode/once b/snippets/cc-mode/once index 1b63c39..d035329 100644 --- a/snippets/cc-mode/once +++ b/snippets/cc-mode/once @@ -1,4 +1,5 @@ #name : #ifndef XXX; #define XXX; #endif +# key: once # -- #ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H_} #define $1 diff --git a/snippets/cc-mode/struct b/snippets/cc-mode/struct index f50dabf..aeacc33 100644 --- a/snippets/cc-mode/struct +++ b/snippets/cc-mode/struct @@ -1,4 +1,5 @@ #name : struct ... { ... } +# key: struct # -- struct ${1:name} { diff --git a/snippets/csharp-mode/attrib b/snippets/csharp-mode/attrib index 4ff58d3..ccc9754 100644 --- a/snippets/csharp-mode/attrib +++ b/snippets/csharp-mode/attrib @@ -1,5 +1,6 @@ #contributor : Alejandro Espinoza Esparza #name : private attribute ....; +# key: attrib # -- /// /// $3 diff --git a/snippets/csharp-mode/attrib.1 b/snippets/csharp-mode/attrib.1 index 8153be9..ba06d76 100644 --- a/snippets/csharp-mode/attrib.1 +++ b/snippets/csharp-mode/attrib.1 @@ -1,5 +1,6 @@ #contributor : Alejandro Espinoza Esparza #name : private attribute ....; public property ... ... { ... } +# key: attrib # -- /// /// $3 diff --git a/snippets/csharp-mode/attrib.2 b/snippets/csharp-mode/attrib.2 index 08d58c8..2798ec9 100644 --- a/snippets/csharp-mode/attrib.2 +++ b/snippets/csharp-mode/attrib.2 @@ -1,5 +1,6 @@ #contributor : Alejandro Espinoza Esparza #name : private _attribute ....; public Property ... ... { ... } +# key: attrib # -- /// /// $3 diff --git a/snippets/csharp-mode/class b/snippets/csharp-mode/class index acef6d1..bea8a1e 100644 --- a/snippets/csharp-mode/class +++ b/snippets/csharp-mode/class @@ -1,5 +1,6 @@ #contributor : Alejandro Espinoza Esparza #name : class ... { ... } +# key: class # -- ${5:public} class ${1:Name} { diff --git a/snippets/csharp-mode/comment b/snippets/csharp-mode/comment index c2a4b70..44f2fb3 100644 --- a/snippets/csharp-mode/comment +++ b/snippets/csharp-mode/comment @@ -1,5 +1,6 @@ #contributor : Alejandro Espinoza Esparza #name : /// ... +# key: comment # -- /// /// $1 diff --git a/snippets/csharp-mode/comment.1 b/snippets/csharp-mode/comment.1 index 08c802b..dda243e 100644 --- a/snippets/csharp-mode/comment.1 +++ b/snippets/csharp-mode/comment.1 @@ -1,4 +1,5 @@ #contributor : Alejandro Espinoza Esparza #name : /// ... +# key: comment # -- /// $2 \ No newline at end of file diff --git a/snippets/csharp-mode/comment.2 b/snippets/csharp-mode/comment.2 index cb3aa80..34bc58c 100644 --- a/snippets/csharp-mode/comment.2 +++ b/snippets/csharp-mode/comment.2 @@ -1,4 +1,5 @@ #contributor : Alejandro Espinoza Esparza #name : /// ... +# key: comment # -- /// $1 \ No newline at end of file diff --git a/snippets/csharp-mode/comment.3 b/snippets/csharp-mode/comment.3 index ec57a75..15f2e1a 100644 --- a/snippets/csharp-mode/comment.3 +++ b/snippets/csharp-mode/comment.3 @@ -1,4 +1,5 @@ #contributor : Alejandro Espinoza Esparza #name : /// ... +# key: comment # -- /// $2 \ No newline at end of file diff --git a/snippets/csharp-mode/method b/snippets/csharp-mode/method index b63b3c2..7036471 100644 --- a/snippets/csharp-mode/method +++ b/snippets/csharp-mode/method @@ -1,5 +1,6 @@ #contributor : Alejandro Espinoza Esparza #name : public void Method { ... } +# key: method # -- /// /// ${5:Description} diff --git a/snippets/csharp-mode/namespace b/snippets/csharp-mode/namespace index bc4dec9..4d8d154 100644 --- a/snippets/csharp-mode/namespace +++ b/snippets/csharp-mode/namespace @@ -1,5 +1,6 @@ #contributor : Alejandro Espinoza Esparza #name : namespace .. { ... } +# key: namespace # -- namespace $1 { diff --git a/snippets/csharp-mode/prop b/snippets/csharp-mode/prop index 7260fac..7d75dee 100644 --- a/snippets/csharp-mode/prop +++ b/snippets/csharp-mode/prop @@ -1,5 +1,6 @@ #contributor : Alejandro Espinoza Esparza #name : property ... ... { ... } +# key: prop # -- /// /// $5 diff --git a/snippets/csharp-mode/region b/snippets/csharp-mode/region index bcc3cec..498d153 100644 --- a/snippets/csharp-mode/region +++ b/snippets/csharp-mode/region @@ -1,5 +1,6 @@ #contributor : Alejandro Espinoza Esparza #name : #region ... #endregion +# key: region # -- #region $1 $0 diff --git a/snippets/csharp-mode/using b/snippets/csharp-mode/using index f10d1ba..4556b8c 100644 --- a/snippets/csharp-mode/using +++ b/snippets/csharp-mode/using @@ -1,4 +1,5 @@ #contributor : Alejandro Espinoza Esparza #name : using ...; +# key: using # -- using $1; \ No newline at end of file diff --git a/snippets/csharp-mode/using.1 b/snippets/csharp-mode/using.1 index bf87f85..fd80875 100644 --- a/snippets/csharp-mode/using.1 +++ b/snippets/csharp-mode/using.1 @@ -1,4 +1,5 @@ #contributor : Alejandro Espinoza Esparza #name : using System; +# key: using # -- using System; \ No newline at end of file diff --git a/snippets/csharp-mode/using.2 b/snippets/csharp-mode/using.2 index d0d39bf..ebcaadb 100644 --- a/snippets/csharp-mode/using.2 +++ b/snippets/csharp-mode/using.2 @@ -1,4 +1,5 @@ #contributor : Alejandro Espinoza Esparza #name : using System....; +# key: using # -- using System.$1; \ No newline at end of file diff --git a/snippets/css-mode/bg b/snippets/css-mode/bg index d731807..eb734d4 100644 --- a/snippets/css-mode/bg +++ b/snippets/css-mode/bg @@ -1,3 +1,4 @@ #name : background-color: ... +# key: bg # -- background-color: #${1:DDD}; \ No newline at end of file diff --git a/snippets/css-mode/bg.1 b/snippets/css-mode/bg.1 index d31f540..9da6afc 100644 --- a/snippets/css-mode/bg.1 +++ b/snippets/css-mode/bg.1 @@ -1,3 +1,4 @@ #name : background-image: ... +# key: bg # -- background-image: url($1); \ No newline at end of file diff --git a/snippets/css-mode/bor b/snippets/css-mode/bor index eb3a2b4..028d6c7 100644 --- a/snippets/css-mode/bor +++ b/snippets/css-mode/bor @@ -1,3 +1,4 @@ #name : border size style color +# key: bor # -- border: ${1:1px} ${2:solid} #${3:999}; \ No newline at end of file diff --git a/snippets/css-mode/cl b/snippets/css-mode/cl index 8d03a13..efc0047 100644 --- a/snippets/css-mode/cl +++ b/snippets/css-mode/cl @@ -1,4 +1,5 @@ #contributor : rejeep #name : clear: ... +# key: cl # -- clear: $1; \ No newline at end of file diff --git a/snippets/css-mode/disp.block b/snippets/css-mode/disp.block index 5e45393..de9db53 100644 --- a/snippets/css-mode/disp.block +++ b/snippets/css-mode/disp.block @@ -1,4 +1,5 @@ #contributor : rejeep #name : display: block +# key: disp # -- display: block; \ No newline at end of file diff --git a/snippets/css-mode/disp.inline b/snippets/css-mode/disp.inline index 9cc60c9..a71184e 100644 --- a/snippets/css-mode/disp.inline +++ b/snippets/css-mode/disp.inline @@ -1,4 +1,5 @@ #contributor : rejeep #name : display: inline +# key: disp # -- display: inline; \ No newline at end of file diff --git a/snippets/css-mode/disp.none b/snippets/css-mode/disp.none index c9ac636..f5c5be4 100644 --- a/snippets/css-mode/disp.none +++ b/snippets/css-mode/disp.none @@ -1,4 +1,5 @@ #contributor : rejeep #name : display: none +# key: disp # -- display: none; \ No newline at end of file diff --git a/snippets/css-mode/ff b/snippets/css-mode/ff index 17d0b94..740d5fd 100644 --- a/snippets/css-mode/ff +++ b/snippets/css-mode/ff @@ -1,4 +1,5 @@ #contributor : rejeep #name : font-family: ... +# key: ff # -- font-family: $1; \ No newline at end of file diff --git a/snippets/css-mode/fs b/snippets/css-mode/fs index 90ff403..6401be7 100644 --- a/snippets/css-mode/fs +++ b/snippets/css-mode/fs @@ -1,4 +1,5 @@ #contributor : rejeep #name : font-size: ... +# key: fs # -- font-size: ${12px}; \ No newline at end of file diff --git a/snippets/css-mode/mar.bottom b/snippets/css-mode/mar.bottom index a5b6afd..834cf6a 100644 --- a/snippets/css-mode/mar.bottom +++ b/snippets/css-mode/mar.bottom @@ -1,4 +1,5 @@ #contributor : rejeep #name : margin-bottom: ... +# key: mar # -- margin-bottom: $1; \ No newline at end of file diff --git a/snippets/css-mode/mar.left b/snippets/css-mode/mar.left index 7285297..1d9fd6e 100644 --- a/snippets/css-mode/mar.left +++ b/snippets/css-mode/mar.left @@ -1,4 +1,5 @@ #contributor : rejeep #name : margin-left: ... +# key: mar # -- margin-left: $1; \ No newline at end of file diff --git a/snippets/css-mode/mar.mar b/snippets/css-mode/mar.mar index c649ca4..833431c 100644 --- a/snippets/css-mode/mar.mar +++ b/snippets/css-mode/mar.mar @@ -1,4 +1,5 @@ #contributor : rejeep #name : margin: ... +# key: mar # -- margin: $1; \ No newline at end of file diff --git a/snippets/css-mode/mar.margin b/snippets/css-mode/mar.margin index 49647e7..dfafbaf 100644 --- a/snippets/css-mode/mar.margin +++ b/snippets/css-mode/mar.margin @@ -1,4 +1,5 @@ #contributor : rejeep #name : margin top right bottom left +# key: mar # -- margin: ${top} ${right} ${bottom} ${left}; \ No newline at end of file diff --git a/snippets/css-mode/mar.right b/snippets/css-mode/mar.right index 41bac78..d940968 100644 --- a/snippets/css-mode/mar.right +++ b/snippets/css-mode/mar.right @@ -1,4 +1,5 @@ #contributor : rejeep #name : margin-right: ... +# key: mar # -- margin-right: $1; \ No newline at end of file diff --git a/snippets/css-mode/mar.top b/snippets/css-mode/mar.top index 0934d80..13fa0c1 100644 --- a/snippets/css-mode/mar.top +++ b/snippets/css-mode/mar.top @@ -1,4 +1,5 @@ #contributor : rejeep #name : margin-top: ... +# key: mar # -- margin-top: $1; \ No newline at end of file diff --git a/snippets/css-mode/pad.bottom b/snippets/css-mode/pad.bottom index b8915c8..5770e46 100644 --- a/snippets/css-mode/pad.bottom +++ b/snippets/css-mode/pad.bottom @@ -1,4 +1,5 @@ #contributor : rejeep #name : padding-bottom: ... +# key: pad # -- padding-bottom: $1; \ No newline at end of file diff --git a/snippets/css-mode/pad.left b/snippets/css-mode/pad.left index d4927f5..5fe2bc6 100644 --- a/snippets/css-mode/pad.left +++ b/snippets/css-mode/pad.left @@ -1,4 +1,5 @@ #contributor : rejeep #name : padding-left: ... +# key: pad # -- padding-left: $1; \ No newline at end of file diff --git a/snippets/css-mode/pad.pad b/snippets/css-mode/pad.pad index 6359283..4673447 100644 --- a/snippets/css-mode/pad.pad +++ b/snippets/css-mode/pad.pad @@ -1,4 +1,5 @@ #contributor : rejeep #name : padding: ... +# key: pad # -- padding: $1; \ No newline at end of file diff --git a/snippets/css-mode/pad.padding b/snippets/css-mode/pad.padding index 05fc4e6..ae038e4 100644 --- a/snippets/css-mode/pad.padding +++ b/snippets/css-mode/pad.padding @@ -1,4 +1,5 @@ #contributor : rejeep #name : padding: top right bottom left +# key: pad # -- padding: ${top} ${right} ${bottom} ${left}; \ No newline at end of file diff --git a/snippets/css-mode/pad.right b/snippets/css-mode/pad.right index bb8f3d3..7488aba 100644 --- a/snippets/css-mode/pad.right +++ b/snippets/css-mode/pad.right @@ -1,4 +1,5 @@ #contributor : rejeep #name : padding-right: ... +# key: pad # -- padding-right: $1; \ No newline at end of file diff --git a/snippets/css-mode/pad.top b/snippets/css-mode/pad.top index 992d649..a30355d 100644 --- a/snippets/css-mode/pad.top +++ b/snippets/css-mode/pad.top @@ -1,4 +1,5 @@ #contributor : rejeep #name : padding-top: ... +# key: pad # -- padding-top: $1; \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/x-dired.process_marked.yasnippet b/snippets/emacs-lisp-mode/x-dired.process_marked.yasnippet index 4e446f9..9af5a26 100755 --- a/snippets/emacs-lisp-mode/x-dired.process_marked.yasnippet +++ b/snippets/emacs-lisp-mode/x-dired.process_marked.yasnippet @@ -1,5 +1,6 @@ #contributor: Xah Lee (XahLee.org) #name: process marked files in dired +# key: x-dired # -- ;; idiom for processing a list of files in dired's marked files diff --git a/snippets/emacs-lisp-mode/x-file.process.yasnippet b/snippets/emacs-lisp-mode/x-file.process.yasnippet index 3e22986..3c82822 100755 --- a/snippets/emacs-lisp-mode/x-file.process.yasnippet +++ b/snippets/emacs-lisp-mode/x-file.process.yasnippet @@ -1,5 +1,6 @@ #contributor: Xah Lee (XahLee.org) #name: a function that process a file +# key: x-file # -- (defun doThisFile (fpath) "Process the file at path FPATH ..." diff --git a/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet b/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet index 015c0f2..2b23983 100755 --- a/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet +++ b/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet @@ -1,5 +1,6 @@ #contributor: Xah Lee (XahLee.org) #name: read lines of a file +# key: x-file # -- (defun read-lines (filePath) "Return a list of lines in FILEPATH." diff --git a/snippets/emacs-lisp-mode/x-find-replace.yasnippet b/snippets/emacs-lisp-mode/x-find-replace.yasnippet index dad0430..d4c4d11 100755 --- a/snippets/emacs-lisp-mode/x-find-replace.yasnippet +++ b/snippets/emacs-lisp-mode/x-find-replace.yasnippet @@ -1,5 +1,6 @@ #contributor: Xah Lee (XahLee.org) #name: find and replace on region +# key: x-find-replace # -- (defun replace-html-chars-region (start end) "Replace “<” to “<” and other chars in HTML. diff --git a/snippets/emacs-lisp-mode/x-grabstring.yasnippet b/snippets/emacs-lisp-mode/x-grabstring.yasnippet index 272bc51..d348e93 100755 --- a/snippets/emacs-lisp-mode/x-grabstring.yasnippet +++ b/snippets/emacs-lisp-mode/x-grabstring.yasnippet @@ -1,4 +1,5 @@ #contributor: Xah Lee (XahLee.org) #name: grab buffer substring +# key: x-grabstring # -- (setq $0 (buffer-substring-no-properties myStartPos myEndPos)) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/x-grabthing.yasnippet b/snippets/emacs-lisp-mode/x-grabthing.yasnippet index ec6aed4..2c0079d 100755 --- a/snippets/emacs-lisp-mode/x-grabthing.yasnippet +++ b/snippets/emacs-lisp-mode/x-grabthing.yasnippet @@ -1,4 +1,5 @@ #contributor: Xah Lee (XahLee.org) #name: grab word under cursor +# key: x-grabthing # -- (setq $0 (thing-at-point 'symbol)) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/x-traverse_dir.yasnippet b/snippets/emacs-lisp-mode/x-traverse_dir.yasnippet index 9547eea..cfa461a 100755 --- a/snippets/emacs-lisp-mode/x-traverse_dir.yasnippet +++ b/snippets/emacs-lisp-mode/x-traverse_dir.yasnippet @@ -1,5 +1,6 @@ #name: traversing a directory #contributor: Xah Lee (XahLee.org) +# key: x-traverse_dir # -- ;; apply a function to all files in a dir (require 'find-lisp) diff --git a/snippets/emacs-lisp-mode/x-word-or-region.yasnippet b/snippets/emacs-lisp-mode/x-word-or-region.yasnippet index 67c6761..c7b851b 100755 --- a/snippets/emacs-lisp-mode/x-word-or-region.yasnippet +++ b/snippets/emacs-lisp-mode/x-word-or-region.yasnippet @@ -1,5 +1,6 @@ #contributor: Xah Lee (XahLee.org) #name: Command that works on region or word +# key: x-word-or-region # -- ;; example of a command that works on current word or text selection (defun down-case-word-or-region () diff --git a/snippets/erlang-mode/after b/snippets/erlang-mode/after index f20fe88..996c847 100644 --- a/snippets/erlang-mode/after +++ b/snippets/erlang-mode/after @@ -1,4 +1,5 @@ #name : after ... -> +# key: after # -- after $1 -> $0 \ No newline at end of file diff --git a/snippets/erlang-mode/begin b/snippets/erlang-mode/begin index 512374a..b74e6fa 100644 --- a/snippets/erlang-mode/begin +++ b/snippets/erlang-mode/begin @@ -1,4 +1,5 @@ #name : begin ... end +# key: begin # -- begin $0 diff --git a/snippets/erlang-mode/beh b/snippets/erlang-mode/beh index 43fd971..e68397a 100644 --- a/snippets/erlang-mode/beh +++ b/snippets/erlang-mode/beh @@ -1,4 +1,5 @@ #name : -behaviour(...). +# key: beh # -- -behaviour(${1:gen_server}). $0 \ No newline at end of file diff --git a/snippets/erlang-mode/case b/snippets/erlang-mode/case index 1a4ada5..9a2337c 100644 --- a/snippets/erlang-mode/case +++ b/snippets/erlang-mode/case @@ -1,4 +1,5 @@ #name : case ... of ... end +# key: case # -- case $1 of $0 diff --git a/snippets/erlang-mode/compile b/snippets/erlang-mode/compile index c369368..ce38c20 100644 --- a/snippets/erlang-mode/compile +++ b/snippets/erlang-mode/compile @@ -1,4 +1,5 @@ #name : -compile(...). +# key: compile # -- -compile([${1:export_all}]). $0 \ No newline at end of file diff --git a/snippets/erlang-mode/def b/snippets/erlang-mode/def index ccbe5fb..e6c6de0 100644 --- a/snippets/erlang-mode/def +++ b/snippets/erlang-mode/def @@ -1,4 +1,5 @@ #name : -define(...,...). +# key: def # -- -define($1,$2). $0 \ No newline at end of file diff --git a/snippets/erlang-mode/exp b/snippets/erlang-mode/exp index 9000140..db614f3 100644 --- a/snippets/erlang-mode/exp +++ b/snippets/erlang-mode/exp @@ -1,5 +1,6 @@ #name : -export([]). #contributor : hitesh +# key: exp # -- -export([${1:start/0}]). $0 \ No newline at end of file diff --git a/snippets/erlang-mode/fun b/snippets/erlang-mode/fun index 366f488..82e8e79 100644 --- a/snippets/erlang-mode/fun +++ b/snippets/erlang-mode/fun @@ -1,3 +1,4 @@ #name : fun (...) -> ... end +# key: fun # -- fun ($1) -> $0 end \ No newline at end of file diff --git a/snippets/erlang-mode/if b/snippets/erlang-mode/if index 4f2271a..788d1f3 100644 --- a/snippets/erlang-mode/if +++ b/snippets/erlang-mode/if @@ -1,4 +1,5 @@ #name : if ... -> ... ; true -> ... end +# key: erlang-modeif # -- if $1 -> $2; diff --git a/snippets/erlang-mode/ifdef b/snippets/erlang-mode/ifdef index daf9479..8332efa 100644 --- a/snippets/erlang-mode/ifdef +++ b/snippets/erlang-mode/ifdef @@ -1,4 +1,5 @@ #name : -ifdef(...). ... -endif. +# key: erlang-modeifdef # -- -ifdef($1). $0 diff --git a/snippets/erlang-mode/ifndef b/snippets/erlang-mode/ifndef index bae9948..d46f056 100644 --- a/snippets/erlang-mode/ifndef +++ b/snippets/erlang-mode/ifndef @@ -1,4 +1,5 @@ #name : -ifndef(...). ... -endif. +# key: erlang-modeifndef # -- -ifndef($1). $0 diff --git a/snippets/erlang-mode/imp b/snippets/erlang-mode/imp index 233aa79..9444005 100644 --- a/snippets/erlang-mode/imp +++ b/snippets/erlang-mode/imp @@ -1,5 +1,6 @@ #name : -import([]). #contributor : hitesh +# key: imp # -- -import(${1:lists}, [${2:map/2, sum/1}]). $0 \ No newline at end of file diff --git a/snippets/erlang-mode/inc b/snippets/erlang-mode/inc index 1e7cee7..9a4d833 100644 --- a/snippets/erlang-mode/inc +++ b/snippets/erlang-mode/inc @@ -1,4 +1,5 @@ #name : -include("..."). +# key: inc # -- -include("$1"). $0 \ No newline at end of file diff --git a/snippets/erlang-mode/inc.lib b/snippets/erlang-mode/inc.lib index b98bc1a..1fed653 100644 --- a/snippets/erlang-mode/inc.lib +++ b/snippets/erlang-mode/inc.lib @@ -1,4 +1,5 @@ #name : -include_lib("..."). +# key: inc # -- -include_lib("$1"). $0 \ No newline at end of file diff --git a/snippets/erlang-mode/loop b/snippets/erlang-mode/loop index 151be85..c2f6b33 100644 --- a/snippets/erlang-mode/loop +++ b/snippets/erlang-mode/loop @@ -1,4 +1,5 @@ #name : loop(...) -> receive _ -> loop(...) end. +# key: loop # -- ${1:loop}($2) -> receive diff --git a/snippets/erlang-mode/mod b/snippets/erlang-mode/mod index 58a8eff..a9df25e 100644 --- a/snippets/erlang-mode/mod +++ b/snippets/erlang-mode/mod @@ -1,5 +1,6 @@ #name : -module(). #contributor : hitesh +# key: mod # -- -module(${1:`(file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}). diff --git a/snippets/erlang-mode/rcv b/snippets/erlang-mode/rcv index 37586ff..b584e33 100644 --- a/snippets/erlang-mode/rcv +++ b/snippets/erlang-mode/rcv @@ -1,4 +1,5 @@ #name : receive ... -> ... end +# key: rcv # -- receive $1 -> $0 diff --git a/snippets/erlang-mode/rcv.after b/snippets/erlang-mode/rcv.after index 96d0634..27d4739 100644 --- a/snippets/erlang-mode/rcv.after +++ b/snippets/erlang-mode/rcv.after @@ -1,4 +1,5 @@ #name : receive after ... -> ... end +# key: rcv # -- receive after diff --git a/snippets/erlang-mode/rec b/snippets/erlang-mode/rec index 958fc20..5b18cfe 100644 --- a/snippets/erlang-mode/rec +++ b/snippets/erlang-mode/rec @@ -1,4 +1,5 @@ #name : -record(...,{...}). +# key: rec # -- -record($1,{$2}). $0 \ No newline at end of file diff --git a/snippets/erlang-mode/try b/snippets/erlang-mode/try index f40ea42..9eea5aa 100644 --- a/snippets/erlang-mode/try +++ b/snippets/erlang-mode/try @@ -1,4 +1,5 @@ #name : try ... of ... catch after end +# key: try # -- try $1 of $0 diff --git a/snippets/erlang-mode/undef b/snippets/erlang-mode/undef index 8e37217..688c1f9 100644 --- a/snippets/erlang-mode/undef +++ b/snippets/erlang-mode/undef @@ -1,4 +1,5 @@ #name : -undef(...). +# key: undef # -- -undef($1). $0 \ No newline at end of file diff --git a/snippets/f90-mode/au b/snippets/f90-mode/au index e9cdaf9..2646685 100644 --- a/snippets/f90-mode/au +++ b/snippets/f90-mode/au @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : automatic +# key: au # -- automatic $0 \ No newline at end of file diff --git a/snippets/f90-mode/bd b/snippets/f90-mode/bd index 811caf6..398a5cd 100644 --- a/snippets/f90-mode/bd +++ b/snippets/f90-mode/bd @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : block data +# key: bd # -- block data $0 \ No newline at end of file diff --git a/snippets/f90-mode/c b/snippets/f90-mode/c index e2f85ba..8bb855b 100644 --- a/snippets/f90-mode/c +++ b/snippets/f90-mode/c @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : continue +# key: c # -- continue $0 \ No newline at end of file diff --git a/snippets/f90-mode/ch b/snippets/f90-mode/ch index 212637e..e10214c 100644 --- a/snippets/f90-mode/ch +++ b/snippets/f90-mode/ch @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : character +# key: ch # -- character $0 \ No newline at end of file diff --git a/snippets/f90-mode/cx b/snippets/f90-mode/cx index d7a9db1..ac294d8 100644 --- a/snippets/f90-mode/cx +++ b/snippets/f90-mode/cx @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : complex +# key: cx # -- complex $0 \ No newline at end of file diff --git a/snippets/f90-mode/dc b/snippets/f90-mode/dc index 76d9827..318f464 100644 --- a/snippets/f90-mode/dc +++ b/snippets/f90-mode/dc @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : double complex +# key: dc # -- double complex $0 \ No newline at end of file diff --git a/snippets/f90-mode/do b/snippets/f90-mode/do index 813ceeb..1ade918 100644 --- a/snippets/f90-mode/do +++ b/snippets/f90-mode/do @@ -1,5 +1,6 @@ #contributor: Li Zhu #name : do while (...) end do +# key: do # -- do while (${1:condition}) $0 diff --git a/snippets/f90-mode/dp b/snippets/f90-mode/dp index 2159e36..1ff6db8 100644 --- a/snippets/f90-mode/dp +++ b/snippets/f90-mode/dp @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : double precision +# key: dp # -- double precision $0 \ No newline at end of file diff --git a/snippets/f90-mode/eq b/snippets/f90-mode/eq index ad9f78d..9fe99c7 100644 --- a/snippets/f90-mode/eq +++ b/snippets/f90-mode/eq @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : equivalence +# key: eq # -- equivalence $0 \ No newline at end of file diff --git a/snippets/f90-mode/ib b/snippets/f90-mode/ib index e3d5ea7..c3be9d1 100644 --- a/snippets/f90-mode/ib +++ b/snippets/f90-mode/ib @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : implicit byte +# key: ib # -- implicit byte $0 \ No newline at end of file diff --git a/snippets/f90-mode/ic b/snippets/f90-mode/ic index dd08d6d..e5f3a71 100644 --- a/snippets/f90-mode/ic +++ b/snippets/f90-mode/ic @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : implicit complex +# key: ic # -- implicit complex $0 \ No newline at end of file diff --git a/snippets/f90-mode/ich b/snippets/f90-mode/ich index eb156c6..5fbe0bd 100644 --- a/snippets/f90-mode/ich +++ b/snippets/f90-mode/ich @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : implicit character +# key: ich # -- implicit character $0 \ No newline at end of file diff --git a/snippets/f90-mode/if b/snippets/f90-mode/if index 8554a85..ef24343 100644 --- a/snippets/f90-mode/if +++ b/snippets/f90-mode/if @@ -1,5 +1,6 @@ #contributor: Li Zhu #name : if then end if +# key: f90-modeif # -- if ( ${1:condition} ) then $0 diff --git a/snippets/f90-mode/ii b/snippets/f90-mode/ii index 7d7d442..31d1129 100644 --- a/snippets/f90-mode/ii +++ b/snippets/f90-mode/ii @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : implicit integer +# key: ii # -- implicit integer $0 \ No newline at end of file diff --git a/snippets/f90-mode/il b/snippets/f90-mode/il index 2596f3a..560112f 100644 --- a/snippets/f90-mode/il +++ b/snippets/f90-mode/il @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : implicit logical +# key: il # -- implicit logical $0 \ No newline at end of file diff --git a/snippets/f90-mode/in b/snippets/f90-mode/in index c7183c0..8321ebe 100644 --- a/snippets/f90-mode/in +++ b/snippets/f90-mode/in @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : implicit none +# key: in # -- implicit none \ No newline at end of file diff --git a/snippets/f90-mode/inc b/snippets/f90-mode/inc index 408991a..70a6cde 100644 --- a/snippets/f90-mode/inc +++ b/snippets/f90-mode/inc @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : include +# key: inc # -- include $0 \ No newline at end of file diff --git a/snippets/f90-mode/intr b/snippets/f90-mode/intr index 80d8322..4e04c0a 100644 --- a/snippets/f90-mode/intr +++ b/snippets/f90-mode/intr @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : intrinsic +# key: intr # -- intrinsic $0 \ No newline at end of file diff --git a/snippets/f90-mode/ir b/snippets/f90-mode/ir index 26d43e1..71933c8 100644 --- a/snippets/f90-mode/ir +++ b/snippets/f90-mode/ir @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : implicit real +# key: ir # -- implicit real $0 \ No newline at end of file diff --git a/snippets/f90-mode/l b/snippets/f90-mode/l index c048eea..e3cf4fe 100644 --- a/snippets/f90-mode/l +++ b/snippets/f90-mode/l @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : logical +# key: l # -- logical $0 \ No newline at end of file diff --git a/snippets/f90-mode/pa b/snippets/f90-mode/pa index fcc133c..aeaa1d3 100644 --- a/snippets/f90-mode/pa +++ b/snippets/f90-mode/pa @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : parameter +# key: pa # -- parameter $0 \ No newline at end of file diff --git a/snippets/f90-mode/pr b/snippets/f90-mode/pr index 1689d8c..a97ced2 100644 --- a/snippets/f90-mode/pr +++ b/snippets/f90-mode/pr @@ -1,5 +1,6 @@ #contributor: Li Zhu #name : program ... end program ... +# key: pr # -- program ${1:name} $0 diff --git a/snippets/f90-mode/re b/snippets/f90-mode/re index 6121c80..42712e0 100644 --- a/snippets/f90-mode/re +++ b/snippets/f90-mode/re @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : read (*,*) +# key: re # -- read (${1:*},${2:*}) $0 \ No newline at end of file diff --git a/snippets/f90-mode/st b/snippets/f90-mode/st index e5fbb4c..71b9e5a 100644 --- a/snippets/f90-mode/st +++ b/snippets/f90-mode/st @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : structure +# key: st # -- structure $0 \ No newline at end of file diff --git a/snippets/f90-mode/su b/snippets/f90-mode/su index d23ae55..1ffb749 100644 --- a/snippets/f90-mode/su +++ b/snippets/f90-mode/su @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : subroutine +# key: su # -- subroutine $0 \ No newline at end of file diff --git a/snippets/f90-mode/wr b/snippets/f90-mode/wr index 1b5a7ef..de38c98 100644 --- a/snippets/f90-mode/wr +++ b/snippets/f90-mode/wr @@ -1,4 +1,5 @@ #contributor: Li Zhu #name : write (*,*) +# key: wr # -- write (${1:*},${2:*}) $0 \ No newline at end of file diff --git a/snippets/html-mode/b.yasnippet b/snippets/html-mode/b.yasnippet index ea6f3bb..6ee7431 100755 --- a/snippets/html-mode/b.yasnippet +++ b/snippets/html-mode/b.yasnippet @@ -1,4 +1,5 @@ #contributor : Xah Lee xahlee.org #name : ... +# key: b # -- $0 \ No newline at end of file diff --git a/snippets/html-mode/body b/snippets/html-mode/body index 3655775..8333cca 100644 --- a/snippets/html-mode/body +++ b/snippets/html-mode/body @@ -1,5 +1,6 @@ #contributor : Jimmy Wu #name : ... +# key: body # -- $0 diff --git a/snippets/html-mode/br b/snippets/html-mode/br index 07c2d4a..68e9907 100644 --- a/snippets/html-mode/br +++ b/snippets/html-mode/br @@ -1,4 +1,5 @@ #contributor : Jimmy Wu #name :
+# key: br # --
\ No newline at end of file diff --git a/snippets/html-mode/code b/snippets/html-mode/code index a5ad908..cc84329 100644 --- a/snippets/html-mode/code +++ b/snippets/html-mode/code @@ -1,5 +1,6 @@ #contributor : Jimmy Wu #name : ... +# key: code # -- $0 diff --git a/snippets/html-mode/code.class b/snippets/html-mode/code.class index b910eb7..5338b12 100644 --- a/snippets/html-mode/code.class +++ b/snippets/html-mode/code.class @@ -1,5 +1,6 @@ #contributor : Jimmy Wu #name : ... +# key: code # -- $0 diff --git a/snippets/html-mode/div b/snippets/html-mode/div index 1c9c0c8..2c7dfc4 100644 --- a/snippets/html-mode/div +++ b/snippets/html-mode/div @@ -1,3 +1,4 @@ #name : ... +# key: div # -- $0 \ No newline at end of file diff --git a/snippets/html-mode/div.class b/snippets/html-mode/div.class index 11c12d6..54ad2e2 100644 --- a/snippets/html-mode/div.class +++ b/snippets/html-mode/div.class @@ -1,5 +1,6 @@ #contributor : Jimmy Wu #name :
...
+# key: div # --
$0 diff --git a/snippets/html-mode/div.id b/snippets/html-mode/div.id index cec25fb..92f8239 100644 --- a/snippets/html-mode/div.id +++ b/snippets/html-mode/div.id @@ -1,5 +1,6 @@ #contributor : Jimmy Wu #name :
...
+# key: div # --
$0 diff --git a/snippets/html-mode/div.id-class b/snippets/html-mode/div.id-class index d5b1402..3d40ad7 100644 --- a/snippets/html-mode/div.id-class +++ b/snippets/html-mode/div.id-class @@ -1,5 +1,6 @@ #contributor : Jimmy Wu #name :
...
+# key: div # --
$0 diff --git a/snippets/html-mode/dov b/snippets/html-mode/dov index fcd0a78..af8ab50 100644 --- a/snippets/html-mode/dov +++ b/snippets/html-mode/dov @@ -1,4 +1,5 @@ #name : ... +# key: dov # -- a mirror up here $3 diff --git a/snippets/html-mode/form b/snippets/html-mode/form index 043a59a..0f1ce7c 100644 --- a/snippets/html-mode/form +++ b/snippets/html-mode/form @@ -1,5 +1,6 @@ #contributor : Jimmy Wu #name :
+# key: form # --
$0 diff --git a/snippets/html-mode/head b/snippets/html-mode/head index 37ef1ad..0329c36 100644 --- a/snippets/html-mode/head +++ b/snippets/html-mode/head @@ -1,5 +1,6 @@ #contributor : Jimmy Wu #name : ... +# key: head # -- $0 diff --git a/snippets/html-mode/header/h1 b/snippets/html-mode/header/h1 index 68ccf00..cbc3010 100644 --- a/snippets/html-mode/header/h1 +++ b/snippets/html-mode/header/h1 @@ -1,4 +1,5 @@ #contributor : Jimmy Wu #name :

...

+# key: headerh1 # --

$1

\ No newline at end of file diff --git a/snippets/html-mode/header/h2 b/snippets/html-mode/header/h2 index abeb586..dc25597 100644 --- a/snippets/html-mode/header/h2 +++ b/snippets/html-mode/header/h2 @@ -1,4 +1,5 @@ #contributor : Jimmy Wu #name :

...

+# key: headerh2 # --

$1

\ No newline at end of file diff --git a/snippets/html-mode/header/h3 b/snippets/html-mode/header/h3 index cc4b16e..a9e448d 100644 --- a/snippets/html-mode/header/h3 +++ b/snippets/html-mode/header/h3 @@ -1,4 +1,5 @@ #contributor : Jimmy Wu #name :

...

+# key: headerh3 # --

$1

\ No newline at end of file diff --git a/snippets/html-mode/header/h4 b/snippets/html-mode/header/h4 index 53acb57..bffaa87 100644 --- a/snippets/html-mode/header/h4 +++ b/snippets/html-mode/header/h4 @@ -1,4 +1,5 @@ #contributor : Jimmy Wu #name :

...

+# key: headerh4 # --

$1

\ No newline at end of file diff --git a/snippets/html-mode/header/h5 b/snippets/html-mode/header/h5 index e9bd313..140deb9 100644 --- a/snippets/html-mode/header/h5 +++ b/snippets/html-mode/header/h5 @@ -1,4 +1,5 @@ #contributor : Jimmy Wu #name :
...
+# key: headerh5 # --
$1
\ No newline at end of file diff --git a/snippets/html-mode/header/h6 b/snippets/html-mode/header/h6 index 6c677af..f486317 100644 --- a/snippets/html-mode/header/h6 +++ b/snippets/html-mode/header/h6 @@ -1,4 +1,5 @@ #contributor : Jimmy Wu #name :
...
+# key: headerh6 # --
$1
\ No newline at end of file diff --git a/snippets/html-mode/hr b/snippets/html-mode/hr index 74c62d3..c87ceb7 100644 --- a/snippets/html-mode/hr +++ b/snippets/html-mode/hr @@ -1,4 +1,5 @@ #contributor : Jimmy Wu #name :
+# key: hr # --
\ No newline at end of file diff --git a/snippets/html-mode/href b/snippets/html-mode/href index 0425e6c..ac1285a 100644 --- a/snippets/html-mode/href +++ b/snippets/html-mode/href @@ -1,4 +1,5 @@ #contributor : Jimmy Wu #name : ... +# key: href # -- $2 \ No newline at end of file diff --git a/snippets/html-mode/html b/snippets/html-mode/html index 8c37883..12beee3 100644 --- a/snippets/html-mode/html +++ b/snippets/html-mode/html @@ -1,5 +1,6 @@ #contributor : Jimmy Wu #name : ... +# key: html # -- $0 diff --git a/snippets/html-mode/html.xmlns b/snippets/html-mode/html.xmlns index fa26195..a93d24d 100644 --- a/snippets/html-mode/html.xmlns +++ b/snippets/html-mode/html.xmlns @@ -1,5 +1,6 @@ #contributor : Jimmy Wu #name : ... +# key: html # -- $0 diff --git a/snippets/html-mode/i.yasnippet b/snippets/html-mode/i.yasnippet index 84f05ac..6d85203 100755 --- a/snippets/html-mode/i.yasnippet +++ b/snippets/html-mode/i.yasnippet @@ -1,4 +1,5 @@ #contributor : Xah Lee xahlee.org #name : ... +# key: i # -- $0 \ No newline at end of file diff --git a/snippets/html-mode/img b/snippets/html-mode/img index 674b1dc..93e00d4 100644 --- a/snippets/html-mode/img +++ b/snippets/html-mode/img @@ -1,4 +1,5 @@ #contributor : Jimmy Wu #name : ... +# key: img # -- $3 \ No newline at end of file diff --git a/snippets/html-mode/input b/snippets/html-mode/input index 1ad74f8..83b8854 100644 --- a/snippets/html-mode/input +++ b/snippets/html-mode/input @@ -1,4 +1,5 @@ #contributor : Jimmy Wu #name : +# key: input # -- \ No newline at end of file diff --git a/snippets/html-mode/link.stylesheet b/snippets/html-mode/link.stylesheet index 0953396..66e5833 100644 --- a/snippets/html-mode/link.stylesheet +++ b/snippets/html-mode/link.stylesheet @@ -1,4 +1,5 @@ #contributor : Jimmy Wu #name : +# key: link # -- \ No newline at end of file diff --git a/snippets/html-mode/link.stylesheet-ie b/snippets/html-mode/link.stylesheet-ie index 9cf9fec..c4cee76 100644 --- a/snippets/html-mode/link.stylesheet-ie +++ b/snippets/html-mode/link.stylesheet-ie @@ -1,5 +1,6 @@ #contributor : Jimmy Wu #name : +# key: link # --