|
12 | 12 | $3
|
13 | 13 | """
|
14 | 14 |
|
| 15 | + Snippet2: |
| 16 | + prefix: "vars" |
| 17 | + leftLabel: "yas" |
| 18 | + description: "Extended snippet header with less common metadata." |
| 19 | + descriptionMoreURL: "https://github.com/joaotavora/yasnippet-snippets/blob/ac385b0e/snippet-mode/vars" |
| 20 | + body: """ |
| 21 | + # -*- mode: snippet -*- |
| 22 | + # name: $1${2: |
| 23 | + # key: ${3:trigger-key}}${4: |
| 24 | + # keybinding: ${5:keybinding}}${6: |
| 25 | + # expand-env: (${7:})} |
| 26 | + # contributor: $6 |
| 27 | + # -- |
| 28 | + $0 |
| 29 | + """ |
| 30 | + |
15 | 31 | Modeline1:
|
16 | 32 | prefix: "mo"
|
17 | 33 | body: "# -*- mode: snippet -*-"
|
|
40 | 56 | description: "Optional human-readable label for snippet's menu entry."
|
41 | 57 | descriptionMoreURL: "http://joaotavora.github.io/yasnippet/snippet-development.html#org592456a"
|
42 | 58 |
|
| 59 | + Field: |
| 60 | + prefix: "$f" |
| 61 | + body: "\\${${1:${2:n}:}$3${4:\\$(${5:lisp-fn})}\\}$0" |
| 62 | + leftLabel: "yas" |
| 63 | + description: "<code>${…}</code> field" |
| 64 | + descriptionMoreURL: "https://github.com/joaotavora/yasnippet-snippets/blob/ac385b0e/snippet-mode/field" |
| 65 | + |
| 66 | + Group: |
| 67 | + prefix: "g" |
| 68 | + body: "# group: ${1:Menu grouping}" |
| 69 | + leftLabel: "yas" |
| 70 | + description: "Snippet menu grouping." |
| 71 | + descriptionMoreURL: "http://joaotavora.github.io/yasnippet/snippet-development.html#orgd710184" |
| 72 | + |
| 73 | + Mirror: |
| 74 | + prefix: "$m" |
| 75 | + body: "\\${${2:n}:${4:\\$(${5:reflection-fn})}\\}$0" |
| 76 | + leftLabel: "yas" |
| 77 | + description: "`${n:$(…)}` mirror" |
| 78 | + descriptionMoreURL: "https://github.com/joaotavora/yasnippet-snippets/blob/ac385b0e/snippet-mode/mirror" |
| 79 | + |
| 80 | + Author: |
| 81 | + prefix: "au" |
| 82 | + body: "# contributor: ${1:John Doe} <${2:john.doe@email}>$0" |
| 83 | + leftLabel: "yas" |
| 84 | + description: "Name of snippet's author or contributor." |
| 85 | + descriptionMoreURL: "http://joaotavora.github.io/yasnippet/snippet-development.html#orge2b38b9" |
| 86 | + |
| 87 | + AtomDescriptionMoreURL: |
| 88 | + prefix: "url" |
| 89 | + body: "# atom-description-more-url: ${1:http://more.info/}" |
| 90 | + leftLabel: "yas" |
| 91 | + description: "Atom-specific header used by `yas2atom`" |
| 92 | + descriptionMoreURL: "https://github.com/atom/snippets#optional-parameters" |
| 93 | + |
43 | 94 | AtomSelector:
|
44 | 95 | prefix: "as"
|
45 | 96 | body: "# atom-selector: ${1::not(*)}"
|
46 | 97 | leftLabel: "yas"
|
47 |
| - description: "Atom-specific header used by <code>yas2atom</code>." |
| 98 | + description: "Atom-specific header used by `yas2atom`." |
48 | 99 | descriptionMoreURL: "https://github.com/Alhadis/YASR"
|
0 commit comments