From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 331174a0 for ; Mon, 13 Jan 2020 17:47:09 +0000 (UTC) Received: (qmail 20616 invoked by alias); 13 Jan 2020 17:46:40 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24657 Received: (qmail 7440 invoked by uid 1010); 13 Jan 2020 17:46:40 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f44.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25691. spamassassin: 3.4.2. Clear:RC:0(209.85.166.44):SA:0(-2.0/5.0):. Processed in 1.463876 secs); 13 Jan 2020 17:46:40 -0000 X-Envelope-From: mikachu@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.44 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=71lzlvAdmO8ITtEJAnkK15USJRVVOzGXuYzoC25BpsI=; b=EejgmDr8yU4M/vIsMO8nkQFKz1SXp5gWasQNlBIWSA2PXAj8R0sFxGRcEluNz5AMqo ZeT4T6MZ907EbDv6aCvg24hVW9RHD6l2zxIZbLkItHDfJ10mnblz95oo8A0xdfVzlycL moOZ2lueBh68krZGExd+9/KndQy4KT9APnFZHzcgd5NvWDF/a6FUvZ+VkimmUGUPPYr7 PPxGkY4AbV02W9Sf+wYU6YRAQy10PqtVuq1yTcZbJEO2OB+274/AK6+OGRVjuCFZQpmM MHXSoJF9pwMcp4Hcd1ByKvffHgfBhyLeYeXbQ0pCWIrMk7ve52H/pVThZmetHIiakRF2 StjA== X-Gm-Message-State: APjAAAXxnGuQkHm2abXgU1oVXngbStEbHYA2c30+7GI4TxLUo4wDKtDb a30IaC8j2AKUkMJOkR5g/HJUT3AmPWuq3O1z8eV5BQLj X-Google-Smtp-Source: APXvYqxLvnn+DAhiAd9WaCk5IdXa1elqWelJAQQCN2q7mK1rGpNjZgm8lx+3FE8iIE+3C/WVv38LnOY0sNTAxF69myY= X-Received: by 2002:a02:9503:: with SMTP id y3mr14653963jah.14.1578937566083; Mon, 13 Jan 2020 09:46:06 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1578934576.7311.13.camel@samsung.com> References: <1578934576.7311.13.camel@samsung.com> From: Mikael Magnusson Date: Mon, 13 Jan 2020 18:46:05 +0100 Message-ID: Subject: Re: problem with context specification To: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 1/13/20, Peter Stephenson wrote: > On Mon, 2020-01-13 at 17:46 +0100, Pier Paolo Grassi wrote: >> For the episodes command I would like to override this style, and set it >> to: >> >> zstyle ':completion:*:*:episodes:*:*' matcher-list 'm:{a-z}=3D{A-Za-z} >> l:|=3D* >> r:|=3D*' >> >> but this doesn't seem to match when i try completion pressing tab after >> the >> episodes command. > > I've a feeling matcher-list is only run in a very general context, so > updating per command doesn't work, and you need to use the matcher style > for more specific cases. However, I may not be remembering the two > styles where this applies correctly, and the documentation doesn't > explicitly say where the two work and don't work. You're correct, the documentation for tag-order says: "The matcher-list style offers something similar, but it is tested very early in the completion system and hence can=E2=80=99t be set for sing= le commands nor for more specific contexts." But arguably it could say this in the documentation for matcher-list instea= d. --=20 Mikael Magnusson