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=-1.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,T_KAM_HTML_FONT_INVALID,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17679 invoked from network); 9 Sep 2020 20:28:12 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Sep 2020 20:28:12 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1599683292; b=Q0Tica9rk0Pso4mys8VA+MmZocGBU/a9Cdn8JiMk57X9rCvvjMUO162pwmON3wS6YDnEZkzFeQ DzxDX6JYARe/hxvg7pmop2AKeYS+yxC8FJ6K03Wn3iTYgZw9CgWaHqPzU2/Et3i/5jV3UMGPtK mcvMIIEpY2IlCsIK9hZ68GMilmVLAgc56h52ec+TqKlYFVJj5gS0sZ+TwqvHtpROZd7HYm9sEg XWJrrPDGsrqTVMyondYDJg4myVBxXStOaCJ4DeJT9TyWnds6dlezYwUxRrutW5uGH7vWOOTHwN IuCZ6eY8WzBVwHATlYeZT9ZSmZJ4q5XlVMGdwbMnPtib2g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f51.google.com) smtp.remote-ip=209.85.210.51; dkim=pass header.d=gmail.com header.s=20161025 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-20200801; t=1599683292; bh=yMawArZWGaLOBxt0kt91C22Ay7RlpnR80IgZPj+tKBU=; 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=r89sLmLoL06rgYFxBrLk950eCXJfqdxIE2SlmPLqMqjfcvqUe4BSTi8vH+792zxcAXkKZkKOlT Fv7D0TXFA1CK9v8KdAoSR9QyaBlRcRp3Pnm3QqvCNqekUrTBL/qXzLhctFfu/UNUVgCEbsPqVX eLjSgXa/lSUhbnoViJiE5S9Z6S19yDtd8X6BuLlb2Pou2c/Wnkd3g/3iQ75Ve0IcsRhkHWGrYo eiHvJ1FpSqb7Oe72ElBC8vnmxbfj3xBfoqezhNZdtFR9PZ1aMtUx1DHeVv4wqFmdyrd5bYhTzB J28wKtL/1AyOwHlkVYgMY2Oa9sc2GbzDktc6dDdcRktU+Q==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; 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=GZhudSxo3oLh4CiwHpDn9EeEHenCGJlm7dCrsMq/+6g=; b=fz/5Ng6isiGadQjiZhOIEk2X/e 7OzK8ohS/ftZDJfBdV+R49JkTS3JozVx8VnspYxH95X+AFiDVvDxA7yHR5TRIsA7pgFl4oV1LK+0U wwvmgcO+2TvYW+IWqbX0t5F7Z+amYFk22D+xY9uDzGCHuCzsv+ty5uPiQEFicMuw9otTUk5vHiXo8 OR2yt4itpINxZqSme+40DLQQttb/q1ZXsHxdTl14Cvc6k+4zAvKJjgG8oU0fX8nLn12zWqvXSMegL jEq5dAseDGAMxbf/diKzYwWPnAlK7kCeobm1xkRdtBOfJ+ZgNqUbskJ8VTTh7YBs4M78eZnsdtvCW AJnH9w3A==; Received: from authenticated user by zero.zsh.org with local id 1kG6hQ-000O91-85; Wed, 09 Sep 2020 20:28:12 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f51.google.com) smtp.remote-ip=209.85.210.51; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ot1-f51.google.com ([209.85.210.51]:42443) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kG6h1-000NlT-CF; Wed, 09 Sep 2020 20:27:47 +0000 Received: by mail-ot1-f51.google.com with SMTP id g10so3440898otq.9 for ; Wed, 09 Sep 2020 13:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GZhudSxo3oLh4CiwHpDn9EeEHenCGJlm7dCrsMq/+6g=; b=j+eNjNh3P4p5uqd4BYHgIXUeusjuEw6tRmlQaqn4CaCiPNoecVpHXz5f3HB14l4xND ynBU33jMp0WZHXnjPQCSvGeLtNjLm0eOI6gy6DMfRpnDFLusQ5E1kHxIpyYwpHJH92Tl x5UJ6RpWQO8k8A8P0gWJxycpc17sC8Bf5ikzKv0S3BoO5zlY04R9Sg0hfsSSHmiA/1zQ th6JoyTsHwrzMCKRJLe+jGKD2ZkAP+bps1VrMp1g4BsbIctcyDehtDEqbCJbql06ywd+ Bx2bhl/YxUGUqxjs+vUrHQd31RRXxaklEBMnaISggGSMmAUOllIlR00023BqkedCnvx+ Duiw== 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=GZhudSxo3oLh4CiwHpDn9EeEHenCGJlm7dCrsMq/+6g=; b=KtnaIqdNTNAeBJnfRg+4SIOJvTq/4MlKUyHOutAFFhsLWtObYGuRDqTjS0i/PJva0Y UIJtC59VaPKP+zZjmFet7oZJwvAhxs+RnNIs2pybwdB58J90rS44zRvaLzYhS7SsBpkQ 4xydaPW/bTpOTnfdG0XjPrJ5z4+mQPVoDf/sTxkyoJRpC8LubWJmX3dTpd4PjcSw833i H6Y51c4QfF3OhYcZgQm7eeh+cvPoUKasRZT5O09ZGG1rJwW4iGvWqnv/Vz+VKLz7o07z 6IudVCnFXUuLAQdoNA2z9TZtNIXw5H7mYNfPLj49Q8hlyqyAvMjsKOOBDMAsTL6FmwuA Wexg== X-Gm-Message-State: AOAM530SFcHG4q482NQKdKp2PNIzEbkYeZL8Jir1P+tYuVOAEiQU1ZDx ngYFclgqxEVhviGuHSi1Nqa29+KK59Rxq2RfVRD4HoG1m+3VYw== X-Google-Smtp-Source: ABdhPJzayJFD+3PmyNdSd652UzJJ4XcFbwVruDLkFPym+L3ZDBBaho4dYWHsc+RZdbpDUNlNHEz8GIAUvN4mnCBoOOg= X-Received: by 2002:a05:6830:1e30:: with SMTP id t16mr1893621otr.18.1599683266238; Wed, 09 Sep 2020 13:27:46 -0700 (PDT) MIME-Version: 1.0 References: <20200909180347.770c9f9e@tarpaulin.shahaf.local2> In-Reply-To: From: Ahmad Ismail Date: Thu, 10 Sep 2020 02:27:35 +0600 Message-ID: Subject: Re: zstyle tag-order completion issue To: Daniel Shahaf Cc: Zsh Users Content-Type: multipart/alternative; boundary="000000000000d65f1e05aee748a0" X-Seq: 26062 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: Archived-At: --000000000000d65f1e05aee748a0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Daniel Shahaf, I just noticed an issue. When I use zstyle -e :completion::complete:git:argument-1: tag-order ancillary-manipulator-commands ancillary-interrogator-commands _next_tags The sequence of tags is ok except "Completing main porcelain command" remains at the top. *Thanks and Best Regards,Ahmad Ismail* On Thu, Sep 10, 2020 at 2:17 AM Ahmad Ismail wrote: > Hi Daniel Shahaf, > > Thank you very much for this kind reply. > > *Best Regards,Ahmad Ismail* > > > On Thu, Sep 10, 2020 at 12:03 AM Daniel Shahaf > wrote: > >> Ahmad Ismail wrote on Wed, 09 Sep 2020 18:33 +0600: >> > In git completion, I want ancillary-manipulator-commands tag first, >> then >> > ancillary-interrogator-commands tag, then rest of the tags. >> > >> > My following zstyle is showing ancillary-manipulator-commands tag firs= t, >> > then ancillary-interrogator-commands tag, but then not showing rest of >> the >> > tags. >> > >> > zstyle -e ':completion::complete:git:argument-1:' tag-order ' >> > reply=3D( >> > "ancillary-manipulator-commands >> > ancillary-interrogator-commands" >> > - >> > ) >> > ' >> >> This means: First, show a-m-commands and a-i-commands; and, because of >> the dash, show nothing else. So, just delete the solitary dash. Note: >> with that configuration, you'll have to invoke _next_tags (q.v.) in >> order to list completions from other tags. >> >> Incidentally, you can always simply =C2=ABzstyle -e foo bar 'reply=3D(ba= z >> qux)'=C2=BB to =C2=ABzstyle foo bar baz qux=C2=BB. It's exactly equival= ent. >> >> Note the quoting. =C2=ABzstyle =E2=80=A6 tag-order 'foo bar'=C2=BB and = =C2=ABzstyle =E2=80=A6 >> tag-order foo bar=C2=BB are both valid, but have different meanings. >> >> Cheers, >> >> Daniel >> > --000000000000d65f1e05aee748a0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Daniel Shahaf,

