joaotavora / yasnippet

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

Consolidate doc concepts for "trigger key", "snippet key", "abbrev key", etc #500

Open joaotavora opened 10 years ago

joaotavora commented 10 years ago

See last posts of #490

guraltsev commented 6 years ago

As a matter of fact I believe that the documentation currently says:

key: snippet abbrev

This is the probably the most important directive, it's the abbreviation you type to expand a snippet just before hitting the key that runs yas-expand. If you don't specify this, the snippet will not be expandable through the trigger mechanism.

But actually if there is no key specified yasnippet uses the filename and there is no way to disable this....