Real time transformation

Asked by Aymeric Beaumet

Hi,

I'm aware of the UltiSnips transformation feature.

I would like to do it in real time on one tab stop, is it possible? To be clearer, is it possible to type and to directly apply the regex?

For example, I would like to define a snippet like so:

    echo "${1/\"/\\"/g}";

To automatically escape the " present in the string.

For the moment, I implement it like so:

    echo "${1/\"/\\"/g}"; //$1

Have you an idea?

Question information

Language:
English Edit question
Status:
Solved
For:
UltiSnips Edit question
Assignee:
No assignee Edit question
Solved by:
Aymeric Beaumet
Solved:
Last query:
Last reply:
Revision history for this message
SirVer (sirver) said :
#1
Revision history for this message
Aymeric Beaumet (aymeric-beaumet) said :
#2

Thanks for you answer. I'll keep me informed about the next UltiSnips versions :)