I just not= iced an issue. When I use

zstyle -e :completion::c= omplete:git:argument-1: tag-order ancillary-manipulator-commands ancillary-= interrogator-commands _next_tags

The sequence of t= ags is ok except "Completing main porcelain command" remains at t= he top.

Thanks and Best Regards,

Ahmad Ismail

<= br>

On Thu, Sep 10, 2020 at 2:17 AM Ahmad Ismail <ismail783@gmail.com> wrote:
Hi Daniel Shahaf,<= /div>

Thank you very much for this kind reply.
=

Best Regards,

Ahmad Ismail


=

= On Thu, Sep 10, 2020 at 12:03 AM Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
Ahmad Ismail wrot= e on Wed, 09 Sep 2020 18:33 +0600:
> In git completion, I want=C2=A0 ancillary-manipulator-commands tag fir= st, then
> ancillary-interrogator-commands tag, then rest of the tags.
>
> My following zstyle is showing ancillary-manipulator-commands tag firs= t,
> then ancillary-interrogator-commands tag, but then not showing rest of= the
> tags.
>
> zstyle -e ':completion::complete:git:argument-1:' tag-order &#= 39;
> reply=3D(
> "ancillary-manipulator-commands
> ancillary-interrogator-commands"
> -
> )
> '

This means: First, show a-m-commands and a-i-commands; and, because of
the dash, show nothing else.=C2=A0 So, just delete the solitary dash.=C2=A0= Note:
with that configuration, you'll have to invoke _next_tags (q.v.) in
order to list completions from other tags.

Incidentally, you can always simply =C2=ABzstyle -e foo bar 'reply=3D(b= az
qux)'=C2=BB to =C2=ABzstyle foo bar baz qux=C2=BB.=C2=A0 It's exact= ly equivalent.

Note the quoting.=C2=A0 =C2=ABzstyle =E2=80=A6 tag-order 'foo bar'= =C2=BB and =C2=ABzstyle =E2=80=A6
tag-order foo bar=C2=BB are both valid, but have different meanings.

Cheers,

Daniel
--000000000000d65f1e05aee748a0--