occivink / kakoune-snippets

Snippet support for kakoune
The Unlicense
46 stars 6 forks source link

[Feature Request] Display triggers in completion menu #21

Closed andreyorst closed 1 year ago

andreyorst commented 5 years ago

It would be cool to see available triggers as you type, much like we are able to see completions of language facilities.

It could display a trigger, and info inside information field like so: image but instead of __fortify_function there will be some trigger, say for, instead of Interface there will be Snip or Snippet, and instead __fortify_function will be the snippet description for loop

I also wonder how it will play when https://github.com/mawww/kakoune/tree/completions-commands arrive. Could it be possible to expand snippets on completion, or if special key is pressed after the completion, and so on.