Skip to content
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

How do I use corfu-indexed-mode? #223

Closed
ackerleytng opened this issue Aug 22, 2022 · 5 comments
Closed

How do I use corfu-indexed-mode? #223

ackerleytng opened this issue Aug 22, 2022 · 5 comments

Comments

@ackerleytng
Copy link

I started the mode using (corfu-indexed-mode) and the numbers appeared next to the completion suggestions. Do I have to add further config to use the suggestions? After a brief look at the code, I couldn't figure out what keystrokes to use to choose and apply the suggestions.

@manuel-uberti
Copy link

Did you try using prefix arguments as the documentation suggests? Something like C-3 <tab> works fine for me, for instance.

@minad minad closed this as completed Aug 23, 2022
@jiacai2050
Copy link

Hi, I wonder how to bind this behavior to M-<number> like company?

@lxsameer
Copy link

lxsameer commented Apr 30, 2024

It might be late but for future reference. An easy way to do this is:

(dotimes (i 10)
  (define-key corfu-mode-map
                    (kbd (format "M-%s" i))
                    (kbd (format "C-%s <tab>" i))))

@minad
Copy link
Owner

minad commented Apr 30, 2024

@lxsameer Using keyboard macros for this is actually a great approach! Maybe it makes sense to upstream a small utility function to Corfu and Vertico, which does this.

@lxsameer
Copy link

@minad absolutely. I'll make a PR later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants