ivy in-buffer completion does not handle immediate-done well #1178
Rather than select a completion or quit with
I think the problem is twofold:
The text was updated successfully, but these errors were encountered:
Thanks, C-M-j should work now.
I can't do anything about the matcher, as far as I see. The perfect match logic (when the text is exactly one of the candidates, that candidate is selected) won't work here, since your text is
I experimented with one solution, using e.g.
(ivy-read "test: " :initial-input "use-")
But then it's not fuzzy anymore without adding a space, e.g.
(ivy-read "test: " :initial-input "use- ")
Now it's fuzzy, but the perfect match is out the window, and a space will be added by C-M-j.
Thanks for the $ tip.
Another fix might be to special case the shortest match to always appear at the top. I think definitionally the shortest match to a given query ("age") which also shares the prefix ("use-pack") should be the exact match always, no?
edit: ah, that's not true. I might do "use" [tab] "age", and it it might match