Add filename snippet

master
Hektor Misplon 2023-05-19 19:39:18 +02:00
parent 9ba5d6b192
commit 644114263d
1 changed files with 4 additions and 0 deletions

View File

@ -638,6 +638,10 @@ snippet sketch "Link a sketch" i
[$1](file:///home/h/sketches/$2) [$1](file:///home/h/sketches/$2)
endsnippet endsnippet
snippet fn "Filename"
`!p snip.rv = snip.basename`
endsnippet
snippet ` "Inline code" i snippet ` "Inline code" i
`$1`$2 `$1`$2
endsnippet endsnippet