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 4657 invoked from network); 9 Sep 2020 23:38:28 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Sep 2020 23:38:28 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1599694709; b=L3sqjjSJ6ZAvPOh9qRROKPfMWplol14sd9qTWF9+OoHrG+rTgvXaDbh6UaYxSswZZXtmHgQ6iE ygNzTfyeI/PX7S+9l9BrKc4Kg2vjTMFp30Ch555R+6seiCyz6z/t6Vye8tR65LqOS52nfREdZa xEkU+XJeXBJJisi3SgyDqCxdIk9AG/+3R1nW8fW18ujhqk9H/ReQKsBhvb8fRCxfkO2LMB4Vja gYIhM3APPxY40rG6LeEnJHO91S+OmkG5P2agQJqTcC1kpu6d434m0Tz26QGS8ZHTTK+fLraYTT OQaWNjQOhyX9nIkkywJHHaeW0d5RNjtMJ6RxtkSDMC2Zvw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f45.google.com) smtp.remote-ip=209.85.210.45; 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=1599694709; bh=x63YtLpkvkES8KmNBa4WUlludk/5SaXrQ2Fxmg3gcN8=; 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=RY10qwD5OgK3enbCoIqSYScrMf1rfLUdNbSEmfvWm74Oz1jEd+KFjL/68c3eCY6S0/iNYT5fSw R60NLMTCdYOIqrIG+REbi9ywzB9+PYnw5tPYn+2GGSBZZz9QxyZfpUfRBqwIAta+VIy1jKuClV r4GcjIVCrCrWRUEyKcraf5ZKtyJQ2LY6C9hNNVqi6C2RRK7Bh7dp2VKgohJlADFvhDJ6Y2pjjt wNAh4kzYhHMKA04COlXMnMVUfqtBAady9AeBA35zlpVGUJMdlNdIIg4T9+gA5sldUjoS7bZ22Z MRIyAwYdkM45pAW5dfvH6TpH7iOlZJDCqUpmUmvnl4rXbQ==; 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=ctZIeR89Ci9ZT3eeZLoMIvjQkETMp/J3g9LmVauelKk=; b=YLkZBuVd30ox81UM4/YtPt6Uge /zdoNe846Z5qwMgyz+y3BJ1Oq3YQ3osvQkiS2iqFqX4eEMjZiuoSweDD9AkrVrNEW5GTALaK/Iboe N5COPZTVn82vh/FBlX4vU8lVbIKZNnPBIm5u5xwbhe4biwZDVIrmGXQcmXi2WSigyiVtRFlaqr2zR 9L/A2xckSu7LfLeayms/lfxWsoE6rx9zEugOZ8NgKUZekmWaQXn9quRWUbZG6oAEoEk0Lud4OuT/h jFmxdlr3waG32w0YXd1f+n6YDhUV/d0ry9b4EdToLuAwSgMdYaBPVZRSPKkj9Cpaz5M3ksPHQtCjG SfE7KvFg==; Received: from authenticated user by zero.zsh.org with local id 1kG9fX-0004OA-St; Wed, 09 Sep 2020 23:38:27 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f45.google.com) smtp.remote-ip=209.85.210.45; 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-f45.google.com ([209.85.210.45]:35895) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kG9f4-00040e-Od; Wed, 09 Sep 2020 23:37:59 +0000 Received: by mail-ot1-f45.google.com with SMTP id 60so3845065otw.3 for ; Wed, 09 Sep 2020 16:37:58 -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=ctZIeR89Ci9ZT3eeZLoMIvjQkETMp/J3g9LmVauelKk=; b=c62wcXew080ubTmQF9p0o7iB79vS7JIBiff7lpYF4zySlJWWnIrlZSFfvTU9g/lVrZ jObJ2SfcR4XV3wSgTHFDEggDDIlHEbNCo25BrPClSKpi6gGpJBelcq3yPQpF0rfFIf8I tzVJVLDskorUY8mUfHog8+DLoelhbmLBgyup3lzqMDrXePihsvZrEKX02rqQ5Q/bwSGA p6Nqp3HUFNlKyn/eUzZH07Rn91/WOW6H2eoBHNa+E1Dtw9zZ+Tr6yHz1epmK/ANbv2An 3jpLBL2hJXDIJ7Ro98DaE/zzYbOahTZ3obbXzRDOW71LgXBqtY7XSAXRxawbPOMbi6TP zqzw== 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=ctZIeR89Ci9ZT3eeZLoMIvjQkETMp/J3g9LmVauelKk=; b=TW2Lc80YSWU84BnUaZG/OVCmtQkDk9MQjvS7feeCjiZOb+AxbfDFJJ2cvA4A3+nIgt I5JTfaKrgCQhsGqpdERA0x/8UMDoQl+DAvQYPRVW96s+07Cjm7QCW4aPcPDyLLWusaaO 5Cn+9XvGt/xNMN3rexqbYE70K69TpDkQeAAHugJR15kk3/hDCVNeZbo3UcBBhrskmeXf 6DMyNzW5E8EcAbhnNAGYyXFJvbL4b1WIY3fpqWP6qE8cSy3PZjhnI46Ejri1iPkQlkqI eAYvwQB0HUEmgX11fGfB2XgViMgyGTWwDDnVZrvHo6hAowawGZG8/KYgIsVZof9/6SCR mLdg== X-Gm-Message-State: AOAM532/iByQiX6TTKOam+shvMwNo3waHnvXALSUcjL7DY2zCHvFLuf4 UmZETaMkTUFUIxIzXf93JJtXkQi9IfsXik97LjE= X-Google-Smtp-Source: ABdhPJwhlbIGqXxP/Cxq04McuoOw0A+D+GGwvzA7U58nRKxdAvhvqTFLMUjXSDqjjCVtMiTHNWHkvFHKNCc+WO6vjEw= X-Received: by 2002:a9d:6d95:: with SMTP id x21mr2304111otp.339.1599694677486; Wed, 09 Sep 2020 16:37:57 -0700 (PDT) MIME-Version: 1.0 References: <20200909180347.770c9f9e@tarpaulin.shahaf.local2> In-Reply-To: From: Ahmad Ismail Date: Thu, 10 Sep 2020 05:37:46 +0600 Message-ID: Subject: Re: zstyle tag-order completion issue To: Daniel Shahaf Cc: Zsh Users Content-Type: multipart/alternative; boundary="00000000000000306105aee9f1cb" X-Seq: 26065 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: --00000000000000306105aee9f1cb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The solution that is working for me is zstyle :completion::complete:git:argument-1: group-order ancillary-manipulator-commands ancillary-interrogator-commands zstyle :completion::complete:git-diff:argument-rest: group-order files *Thanks and Best Regards,Ahmad Ismail* On Thu, Sep 10, 2020 at 2:27 AM Ahmad Ismail wrote: > 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 >>> first, >>> > then ancillary-interrogator-commands tag, but then not showing rest o= f >>> 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(b= az >>> qux)'=C2=BB to =C2=ABzstyle foo bar baz qux=C2=BB. It's exactly equiva= lent. >>> >>> 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 >>> >> --00000000000000306105aee9f1cb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The solution that is working for me is

zstyl= e :completion::complete:git:argument-1: group-order ancillary-manipulator-c= ommands ancillary-interrogator-commands
zstyle :completion::complete:git= -diff:argument-rest: group-order files

Thanks and Best Regards,

Ahmad Ismail=



On Thu, Sep 10, 2020 at 2:27 AM Ahmad I= smail <ismail783@gmail.com>= ; wrote:
Hi Daniel Shahaf,

I just noticed an= issue. When I use

zstyle -e :completion::complete= :git:argument-1: tag-order ancillary-manipulator-commands ancillary-interro= gator-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 <ismail783@gmail.com> wrote:=
Hi Daniel Shahaf,

Thank you very much for t= his kind reply.

Best Regards,

Ahmad Ismail



On Thu, Sep 10, 2020 at 12:03 AM Daniel Shahaf <= ;d.s@daniel.sha= haf.name> wrote:
Ahmad Ismail wrote 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
--00000000000000306105aee9f1cb--