-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corfu and evil repeat #168
Comments
I don't use evil, mainly because I am not fond of having two layered sets of keybindings and because of all these integration issues. But I am not religious about modal or non-modal bindings ;) I opened emacs-evil/evil-collection#552 at some point. Hopefully the issue can be fixed there. I am not familiar with the inner workings of evil, therefore I suggest you move the issue to the evil or evil-collection tracker. Unfortunately such integration issues are always a bit hard to resolve since you may need someone knowledgeable about both packages and Corfu is not used so widely. Probably you yourself are in the best position to figure this one out. |
Thank you, much appreciated. |
@minad could you say a little bit about how corfu works? When I do |
There is no update, it is just an overlay. The update happens in the very end. |
Ah, what causes the update at the very end? In the case of tab and go is it a precmd on whatever I use to do something else? |
corfu-insert inserts the selected candidate. |
For tab-n-go I think that this is the secret: https://github.com/company-mode/company-mode/blob/master/company-tng.el#L123-L127 Company unreads the command that would exit company and changes the command to |
Right, for tabngo insertion happens in the pre-command-hook. |
Hi, I don't know if you use evil or not or if you'd prefer I close this and open the issue on Evil, but I've noticed that evil-repeat (the
.
key) does not work with corfu auto completion (I use a tab'n'go style).Specifically, if I do something like this:
Point on first foo,
cw
,ba
tab to select bar, go down tofoo
and hit.
, onlyba
will be included.In company, this was first reported here: company-mode/company-mode#15
And addressed with: https://github.com/emacs-evil/evil/blob/master/evil-integration.el#L212-L230
I can't make it work with corfu with any combination of evil repeat specifications.
cc @tomdl89 in case has any ideas or would like me to move this to evil's repo.
Thanks all.
The text was updated successfully, but these errors were encountered: