emacs-devel
[Top][All Lists]
Advanced

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

Re: Stepping Back: A Wealth Of Completion systems Re: [ELPA] New package


From: Eli Zaretskii
Subject: Re: Stepping Back: A Wealth Of Completion systems Re: [ELPA] New package: vertico
Date: Sat, 10 Apr 2021 18:02:13 +0300

> Cc: philipk@posteo.net, emacs-devel@gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Sat, 10 Apr 2021 17:40:05 +0300
> 
> On 10.04.2021 10:09, Eli Zaretskii wrote:
> 
> > I think our interpretation of "completion vs selection" are different,
> > at least to some extent.  For me, completion is for when you (almost)
> > know what you want to type, and type enough of it to have a single TAB
> > more or less do the rest of the job.  IOW, it's a typing-saving tool.
> > Selection is for when you don't know what to type, and need the full
> > list to choose from.  IOW, it's a discovery tool.
> 
> I don't think we disagree too much, it's just there are cases where 
> "completion" (as defined by you) is really inconvenient: you both don't 
> know what you want to type, and the options are hard to type as well.
> 
> But there are also cases (IME) when you don't necessarily know what to 
> type, but you want to continue typing. That is the scenario of an 
> average (or, perhaps, a beginner) Java developer typing in a IDE: when 
> you don't remember the method name, you try to guess by typing a 
> relevant word, see what names match, and often enough get it right.

I agree that similar features are used for both purposes.  But they
are still different purposes, and the discussion will become
inefficient (and for me lose its purpose) if we try to ignore that
difference or blur it.

> > With that in mind, completion for symbols in invoking M-. and
> > completion for file names in invoking some file-related command have
> > the same traits, at least for me.
> 
> I don't always know what file name I want to type either, and either 
> guess by typing a part of the word and pressing TAB. Or type multiple 
> relevant words at once, if the completion UI allows it (that's very 
> helpful for choosing a project-relative file name in project-find-file).

Never happens to me, and probably never will.  If I don't know what to
type, I first find out (by "other means").

> But Company is just as useful in "needs help in typing as few characters 
> as possible" kind of scenarios.

But its goal is still different, and doesn't make much sense in my
completion use cases.  In fact, whenever I need to use programs that
only provide the "selection" type, I frequently am annoyed and many
times need to repeatedly type the same input until I get it right.



reply via email to

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