Inserting filenames was not working for java snippets. Fixed by
supplying the "$1" argument instead of an empty String.
This commit is contained in:
parent
e77a70430e
commit
0ec9a04f56
@ -39,11 +39,11 @@ snippet j.u
|
|||||||
##
|
##
|
||||||
## Class
|
## Class
|
||||||
snippet cl
|
snippet cl
|
||||||
class ${1:`vim_snippets#Filename("", "untitled")`} ${0}
|
class ${1:`vim_snippets#Filename("$1", "untitled")`} ${0}
|
||||||
snippet in
|
snippet in
|
||||||
interface ${1:`vim_snippets#Filename("", "untitled")`} ${2:extends Parent}
|
interface ${1:`vim_snippets#Filename("$1", "untitled")`} ${2:extends Parent}
|
||||||
snippet tc
|
snippet tc
|
||||||
public class ${1:`vim_snippets#Filename()`} extends ${0:TestCase}
|
public class ${1:`vim_snippets#Filename("$1")`} extends ${0:TestCase}
|
||||||
##
|
##
|
||||||
## Class Enhancements
|
## Class Enhancements
|
||||||
snippet ext
|
snippet ext
|
||||||
@ -144,7 +144,7 @@ snippet @au
|
|||||||
snippet @br
|
snippet @br
|
||||||
@brief ${0:Description}
|
@brief ${0:Description}
|
||||||
snippet @fi
|
snippet @fi
|
||||||
@file ${0:`vim_snippets#Filename()`}.java
|
@file ${0:`vim_snippets#Filename("$1")`}.java
|
||||||
snippet @pa
|
snippet @pa
|
||||||
@param ${0:param}
|
@param ${0:param}
|
||||||
snippet @re
|
snippet @re
|
||||||
|
Loading…
Reference in New Issue
Block a user