emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Re: Other details about completion.


From: Ergus
Subject: Re: [PATCH] Re: Other details about completion.
Date: Thu, 7 Apr 2022 20:35:35 +0200

On Thu, Apr 07, 2022 at 09:04:12PM +0300, Juri Linkov wrote:
And the same find-as-you-type autocompletion like in browsers
is supported by zsh as well:
https://github.com/marlonrichert/zsh-autocomplete

Yes, I know it. I tried it when I had zsh some time ago... But
1) it is an external thing not in zsh

Actually, there is internal customization in zsh as well:

1. zstyle ':completion:*' menu select interactive
  - allows typing a letter that immediately
  updates the list of completions.

Yes, but that may be complicated because completions calls a function
that will try first to complete the common part and then update the
completions. (Look what happens when you press a letter and tab
immediately). There are few ways to go around that without braking half
of the Universe. Look where I added the code for the
completion-auto-help visible and always... there is where the magic
happens.

Maybe you will find a better way to manage what you want.

2. zstyle ':completion:*' menu select search
  - shows the prompt "isearch:" where typing letters
  searches them incrementally in the list of completions.

2) it will be simpler to implement with
icomplete and that family of completion engines.

Agreed, this would be the best thing to do.

For that we have fido and similes... What we are trying to improve a bit
is the default completion engine. Then the user will choose fido, ido or
something external... it is up to him.

In emacs there is already vertico to do more or less what you want and
it ended up being a bit more complex that what we want in vanilla but
with more or less 800 lines... If we want vertico, then just add vertico
to vanilla, lets not re-implement it right?

Does vertico show completions in the *Completions* window?

I don't think so but I am not sure... Most of these tools stay in the
minibuffer for completions... so they don't need to switch context.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]