Closed MicahElliott closed 3 years ago
The highlighted candidate is that which would be inserted into the minibuffer by minibuffer-force-complete
and would be immediately used by minibuffer-force-complete-and-exit
. You might want to bind the latter to RET
in minibuffer-local-completion-map
(and maybe bind minibuffer-force-complete
to something too, like C-M-i
or <backtab>
).
About using C-n
and C-p
directly from the minibuffer, I don't think there's anything built-in you could directly use for this, but it wouldn't be hard to implement something. In fact, I believe I saw a package very similar to this one that does include that. Let me see if I can find it and you may be able to simply switch to it.
Also, you might like to use avy to quickly select a completion. You can try my avy-completion library for that.
Found it! The package I meant is Vcomplete, it is pretty similar to this package, but also implements C-n
and C-p
to move among the candidates. I recommend you give it a try and switch if you prefer it.
I'm closing this issue, because I don't personally plan to implement this feature when I can simply point people to Vcomplete. But I am open to pull requests.
Thanks as always for all the helpful details, Omar! I'll try/look into each of these that you've mentioned.
The workflow with
*Completions*
seems to be to type a few characters (using Orderless) in the minibuffer to get down to a smallish number of candidates. Then, you either type a fair amount more to get down to a single candidate andRET
, OR hitM-v
to move focus up to*Completions*
buffer and hitC-n
a few times till you get to the one you want and thenRET
.It'd be nice to be able to do
C-n
/C-p
while in minibuffer, and not have to do theM-v
(never have to visit*Completions*
buffer). Any obstacles to adding this? Or is my described workflow missing something? It seems a bit tedious.I also don't understand why in minibuffer, I see in
*Completions*
buffer one candidate highlighted (must be "forceable candidate"), but I can't hitRET
to use it -- still have to keep typing till I get down to one candidate. IOW, what does the highlight suggest, and is there a way to use it?