From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Samuel Wales Newsgroups: gmane.emacs.help Subject: Re: can vertico approximate this ido setup? Date: Sat, 10 Jun 2023 18:05:38 -0700 Message-ID: References: <87zg5f37j1.fsf@gnu.org> <87jzwijs04.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="853"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 11 03:06:21 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 1q89XB-000AZ6-7w for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Jun 2023 03:06:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q89Wb-0002rh-5C; Sat, 10 Jun 2023 21:05:45 -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 1q89Wa-0002rZ-5q for help-gnu-emacs@gnu.org; Sat, 10 Jun 2023 21:05:44 -0400 Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q89WY-0005xj-I1; Sat, 10 Jun 2023 21:05:43 -0400 Original-Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f740497304so8999e87.0; Sat, 10 Jun 2023 18:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686445539; x=1689037539; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ja/2uBjHHojuWjkikJ9n2OVUAI26IdGaBJuu8WXTBsM=; b=cZMtgzlNIEsQ7548QbruDVqWqHjA7K8fDiL4KT9x7JRZMteF9W8qkW/YLCxx5fOX0J nf/2Iqa8dm05biXt/VaF6bj/c5JDxvvTyf1Y1c1ssDYB7QWo2vPErUl5aP0XzBLH9J9F 6wbKMWe/GJSmqAv/9H05g8aw0BNaKBaAluzDWCnApLZujhuoY6dgHTA4qqKhEuLkZ5Ru KOg4WndVzOZEYkibMUzi4k454tuXqj/ml/XV1l5bEe+CW0PWxCVVVpT0XrrbGmaGeWC0 18MXrv2PRLpPECXVvlwiNN+io3/UTugJKytKRjvyoi+NHTlQjUGoWhknzFBYqp3j03bm Ts9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686445539; x=1689037539; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ja/2uBjHHojuWjkikJ9n2OVUAI26IdGaBJuu8WXTBsM=; b=auE/8RY6lbnZYUB7nREu++arUaUUfH7Pr0OMgFRIjmbwYgXrJj/HmdmECox74FEshO ozRQx9QdDdi/CocbG3mSt83hrimHGN3MinjuvePq1sQEdqGeZCKXZI3ijNsCdU1OLGc0 CAPhZSPgMFSvMc3B4619HQyctfUnLxy/Q1M+84OtmfZRRaBlPgdREv2UrXw0AyxY2Q76 1FdvbeSmJ3rX6jMGcvmIdw52EgALdC6teFCu6oVXioOBeNkF7eDfWj9mNtxHw8KPEX+M 55D36jJAibbdTvyZCoTCtOS8etG/7sWS8arvyZg6l+UpyB7tDVfYiDB10Isrx8yG7aDg 1u1g== X-Gm-Message-State: AC+VfDzPl7deVPO2pCd7cSnmL8MjZJCEH54t+iW/l/1/xt5zMJAm9Ok/ 6eXS3ZMSnxDKjkXocuI0kTTRin37H3RmDLaXzEFcpK6hHTfg0kA3 X-Google-Smtp-Source: ACHHUZ4+vRwisIjZKWJf6faouI4Mt7BgHZ2laiJAsvt9LQvyEiNDVKCChIoqceGSL3meEDfVBL2rHZiVg6XFpDqcCRw= X-Received: by 2002:ac2:4252:0:b0:4f6:d27:a7cd with SMTP id m18-20020ac24252000000b004f60d27a7cdmr2319135lfl.5.1686445539307; Sat, 10 Jun 2023 18:05:39 -0700 (PDT) Original-Received: by 2002:a05:6520:12a5:b0:267:567c:27d7 with HTTP; Sat, 10 Jun 2023 18:05:38 -0700 (PDT) In-Reply-To: <87jzwijs04.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=samologist@gmail.com; helo=mail-lf1-x12b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:143918 Archived-At: more below. On 6/5/23, Tassilo Horn wrote: >> i think ido-clever-match got that right: >> https://github.com/Bogdanp/ido-clever-match . it is almost perfect. i really do mean that :). it matches well ime. > You might want to play around with flex-score-match-tightness for the > flex style, will do. > >> btw i have trouble understanding the emacs manual on completion. the >> completion styles don't make sense to me whent they talk about text >> after point. idk what i am missing there. > > Do emacs -Q (and probably set one completion-style at a time), enter > something and move point forward again. At least some styles seem to > ignore text after point or at least handle it differently. move point forward /again/? it doesn't seem to go back. > >> here is a big long quote from ido-clever-match exactly what it does. >> i wonder if vertico/orderless can do it similarly? > > Vertico doesn't come into play here and I don't know orderless well > enough. I think it's similar to partial-completion where the order of > words doesn't matter. my limited understanding is that vertico does come into play if i want something like ido-clever-match. i thought orderless, for example, leaves sorting to vertico. but maybe i am confusing sorting with matching or something similar. > >>> 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. another thing i will keep in mind. > I think, it does. One thing to note is that with completion-styles (a b > c) is that b won't kick in as long as a delivers matches and c won't > kick in as long as b finds matches. aha.