These are chat archives for SirVer/ultisnips

Aug 2017
Pratik Bhusal
Aug 08 2017 01:47
Hi I was wondering if there was a way to dynamically change the size of a string as you type. In particular, I'm trying to change the number of dashes based on what I type into $1. Do you guys have any suggestions on how to do this? It may work with python interpolation, but I'm not well versed in python.
snippet bordp "Add a border pair" b
" $1 {{{ ${2:------------------------------------------------------------------}
${0:${VISUAL:" Content}}
" $1 }}} $2