Skip to content

Prevent flashing during partial acceptance #320

Backlog

Description

@nhooyr

nhooyr@f986bde

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.

Activity

  1. nhooyr commented on Nov 24, 2026

    @nhooyr
    Author

    I would make a pull request but it appears that pull requests are disabled for copilot.vim.

  2. nhooyr commented on Nov 24, 2026

    @nhooyr
    Author
  3. yermulnik commented on Nov 24, 2026

    @yermulnik

    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.

  4. nhooyr commented on Nov 24, 2026

    @nhooyr
    Author

    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.

  5. nhooyr commented on Nov 24, 2026

    @nhooyr
    Author

    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.

  6. changed the title [-]Keep suggestions visible during partial acceptance[/-] [+]Prevent flashing during partial acceptance[/+] on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions