From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: vertico Date: Fri, 09 Apr 2021 23:37:22 +0200 Message-ID: <87im4vglwv.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11630"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.11; emacs 28.0.50 Cc: emacs-devel@gnu.org To: Daniel Mendler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 09 23:59:17 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 1lUz9p-0002wS-9B for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Apr 2021 23:59:17 +0200 Original-Received: from localhost ([::1]:58550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUz9o-000780-B3 for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Apr 2021 17:59:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUz9K-0006i6-G6 for emacs-devel@gnu.org; Fri, 09 Apr 2021 17:58:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60968) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUz9J-0001jH-Hn; Fri, 09 Apr 2021 17:58:45 -0400 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:40427) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1lUz9I-0005Io-2D; Fri, 09 Apr 2021 17:58:44 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id B21FE27C0054; Fri, 9 Apr 2021 17:58:43 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 09 Apr 2021 17:58:43 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekvdcutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufffjgfkgggtsehttdertddtre dtnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheq necuggftrfgrthhtvghrnhepveevieekteekveeigfefffeivdetgeduvdffueeuudevge dttdehvdfhueevfffhnecukfhppeekjedrudeifedrfedurdduheegnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmth hprghuthhhphgvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhs ughhpeepghhnuhdrohhrghesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA id DDCD524005D; Fri, 9 Apr 2021 17:58:42 -0400 (EDT) In-reply-to: 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:267750 Archived-At: Hi Daniel, I've tried and liked it and I've also worked on my aggressive-completion package to make it usable with vertico. aggressive-completion basically hits TAB for you during minibuffer completion in order to release stress from your pinky. Right now, I'm using aggressive-completion-mode together with vertico using this configuration: --8<---------------cut here---------------start------------->8--- ;; Disable completion help since vertico shows the candidates anyhow. (setq aggressive-completion-auto-completion-help nil) ;; A command which just expands the common part without selecting a candidate. (defun th/vertico-complete () (interactive) (minibuffer-complete) (vertico--exhibit)) ;; Use that for auto-completion. (setq aggressive-completion-auto-complete-fn #'th/vertico-complete) (vertico-mode) (aggressive-completion-mode) --8<---------------cut here---------------end--------------->8--- Now I have two questions: 1. Shouldn't there be a command like `th/vertico-complete' which completes the common part of the candidates? 2. One annoying effect with the above command and vertico is that the typical completion messages such as "Next char not unique" bump point to the right, i.e., with stock minibuffer completion you have my-input| [Next char not unique] whereas with vertico you have my-input [Next char not unique]| where | indicates point. Why is that? Thanks for the nice package! Bye, Tassilo