lambdalisue / neovim-prompt

A python library to produce a customizable Neovim/Vim prompt.
http://neovim-prompt.readthedocs.io/en/latest/
MIT License
39 stars 0 forks source link

Feature request: auto complete like prompt of fish shell #5

Open chemzqm opened 7 years ago

chemzqm commented 7 years ago
screen shot 2016-12-15 at 12 29 54 am

I can type <c-e> to complete the suggest command. This could make command complete faster.

lambdalisue commented 7 years ago

What is the usage of the completion feature? Currently, neovim-prompt is used in lista.nvim or denite.nvim and both does not really have reserved command so I don't really think it is necessary at least for now (I agree that neovim-prompt should have a feature for completion but the implementation should follow the Vim's native completion system rather than the fish-shell)

chemzqm commented 7 years ago

It's used for faster complete recently used commands, I would think it to be a feature, which not implemented by vim.

lambdalisue commented 7 years ago

What the difference to <Up>?

chemzqm commented 7 years ago

Faster response, the user could forget to type <UP> or not know they can use <UP> to complete, it feels better. But for neovim-prompt it should be enough if it could support <UP> and <DOWN> to navigate history with same leading character.

lambdalisue commented 7 years ago

Now I got your request. You meant the suggestion part which is shown as grey characters in your screenshot right?

Interesting and it is not impossible (the implementation for the feature would be similar to non-printable character feature which current neovim-prompt already has). But it is difficult while the current implementation haven't built for such kind of feature. I might implement that one day but for now, I'm feeling that I should not change the current implementation for a feature which native Vim does not have. Sorry for that.

lambdalisue commented 7 years ago

Maybe oneday...