From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: Stepping Back: A Wealth Of Completion systems Re: [ELPA] New package: vertico Date: Wed, 7 Apr 2021 21:49:49 +0300 Message-ID: References: <9c9af088-580f-9fb1-4d79-237a74ce605c@inventati.org> <874kgkxxs0.fsf@posteo.net> <3ec7e2e58a100426a22e@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33401"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0.6 (2021-03-06) Cc: Philip Kaludercic , "T.V Raman" , Manuel Uberti , emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 07 20:51:24 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUDGu-0008Yg-Nr for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Apr 2021 20:51:24 +0200 Original-Received: from localhost ([::1]:43420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUDGt-0005nc-Q4 for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Apr 2021 14:51:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUDGD-0005IQ-8V for emacs-devel@gnu.org; Wed, 07 Apr 2021 14:50:41 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:59155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUDG6-00073B-EV for emacs-devel@gnu.org; Wed, 07 Apr 2021 14:50:40 -0400 Original-Received: from localhost ([::ffff:41.210.159.189]) (AUTH: PLAIN securesender, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000001DF49.00000000606DFEF7.00007995; Wed, 07 Apr 2021 11:50:30 -0700 Mail-Followup-To: Gregory Heytings , Philip Kaludercic , Manuel Uberti , emacs-devel@gnu.org, "T.V Raman" Content-Disposition: inline In-Reply-To: <3ec7e2e58a100426a22e@heytings.org> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:267559 Archived-At: * Gregory Heytings [2021-04-07 15:10]: > > I have the feeling all these completion systems are encouraging > > confusion around how to use completing-read. That is the 0th point that > > is missing here: Are you completing (expanding text) or selecting > > (narrowing options). > > > > I've been thinking about this, and I'm not sure I understand what the real > difference between "completing" and "selecting" is. Do I understand > correctly that the difference is between, for example, expanding command > names (completing), and choosing an emoji in a list (selecting)? It is comselecting. It is now with new completion packages completing and selecting in the same time. It started with completing and it evolved into selecting. Emacs is peculiar, we need to find new words. Let me mention that I heavily use completion usually for more than 20000 items, sometimes 50000 or more, all candidates are imported from a PostgreSQL database. I mention this that you keep it in mind while developing packages. And I often use lines with ID numbers, as that way I can easier use completions which are not Helm. Helm allows me to complete with candidate ABC which yields with ID number 123. But if I have a simple list, I use it this way: (rcd-completing-read-sql-hash "Choice: " "SELECT notes_id, notes_name FROM notes" *cf*) Which is using standard completing read and constructs candidates like: Possible completions are: * The large majority of the CU members will be Brazilian [19252] 1. You would not be able to advertise, however, you [20225] 3. generally take within 24hrs [20226] Then when a string is selected, the ID is obtained from within brackets. I hope this not to interrupt with new developments. > > It might therefore be necessary to actually implement a "selecting-read" > > function, that could be used more or less like completing-read, but that > > provides a better default UI not based around completing text but > > actually selecting objects/items. It maybe possible to improve tabulated-list-mode so that it may be used for selection of items. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns Sign an open letter in support of Richard M. Stallman https://rms-support-letter.github.io/