Skip to content

ivy in-buffer completion does not handle immediate-done well #1178

@sooheon

Description

@sooheon

Having written use-pack I press C-M-i to begin completion.

screen shot 2017-08-31 at 2 22 26 pm

I type age but ivy still does not match use-package

screen shot 2017-08-31 at 2 22 32 pm

Rather than select a completion or quit with C-g (which would make me lose the age that I've typed), I C-M-j (ivy-immediate-done) to just keep what I'd written. But this deletes the prefix to the completion.

screen shot 2017-08-31 at 2 22 39 pm

I think the problem is twofold:

  1. The matcher for in-buffer completion should prioritize exact matches
  2. C-M-j should insert what I've typed but not delete the prefix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions