emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] (icomplete-vertical-mode): Add support for affixations and,


From: João Távora
Subject: Re: [PATCH] (icomplete-vertical-mode): Add support for affixations and, annotations
Date: Mon, 24 May 2021 23:46:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Daniel Mendler <mail@daniel-mendler.de> writes:

> On 5/23/21 11:54 PM, João Távora wrote:
>> By the way, as a tangent to this, but spurred by your activity and
>> improvements to icomplete.el, I'm also thinking of enhaving icomplete.el
>> to allow a different type of scrolling in icomplete-vertical-mode where
>> the active completion isn't necessarily shown in the screen line of the
>> minibuffer.  So that it acts more like a classic dropdown.  Kind of
>> company-mode but in the minibuffer.
>
> You may want to take a look at my Vertico package which is on GNU ELPA.
> It is basically a reimplementation of Icomplete with a classic dropdown.
> The inner workings are similar to Icomplete. The main technical
> difference is that Icomplete rotates the candidates, while Vertico keeps
> an index.

I think rotation makes sense in vanilla icomplete, but not in
icomplete-vertical-mode.  So for the latter, I think I will just take
the cue from Vertico and use an index (or equivalent).  Since it's in
GNU ELPA, maybe even borrow some code :-)

>> Another idea is to make icomplete work for
>> `completion-in-region-function`.
>
> Icomplete already should somehow work as a
> `completion-in-region-function`, but I think it is a bit brittle.

I have a vague recollection that Someone Somewhere (tm) in one of my
extensions over at GitHub tried it out and found it could mostly work
with some tweaks.  Will search for it.

> Related to my Vertico package, I also have the Corfu package, which uses
> a similar implementation as Vertico, but uses a child frame to display
> the completion list (Similar to Company-Box, Company-Posframe etc).
>
> https://github.com/minad/vertico
> https://github.com/minad/corfu

Very interesting.

João



reply via email to

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