emacs-devel
[Top][All Lists]
Advanced

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

Re: Inline completion preview


From: Eli Zaretskii
Subject: Re: Inline completion preview
Date: Fri, 27 Oct 2023 20:12:53 +0300

> From: Eshel Yaron <me@eshelyaron.com>
> Cc: emacs-devel@gnu.org
> Date: Fri, 27 Oct 2023 17:43:17 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Did you see how other IDEs implement this display?  That's what I
> > mean.
> 
> I've used this feature in other editors (e.g. VS Code), but I didn't
> dive into the implementation, if that's what you mean.

I meant how they show it visually.

> > Then maybe you should describe the use case in more details, because
> > this could be a misunderstanding of sorts.  What are the use case(s)
> > where the feature you propose would be useful?
> 
> The use case is this: you're editing some code, maybe it's a language
> you're not extremely proficient with, and you want your editor (Emacs)
> to give you suggestions for code that it would make some sense to write.
> Completion preview does that by showing you a completion candidate you
> can insert, and displaying it as if you've already inserted it, so you
> know exactly what it'll look like (you get a preview).  As you are
> typing, Emacs updates the suggestion based on your keystrokes.  If you
> couple that with a good completion backend, you get useful suggestions
> with a very low friction interface.

If you are talking about code completion, showing a single candidate
is rarely TRT, especially in programming languages that support
polymorphism.



reply via email to

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