atom / autocomplete-snippets

Adds snippets to autocomplete+ suggestions
MIT License
46 stars 50 forks source link

Does not support snippets with punctuation #67

Open ezuhaib opened 8 years ago

ezuhaib commented 8 years ago

e.g consider the following snippet provided by https://github.com/joseramonc/rails-snippets :

.each

autocomplete-snippets does show this snippet when period (.) is typed, but it disappears when anything is typed beyond the initial period. Similar behavior is seen when a period appears in midst of a snippet's prefix (see https://github.com/atom/autocomplete-snippets/issues/57). The reason of this behavior is probably that autocomplete-plus probably provides it's consumer packages with prefixes based on alphanumeric characters and characters - and _ only.

My concern is that if atom-snippets allows snippets with periods/punctuation... then so should autocomplete-snippets. This can be fixed at the level of autocomplete-plus too, but I think implementing a fix in this package could be simpler, and cause fewer conflicts.

cblp commented 8 years ago

:+1:

yudai-nkt commented 7 years ago

Most of (La)TeX commands (control sequences in TeX's terminology) starts with a backslash. Therefore, we would greatly appreciate it if non-letter prefixes are supported and there seems to be a prototype for this.