Hi,
I just saw how auto-complete works in emacs and vim.
I have worked on very similar idea as it is on vim. Just it shows a vertical list of all words and I show it horizontally.
I request you to see how it works once.(It is very similar to that of vim). If you don't like it, I'll make it similar to what it is in emacs.
I have attached the patch of code.
(Its not perfect yet. It has some issues(like when trying to resize the terminal after hitting autocomplete. If this idea is acceptable I will fix those bugs, else there is no point working on it).