You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep the original suggestion after accepting a word or line, instead of
clearing it and waiting for another completion request. Match it against
the inserted lines and retain any existing closing suffix. Request a new
suggestion when subsequent edits no longer match.
Preserve original completion items and cumulative UTF-16 acceptance lengths.
Cover repeated words, multiline text, retained suffixes, invalid edits and
pending cycling callbacks with an offline Neovim test.
Hmm, I find it useful that when I accept only a word or a line rather than a full snippet, copilot.vim regenerates completion so that it can — kind of — adapt further and suggest another-or-the-same option.
Else why would I not accept a full suggestion? 🤔
Am I missing and idea?
Thanks.
Ah my bad you're right. I'll change it to request a new suggestion but not clear the existing one unless the user types over it. It's the flashing I find irritating.
Done! My change is also helpful when you only want to accept a few words or a line or two but not the whole thing. Prevents the flashing as you press through.
Activity
nhooyr commentedon Nov 24, 2026
I would make a pull request but it appears that pull requests are disabled for copilot.vim.
nhooyr commentedon Nov 24, 2026
cc @tpope @djensenius
yermulnik commentedon Nov 24, 2026
Hmm, I find it useful that when I accept only a word or a line rather than a full snippet,
copilot.vimregenerates completion so that it can — kind of — adapt further and suggest another-or-the-same option.Else why would I not accept a full suggestion? 🤔
Am I missing and idea?
Thanks.
nhooyr commentedon Nov 24, 2026
Ah my bad you're right. I'll change it to request a new suggestion but not clear the existing one unless the user types over it. It's the flashing I find irritating.
nhooyr commentedon Nov 24, 2026
Done! My change is also helpful when you only want to accept a few words or a line or two but not the whole thing. Prevents the flashing as you press through.
[-]Keep suggestions visible during partial acceptance[/-][+]Prevent flashing during partial acceptance[/+]nhooyr commentedon Nov 24, 2026
https://github.com/nhooyr/copilot.vim/commits/refresh-partial-accept-preview/