mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-13 00:44:18 +00:00
taking care of some details
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
#name : (user's email)
|
||||
# --
|
||||
`user-mail-address`
|
||||
`(replace-regexp-in-string "@" "@NOSPAM." user-mail-address)`
|
||||
@@ -1,4 +0,0 @@
|
||||
#name : foo { ... } ; setFoo { ... }
|
||||
# --
|
||||
I say ${1:hello} and so ${2: goodbye $1}
|
||||
She also says $2
|
||||
@@ -1,14 +0,0 @@
|
||||
#name : foo { ... } ; setFoo { ... }
|
||||
# --
|
||||
- ${1:id} ${2:foo and its ${3:nested} shit}
|
||||
{
|
||||
return $2;
|
||||
// dont forget we have $3
|
||||
}
|
||||
|
||||
- (void)set${2:$(capitalize text)}:($1)aValue
|
||||
{
|
||||
[$2 autorelease];
|
||||
$2 = [aValue retain];
|
||||
}
|
||||
$0
|
||||
5
snippets/text-mode/snippet-mode/field
Normal file
5
snippets/text-mode/snippet-mode/field
Normal file
@@ -0,0 +1,5 @@
|
||||
# name : ${ ... } field
|
||||
# contributor : joaotavora
|
||||
# key : $f
|
||||
# --
|
||||
\${${1:${2:n}:}$3${4:\$(${5:lisp-fn})}\}$0
|
||||
6
snippets/text-mode/snippet-mode/mirror
Normal file
6
snippets/text-mode/snippet-mode/mirror
Normal file
@@ -0,0 +1,6 @@
|
||||
# name : ${n:$(...)} mirror
|
||||
# key : $m
|
||||
# contributor : joaotavora
|
||||
# --
|
||||
\${${2:n}:${4:\$(${5:reflection-fn})}\}$0
|
||||
|
||||
9
snippets/text-mode/snippet-mode/vars
Normal file
9
snippets/text-mode/snippet-mode/vars
Normal file
@@ -0,0 +1,9 @@
|
||||
# name : Snippet header
|
||||
# contributor : joaotavora
|
||||
# --
|
||||
# name : $1${2:
|
||||
# key : ${3:expand-key}}${4:
|
||||
# key : ${5:group}}
|
||||
# contributor : $6
|
||||
# --
|
||||
$0
|
||||
Reference in New Issue
Block a user