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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 bb74a1a5 for ; Wed, 18 Sep 2019 21:48:55 +0000 (UTC) Received: (qmail 25729 invoked by alias); 18 Sep 2019 21:37:01 -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: 24262 Received: (qmail 23153 invoked by uid 1010); 18 Sep 2019 21:37:01 -0000 X-Qmail-Scanner-Diagnostics: from mail-pl1-f173.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25573. spamassassin: 3.4.2. Clear:RC:0(209.85.214.173):SA:0(-1.7/5.0):. Processed in 1.485227 secs); 18 Sep 2019 21:37:01 -0000 X-Envelope-From: rpigott314@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.214.173 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:in-reply-to:date:cc:subject:from:to :message-id; bh=nMy85pMTypl42chAwfsFcgbzpPl65oGMlSPDMLrs18E=; b=A54OJuq/cn1Y5db88/xViFnyyf/x+J55sjRsILVH2eVUFx5ZcHhirfZdsx4SCx8heG fqrO3Td+oqISwMv8pWKPe/AoVnszuyCvEaPfwlxQfdnxwxVocYt69cTP1VpF/0TvQag2 pwpCuc3WsylgQBThEMlthJHWKiVLeG2dY59/nCw2GNhmXmfkQpRl91mciD2ZQ+1CcwZ4 Ht0d/VTnWElcc1jOqudzy4euIFUeZAGyWZdD8sLNyTwTTwN8q8Ru4jkJS4TKagwspU27 n8DchfmwH1F561tZagZEyQ/wkUi39Qktvy+4wdRrVunrGc6nhDbLxlOKB17kQfNf3WNL 0w9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:in-reply-to:date:cc :subject:from:to:message-id; bh=nMy85pMTypl42chAwfsFcgbzpPl65oGMlSPDMLrs18E=; b=AQd1qBJKD9dwnOVQE0oAth64FITpXpcX65Ln6p1gdZvXKRdz7+hanficRJMNuOVHcJ Ny2W3X+nvwXA7A45yFqpv29AQLrNn42zi8ykL1Bf+WRheH5jE6VwqOLXEnnnig7iA16j lo8GhDaaJY1EgZ1TChqyMfe6Cdp8ZYbZBJCZmupHU0efaZ56edoqS3QvnVIWfrEDofvH Jr121GnbsYJ0K3zItvUILl7ypftrI0gSUiuNAGAIbMjDpD6lZEyHu7YOaMgG19phYGzP GYJ8TqDXU15WvtXMpIcbDYfXt8jVLR1o6XW7gfykfDWkLym0J9lefnGxcjxs2SdZWLkk S2hg== X-Gm-Message-State: APjAAAUKTYYZ7i9lZv+yUaiAbwDKfUGwLg078vpcnbr9OUVov38G2QP8 6k7Huen2m1Ihl3eTIlp6XQ== X-Google-Smtp-Source: APXvYqyRshej41dy+J2DnjTniIJ+fna5t/HLNf42UN+sT9t0xGoKgiyX/leV8ZuH69lTGFfvlSxNUg== X-Received: by 2002:a17:902:aa4a:: with SMTP id c10mr6188929plr.340.1568842586912; Wed, 18 Sep 2019 14:36:26 -0700 (PDT) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 In-Reply-To: Date: Wed, 18 Sep 2019 14:36:25 -0700 Cc: "Zsh Users" Subject: Re: Possible to use _arguments with _regex_arguments? From: "Ronan Pigott" To: "Bart Schaefer" Message-Id: X-Qmail-Scanner-2.11: added fake MIME-Version header MIME-Version: 1.0 On Wed Sep 18, 2019 at 2:07 PM Bart Schaefer wrote: > On Wed, Sep 18, 2019 at 1:39 PM Ronan Pigott wrote= : > > > > When I use '*::message:_myfunc', completion is no longer tripped up by > > options, but _myfunc always acts as if it is completing the first word > > for all normal arguments, as if $words was empty and CURRENT=3D1 even i= f > > there are many normal arguments. >=20 > You could probably get away with shoving a dummy command word onto the > front of $words, but I haven't made any attempt to try it. Brilliant! I think that was it! If I allow the regex to match any string as the command word, I can now specify the action as '*::message:=3D _myfun= c' and it appears to work great! Thank you!