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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22179 invoked from network); 1 Sep 2021 00:24:44 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Sep 2021 00:24:44 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630455884; b=LGf+k83kgO7hMuq7XXorIBYU/HhET6EH6mvDYAN9IiOCzCtdjN+VJ3JJ4NnROB11LvdZpCFvZ1 k9tq8ah9xq4RgaSlVEV4QJweQ2fLtmUD3kOOUasZK1mFSQEsVGEhY2SLnjzH7tUQuvLaC8toaV /bmtWHJR8bpdDzElCysC70M+rcENtrQdxErX4/f/QPAexF2+ouRLe2e0PxIeLguKz0lMdX/eCT hVzpzlxzfWz3SfkxCHH7gN6Fsd7/b6NN/IM7ONVV2lgM61xXTbRfPEZ18ZohkzkbcsYd9hUexg IlRpYCUeqQItL2BDzDYiN9bplm3eCJkXbLSChaKIsBNFow==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f182.google.com) smtp.remote-ip=209.85.219.182; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1630455884; bh=TL8x0MOv2iD5+iF/MvLlUURYoDpDLjJX1dCg7nsNB5c=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=H9VK7pdd6/bNV8D9mLTC9Btn0M/or4NqvIQTMOsjwQO43md4k78kSGSOIiq7S9qN3b3ibr1fzG NhuLsZSTdFVYsyulb1u8Oanm2q1Xss9TWOudWmIDaqjctaQKUq3BE0JpdK1bReZ4pVGhcG/H5r e0DgUFitJbLTwfsXL1Y2hGLFyzh1DgR84MwSgg/3ZqEe5LN86jFRIfgMRi4LMEz6womKQrxTEs p1Mbwa8X5MMnih9v/21VzGmUpnHVT6iMFFKv+E9nAEb5yaRrSKNKI+mmDRy76K2bwhFitzqxqc gtU66ibVZ37fUHViHtsKggSwxtVlREC8t8O9wmF7421w+g==; 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:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=GT9Y1qkMWmkJw7EemHfw3lTR2t0dQ+locZRUBQloP0Q=; b=M3zPlbHOzNib5nJWd84TMbn74a D/hlRRyDnjJwr6gOfl/1XTmD3kKYSekr41E72BkStD+uZaShrwFvxvO0kRCCv2f7OJHYFdkSAI5hc 8x+rH1Z0digkOT2q2a8Dleib53AhAqP2Gims6gifr5BsszajUAGKLo7SEkcp80BESKDqVOu8TuFbL 8HBfJaZb9QBqkXgprxJd1xkQc1dPK0mRiIq9f85qlSXkw8YMVCyVpClPhsUzZ4t9HOmsPNjG3aksq Z5tLRit7ZigYwexdVsp8NCxuYzIKCbKktlm9Jo0gVcD/pT43aUp2+JfNLUF5KwB2W7RLRBiKSgRSe VLL7jU+w==; Received: from authenticated user by zero.zsh.org with local id 1mLE3Y-000Ge1-4g; Wed, 01 Sep 2021 00:24:44 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f182.google.com) smtp.remote-ip=209.85.219.182; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f182.google.com ([209.85.219.182]:40564) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mLE2o-000Ful-JO; Wed, 01 Sep 2021 00:23:59 +0000 Received: by mail-yb1-f182.google.com with SMTP id e131so1814085ybb.7 for ; Tue, 31 Aug 2021 17:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GT9Y1qkMWmkJw7EemHfw3lTR2t0dQ+locZRUBQloP0Q=; b=vxb62eajm/eWF0SvvkfG3SczPR4/nowvMfumHqcPM/tna+VruOaIEiZsPQRUH5X6UV 9Xcz8EJgeO0gSRQmlTgdHDSjU5xRiv8ZSCPOXulkk4eMjtqna4A8Ym9t/d4qCCvwSwmo UenD/iJqYi6+9LLaCrvsHRT5T7a828LZEugLdb6cvjuSdYe1jxGJ6VnFsPVKNPyMPEtx 2RaSqOxDt2mnDEJBJHhvjKmQC23qqGJEu9WeM5HH25FlB1pHC01Iv/gqpeCo4C7x76Cp 3YOCMYBaG1mAOj32ImtG8Hco1M7cdx4YisciL8kBLGuHi56uIz3uIQsG/+aA4whm4Db/ 02/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GT9Y1qkMWmkJw7EemHfw3lTR2t0dQ+locZRUBQloP0Q=; b=OyOAUdWYbegrn22f/hzsMMETc1voRR2gffNkhR+30yM+/znN2ncbbAKsBYcregiG6R wc5mbWd3QtvpdKRjzUCnfC47Hg4JjQsvnpMUX9ammvNGYoJ2waOACEIOe+az//IeyJZg G3r/Jxb64YSJmMFJaAiF+dEJc4vJreLEq+RIAx4myQSgoR9y0j+U9/ye1bJZfFIbHl7z HVK3aUNCOZHjxAhb9g/AVpFA+p7jgI7GcBORho6LgJeWYya7dxVgtPYlVo845QMWaLTq VqfA27/WF/XlpAsrC0zJwkE3HIk0GatULesiLtLkA8Q37AYcFrLM4HkQVJlPgX4ktGlE goAw== X-Gm-Message-State: AOAM530l6QCCGXW8gjir6lbOuL0Fs3UsgprXUZLQoAl2G2IeEZrpSl0U E+JFuF2eh+RWKtR12zrxikyuzcuNfa2mWIcyR2M4+1KALHuJ6Q== X-Google-Smtp-Source: ABdhPJxWW2nkjdL2e2isHs2ZoFHz8Q0TYdnTidFPlnzHE8xwcnwRbAQm3ay197CAdmKA2jmBTqBFmJ9c0ilGpIylTBM= X-Received: by 2002:a25:290:: with SMTP id 138mr33914462ybc.226.1630455837588; Tue, 31 Aug 2021 17:23:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Tue, 31 Aug 2021 17:23:46 -0700 Message-ID: Subject: Re: Completion: How to show description for current option? To: Roman Perepelitsa Cc: Marlon Richert , Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27038 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: On Tue, Aug 31, 2021 at 10:22 AM Bart Schaefer wrote: > > That might be all that's needed; a matcher-list entry that allows '-' > to become '--'. But I suspect there's something deeper going on in > the _git suite. Indeed, the _git suite of functions almost always use _alternative, which calls _describe with a hardcoded matcher which is prefixed to whatever appears in the matcher_list style. On line 41 of _alternative: _describe -t "${def%%:*}" "$descr" ws -M 'r:|[_-]=* r:|=*' "$subopts[@]" I believe that makes it impossible to write a matcher-list zstyle that will swap out "-" with "--" in the context where Marlon wants it. Can someone demonstrate a workaround?