From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27702 invoked from network); 21 Sep 2021 09:24:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Sep 2021 09:24:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1632216269; b=mv9o+ZA5Gj4upG6WbJ6XOF1uvXYlQ9qcOrJCHMW2Ip++gV3LTBsrtQsmU/G4D1g8qX9gj6izv9 cPFJLnpA+UHLUW59pbJSzcTbWIjKk2v9wBloVAJcm6UISW1izKZRaiSdbFFo0BKivdXaTOn3O/ b8VXvFUf6/42Rli6kBBqM/hWReCcUOvcoepa9wGs4rLzVIfqy04OqC6wyymQYOvripHxak3De2 +CIjYzBObAcJfJwtrcmapO2DQ2fe4DWSd8oFnMenhsgcny1AM1AP1PQNmFHB/WYENFYUDPjGwR P8brDv+Wj+F1HsPE9rqVRTzpORAP89qqKIfKO1hb9qlGWg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-vs1-f47.google.com) smtp.remote-ip=209.85.217.47; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1632216269; bh=5qZ4UGX8RQvD46FUMfJxxjVdGEcDYmlMc2P4eMZm+Bs=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=HsNbK+DNrzlOb7G8f840c+XS45TxnkoHiEY59saRezUtWKBnlV70vMQoEoF2EFOO+rKNwx1V5L 9GX7ZRfxu8OrG9uxlfE49xsV3lNxJakGP+8+z3hppFMqT1Gz6L1KyykflGvvtS6Xs+Kcwf/1Qv CXEpWP2rb9PHSvxo5MkDX+aVO/gEs8EFnVG4GwuQ3/BVI06jMU1iLUDn1QmRmZPvz7isL2QnlZ BSmQ89i9U5uoDsN+m4H79BU2/nmoJ7A7x1f62C/G+Pkk0Rf5UvibKn6/2BjnlkOihbKxnQkyMC 486UUpQt3PTOrd0w2qTYRT19I2JZzoi1i9FiaWoqaIzVLA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=y4FcQ1FL2sDBoc6YPyIS4mVibVEbwrBDKDXY1HEeF58=; b=awTPnYtL2EzU5e++dx952LZjzj SBG75z6d3OPZpmCHzzBBa0pBz+oHQGDcWGdVeOLoSB/E0alJvC8roOLM6xcZambzBB8PuX/d3ytWE tIqnP6CdQw2fiVSObiExgvkJwceoNeOOoi+G+o/V+gnXkuIMRRMoNxRWC5mMa3XcmEgbXd//GO69g zdc5Y+Zu1h1+r9jCc6ygrYtOH9RoDKYPtdbUBd4/0hL+31R+wL8xaTcXbjjiXCcCSdV9CeuysUsxV 5FJC6gwijjhpa/ONU7XvCmoovXSrCo+2yRbVmo+D/K6YmTvU3oXu79VBXZPGAwznKMzC7DHjLp5ji cQCpLqbg==; Received: from authenticated user by zero.zsh.org with local id 1mSc0q-0006Yu-Hh; Tue, 21 Sep 2021 09:24:28 +0000 Authentication-Results: zsh.org; iprev=pass (mail-vs1-f47.google.com) smtp.remote-ip=209.85.217.47; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-vs1-f47.google.com ([209.85.217.47]:39697) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mSc05-0005pn-IJ; Tue, 21 Sep 2021 09:23:41 +0000 Received: by mail-vs1-f47.google.com with SMTP id o124so19517963vsc.6 for ; Tue, 21 Sep 2021 02:23:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=y4FcQ1FL2sDBoc6YPyIS4mVibVEbwrBDKDXY1HEeF58=; b=IXfOog6GW2F5cdxNfHG8wVU1cPJDgMAyH7R1d4/VTyRzdvCIZvR6Msd2N0D59lK1x1 wEsbhoFuP5m0+76R/Mk0mt+20aCyFMehfGQ1Ovai8MEzdwdzUNgC3kodE0fWgY2neXjY yySxrEmziTXMxe/gRbv0Xa//b6pHu7wZVuBE2f1XAGfhCg9TXzArNW3JSJ1bIifRm8u8 Vg2AneeKNZl5PKVsB/xS9Pt6HLnA8OYZuUcNr0HBdJI3mYchV//D+4Xe59efRLPEyPMe 2B91N1YUdygf6jGic73S4ZkXwxI6sfGLEGEa85uoq3w4yisa+dHTcQqYIMpOCTcaaRL2 tqQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=y4FcQ1FL2sDBoc6YPyIS4mVibVEbwrBDKDXY1HEeF58=; b=oN/F/xJu4Km79d24B2XfTaNsDmdf1sdasPhlQ4sjvdXSZVrqPECA+F65tnejYHWlmQ rrSnG9EMvbvtW9v2MqrqM6u71q8bVvO7qtHH36UIjugGSEfwumTZqHCa0BHtfufj4uwp Uz8zu7xmUMJ/01zwGYGpD+uDqna5jOVntqlyYXXWMbbodvLZsbYuxbsvuF50pOwp5PoM 5SzY3O4LM/AptlHFn532UvpuCZYAvTt4ZwcJkMIPP0legnqw455E4+We1b+iFj01HaIS r+vjiG3NcdEdYOYe33P9ZbzxO1j2rS/ekm7Bq7+/PlsECTqHcHHGc+U6V/9UJ5ANQIlu z3Ig== X-Gm-Message-State: AOAM532kaBDuEbAbGkzHBIbrRvnJ7Xks0uU2hWgPkZDInr9jOmgdiaJu Zfzz24SHtxu+KCpOnQ2874cQvXFXmsi2p3B18XFXdOtScDaGFQ== X-Google-Smtp-Source: ABdhPJzZc+V6PzF16EK9rt7KW6Tsae1Awzy2g0pSGQ25wzcl4FxizWkJbHSnU55IpHIO29Aj5CKCTnni0xWyELyLjiY= X-Received: by 2002:a67:c896:: with SMTP id v22mr5891658vsk.39.1632216220003; Tue, 21 Sep 2021 02:23:40 -0700 (PDT) MIME-Version: 1.0 From: Marlon Richert Date: Tue, 21 Sep 2021 12:23:04 +0300 Message-ID: Subject: Questions about completion matchers To: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27127 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: How can I make a matcher that completes the right-most part (and only the right-most part) of each subword? That is, given a target completion 'abcDefGhi', how do I make a match specification that completes inputs * a * aD * abD * aDG * aDe * aDeG to this target, but not inputs * D * aG * acD * DG * aDf * aDeGi ? Additionally, the following are unclear to me from the manual: * What is the exact difference between l:lanchor||ranchor=tpat and r:lanchor||ranchor=tpat ? * Why do the examples in the manual add r:|=* to the end of each matcher? This appears to make no difference at all. * It appears that the order of "match descriptions" in a matchers matters, but it is unclear to me in what way and it isn't mentioned in the manual. For example, the pairs of matchers below differ only in the order of their match descriptions, yet each produces a different behavior. How are the match descriptions inside a matcher evaluated and what causes the difference between these? * 'r:|[[:punct:]]=** l:?|=[[:punct:]]' completes 'cd a/b' to 'cd a/bc', but 'l:?|=[[:punct:]] r:|[[:punct:]]=**' does not. * Given two target completions 'a-b' and 'a_b', both 'l:?|=[-_] m:{-}={_}' and 'm:{-}={_} l:?|=[-_]' will insert 'a-b' as the unambiguous substring on the first try, but on the second try, only the former will then list both completions, whereas the latter will complete only 'a-b'.