yi-editor / yi

The Haskell-Scriptable Editor
GNU General Public License v2.0
1.51k stars 201 forks source link

(auto)completion with intero #1014

Open noughtmare opened 7 years ago

noughtmare commented 7 years ago

Completion should be possible. First a command can be exposed that returns a list of possible completions. That would be the easiest. Then we can bind it to a key that cycles through all possibilities. Then we could add a dropdown menu to the vty and pango (I tried this some time ago for vty) implementations that shows all possible completions. Autocompletion should then be pretty easy if it is easy to run a command after every keystroke that inserts a character.

We should make sure that the completion is very configurable.