Use regex for filename basename snippet
parent
72629f5b98
commit
ed44636981
|
@ -2,6 +2,6 @@ snippet fne "Filename (+extension)" i
|
|||
`!p snip.rv = snip.fn`
|
||||
endsnippet
|
||||
|
||||
snippet fn "Filename basename" i
|
||||
`!p snip.rv = snip.basename`
|
||||
# snippet ^fn "Filename basename" ir
|
||||
# `!p snip.rv = snip.basename`
|
||||
endsnippet
|
||||
|
|
Loading…
Reference in New Issue