codeium.vim icon indicating copy to clipboard operation
codeium.vim copied to clipboard

Partial completions (single word or line) make unnecessary completion requests

Open fxf8 opened this issue 1 year ago • 2 comments

After accepting single word or single line completions with codeium#AcceptNextWord or codeium#AcceptNextLine codeium makes new requests which returns new suggestions each time. The problem here is that it discards the previous completion and makes unnecessary requests. Additionally, someone may want to only accept a few words or lines of the completion, not just one. Also, if the rest of the completion was cached, completions after single words would be much faster.

fxf8 avatar Jun 13 '24 23:06 fxf8

This is true and I understand. But what if I wanted only the n next words and then a new suggestion? I guess you could make it so that the trigger suggestion deletes the cached completion and repopulates it. But I don't know, there might be better ways to do it.

It would be really cool to do something like 3<C-Right> to accept the next 3 words for example. Or 2<Right> to accept the next two lines. But this looks difficult to implement. At least for me.

LeonardoMor avatar Jun 15 '24 14:06 LeonardoMor

For what is worth, this has been implemented nicely on neocodeium

LeonardoMor avatar Sep 10 '24 19:09 LeonardoMor