atom / snippets

Atom snippets package
MIT License
205 stars 100 forks source link

Variables substitution like SublimeText #220

Closed matheo closed 7 years ago

matheo commented 7 years ago

I was looking for an automagical transformation of variables and I found it on SublimeText snippets docs:

${var_name/regex/format_string/options}

http://docs.sublimetext.info/en/latest/extensibility/snippets.html#substitutions

Is there any possibility to have something like that in Atom?

    Original: ${1:Hey, Joe!}
Transformation: ${1/./=/g}

# Output:

      Original: Hey, Joe!
Transformation: =========
guerrero commented 7 years ago

This issue seems to be a duplication of #40

matheo commented 7 years ago

Yep, it seems there's little hope to have this soon :(