Use regex for filename basename snippet

master
Hektor Misplon 2024-03-12 18:16:07 +01:00
parent 72629f5b98
commit ed44636981
Signed by: hektor
GPG Key ID: 5151AF79E723F21C
1 changed files with 2 additions and 2 deletions

View File

@ -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