joaotavora / yasnippet

A template system for Emacs
http://joaotavora.github.io/yasnippet/
2.78k stars 311 forks source link

Expanding phrases #1135

Open ghost opened 2 years ago

ghost commented 2 years ago

yasnippet is very helpful for expanding words into other words or phrases. For example, I can ask Emacs to expand "edv" into "Emacs Developmental Version". However, it seems only to be able expand words, not phrases. For example, it does not appear to be able to expand "Emacs Developmental Version" into "edv". Or is there a way to expand phrases?

ag91 commented 1 year ago

it sounds an interesting idea and it feels a bit out of scope for the project (I think this goes small -> big, while you are looking for the other way around). Maybe you can get this behavior from something like this: https://github.com/VernonGrant/abbreviate.el?