These are chat archives for SirVer/ultisnips

14th
Aug 2017
Rodrigo Queiro
@drigz
Aug 14 2017 09:40
@PratikBhusal, do you mean something like this?
snippet bordp "Add a border pair" b
" $1 {{{ `!p snip.rv = '-' * (70 - len(t[1]))`
${0:${VISUAL:" Content}}
" $1 }}} `!p snip.rv = '-' * (70 - len(t[1]))`
endsnippet
If that's not the right number of dashes, you can change the expression (70 - len(t[1]))