bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#61412: Inlay activation


From: João Távora
Subject: bug#61412: Inlay activation
Date: Wed, 15 Feb 2023 19:01:37 +0000

On Wed, Feb 15, 2023 at 6:56 PM Chinmay Dalal <dalal.chinmay.0101@gmail.com> wrote:

Eli Zaretskii <eliz@gnu.org> writes:

>> Cc: joaotavora@gmail.com
>> From: Chinmay Dalal <dalal.chinmay.0101@gmail.com>
>> Date: Wed, 15 Feb 2023 21:54:57 +0530
>>
>> Regarding keybinding, on the github discussion someone suggested that
>> vscode shows them while a key combination is held and hides them when
>> they are released, but I was told emacs can't do this.
>
> Not only can we not do this, it is also not our style.  If we want to
> show hints, we either show tooltips, or display a message in the echo
> area.

Tooltips and echo area can't be used as inlay hints are for showing
types of multiple variables/expressions and names of parameters at once.

See the attached screenshots for an example (this is from my
implementation in this patch)

Yes, I was going to state the same thing. Hopefully your
screenshots illustrate why ElDoc, at least using its 
its display methods available at the moment, is not
the best fit for this.

This is a very useful feature if done correctly, and I'm
leaning towards your approach of doing this completely 
in eglot.el, so your code is an excellent start.

But the activation and other details have to be carefully 
considered.  I will try to look into this soon.

Do you have a FSF copyright assignment, Chinmay?

João

reply via email to

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