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.help Subject: Re: can vertico approximate this ido setup? Date: Sun, 04 Jun 2023 10:57:24 +0200 Message-ID: <87zg5f37j1.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="16174"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.11.6; emacs 30.0.50 Cc: help-gnu-emacs@gnu.org To: Samuel Wales Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 04 11:24:47 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1q5jyh-00040i-33 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Jun 2023 11:24:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5jxp-0000bM-MS; Sun, 04 Jun 2023 05:23:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5jxn-0000au-Db for help-gnu-emacs@gnu.org; Sun, 04 Jun 2023 05:23:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5jxm-0005tp-Tx; Sun, 04 Jun 2023 05:23:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=KRKIlOXmnrRgzjybrDIEkmbtJwe3m6tKTW9QA6sopKA=; b=mmMs4o7K4pXDiO t4516wEexmsGb+eRmuRa2sVJnVq9+IHjv9bL9cEGVUhPelCsDixZs6aq0dTSG0YkV952yHUMp4eQC muImysjbepOLfHbO7Wk3RDSs6RFjJljfBdh8eQmQBZR9uLWSc/5fo0yC+XiwwDzcLPhiGaGBeoPuo VsyGi0NhCgEtymUAujGH2k6j0Lynh8+VJxBpARO4/1rKJEtsjkVN54Bvw2WgfbycWu3Ntnce3TNFw EGX9+K8woZAGxaK3x/OVbOvGxJPoBIdXmLCH6iYR0ISkD0pqQrd32DNSeI5k5iwzfxvOvqHcIXlG2 OHJ3CaNkK3IuL2KczPlA==; Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q5jxm-0007pk-NB; Sun, 04 Jun 2023 05:23:50 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 40DE627C0054; Sun, 4 Jun 2023 05:23:49 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 04 Jun 2023 05:23:49 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeljedgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvfevufffjgfkgggtsehttd ertddtredtnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdr ohhrgheqnecuggftrfgrthhtvghrnhepudejtdehuddvleffjeekteegvdehleehvdeufe fhueekkeekhedvgfeggeffvefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlih hthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgr shhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 4 Jun 2023 05:23:48 -0400 (EDT) In-reply-to: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143849 Archived-At: Samuel Wales writes: Hi Samuel, > but my initial attempts were worse than my ido setup. i do NOT know > what i am doing here. but e.g. > > - my selections are very wrong compared to clever match Define "very wrong", e.g., with a screenshot of what you get and a statement what you'd expect to get. FWIW, I see that you put the flex and orderless completion style in completion-styles. You have to be aware that at least flex matches very distant candidates, e.g., foo matches after-some-root. Ok, that's the purpose of the style but I think it's only useful if you place it at the very end of completion-styles with more exact styles at the beginning, e.g. (partial-completion substring flex). Orderless can also be slightly confusing because fo-ba matches bar-foo. Again, that's the purpose of the style but maybe it's also better used later in completion-styles, e.g., it's much more exact than flex but less so than partial-completion or substring. Also, I have the experience that some completion styles work great for one kind/category of completion but not for others, so I use completion-category-overrides. --8<---------------cut here---------------start------------->8--- (setopt completion-styles '(partial-completion substring flex)) (setopt completion-category-overrides '((project-file (styles partial-completion substring initials)) (file (styles partial-completion substring initials)) (eglot (styles partial-completion substring)))) --8<---------------cut here---------------end--------------->8--- > - faces don't seem to get recognized when i specify them > - also i don't get variable pitch > - also i don't understand the completion-first-difference face I go with the defaults (of my theme) so cannot comment on that. I guess that also completion-first-difference is not well-defined with styles where matching is not anchored at the beginning of the candidate. I think it's always the character after the last matched character. > - have not tried consult yet > - embark uses more than window height or confuses > [...] > i am very limited in computer use, so before i try new things or > search, i want to know if it is worth trying to configure vertico to > work approximately like my setup. my question is whether it is > configurable to come close-ish to my ido. I'd rather start out small, i.e., vertico / corfu / marginalia and add more stuff (orderless, consult, cape, embark) later on if I feel that I'm missing something here and there. I think ido supports some special things (creating directories, deleting files during file completion or killing buffers during buffer completion?) which you could probably do with embark but well... Bye, Tassilo