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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32346 invoked from network); 9 Sep 2020 12:34:34 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Sep 2020 12:34:34 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1599654874; b=zxlrkUti5ZJiM7T8VT9RC68oKPnMlCFuueDSymrNwf4zyKFOqFpkBbVgdPvgMHEw1OgXVuljYM 1jxQUkw0gWDHhczVjOHLUXRYrUQ61KaiCz9PsrCn/DnQwK0Mdl4u7/F6KLZZQky79CnL8tWaVh Byx2YrJ11kaZjcqiGG9cE0lNw/6LV3CXeJv31YJ6ip1q4Af8u2OwKDWUlpoNwK7xfyU4a+bgq/ FFwhQiHF2bc0m/fc+oV91h4MtpSoHntifLHeBfvcgTwMegYdOJFonpQddRpp2ClfyNoOtlykX9 c4sdW37HGcf4ycTNtmhINTu8fZFX4xteY4WBD2GMjO45xA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f53.google.com) smtp.remote-ip=209.85.210.53; 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=1599654874; bh=C8xBpWNb0UVrwLDkDE/+zdWeBAlzY6W9U8mXBgoZle4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=0FRRHy1Yvkh8SRh1UyU4wTDeO3spTiZyhbNQUnHrHS1Q3iLf5jd1/pjeEYppUCIb9dkSlakCW7 Oax1c7+8vpTcjr6mACSyB2te70OK+tiGhDsEaF4HgGCLzflh5puNxULjrhq8ZdeKo9cretM2Mk QgqOn9sN6QGMoToCYeZg+ceQAfR27J/yeSNaefVDM9PEYTVgcWW5HqTClETDQQfz7VxQBn9iGf yLK0i+C7i0wUOLL5eVxtCoQMGJxyzopVFUJbFisVQ4cxL4cmMVsCyuG0243Wot8/Mr5dIcu7J2 K4dqd4bB59itruECMiZYXIuWcUYlJv0CJ9navjybf7GQwA==; 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:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=JlC0PvPhfY///XnYkZUhW0S83PYBplQAkkEUalfexFY=; b=adcgsBlb7bJi78kux2XkzdoWGL XYiUjzQSVsJgbQxCw87iwRWzp3fsVOQG9KilLNj49SlTW2Hc4aSt/UpzXYv3skXFySGf+EOxodcLr EYIBpgMXUCBjh+NPs/yU+vAtSPnHoOZBfn7J8pL3MnHTLlmreLsB1CRHlPHTk6GI2mDwTgqQ9Crmc SCNe8C165bWC9uTBNCXY0+9mkmyCxWtHiZR6R4KAgpbWeJoCib3wJLjWOF+YwzpoICTa4noam8kjy IJTAr/2Ad10rOsrjfSlINcRvepwEAbscE7nr0ZBcB/yRbzUd6V1o9Zy2/5vaRtM2BQpqptQm6v6R8 6Nxn5slw==; Received: from authenticated user by zero.zsh.org with local id 1kFzIz-0003UP-Ru; Wed, 09 Sep 2020 12:34:29 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f53.google.com) smtp.remote-ip=209.85.210.53; 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-f53.google.com ([209.85.210.53]:33296) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kFzIU-00036o-GV; Wed, 09 Sep 2020 12:33:59 +0000 Received: by mail-ot1-f53.google.com with SMTP id m12so2140699otr.0 for ; Wed, 09 Sep 2020 05:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=JlC0PvPhfY///XnYkZUhW0S83PYBplQAkkEUalfexFY=; b=PIj6qd8zaF7HoksUP9lU5RXltV9HU2oDy8VDG21rJQR5TLfN6VKqsxXWLEEkGKbyAr qY/dN9PSj1Zxe/L2Gby8s9oc/7uhNe/rHby17yh5KtNGdVCHnjRiA1RMkJhlCj+HuaQx ptYcWpIbxjlw8r+dlwpwiIG04kLZDuD5V8+VdR8OhbW9dKTMytMdcwRjiYjas9EOqxiA RgT47P5HCsW+O9Y2El7Y9CFf9Y12TKH/MXdljzltJzwpX5K6eDftNJY+RwdhNmf5Dmal Ufl5LOU8ijeloTvUUH3pNdcktXLvxGHSlQjli2whYHZL+satwhaHdMxcIHkHt+JEw3g3 21jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JlC0PvPhfY///XnYkZUhW0S83PYBplQAkkEUalfexFY=; b=CdXrCzIwfWL7Sq8LrRywVCCw4e3QshSUQ73ciFGGOgW2X7/ytGAbvuc4eRbcg5xuxC Z+J9tKRuHEcFmCE/IyrpxA8p/ltFdJ48z/iLTEsu7irxMxSYr7I0zZ7ZAXvivlfl9lt4 Mf5w1bh9Crritr94/2UJzIhM09pMXssd1exBJw0vkA6SEJH+U8p9rGRvBQge7P0BQE9r OiX30dMNmrDEJWlcbpkC6qdWmv0HTTH3hNnSdk54elopnep3eIU4jzqJjzqi0K9BLZkR wjFE6CgQva04K4F2OVJOygHtAfzgH0q/xBVp7b4xTa9Gwm8txtRWTu2fLnqPtJXU7BNF iu+w== X-Gm-Message-State: AOAM532eMACpMoMphJSQNctCjFsqnFNYnbqnCwFdYwX3+SfuzSV+7PPM LGA7ai6QzRbvYNiIWfWJfRRuo++GKCXAUVK4UhO8hGOCOF/G7w== X-Google-Smtp-Source: ABdhPJzXuS9IcfatRcbCFb0uFcAm8wuj5X45bx1L1mHWxOzKKJUi0uiuQ/dQvfs+lk7nh4RDiv2gRs9RHxwK5BytGMk= X-Received: by 2002:a05:6830:120a:: with SMTP id r10mr529969otp.32.1599654836689; Wed, 09 Sep 2020 05:33:56 -0700 (PDT) MIME-Version: 1.0 From: Ahmad Ismail Date: Wed, 9 Sep 2020 18:33:45 +0600 Message-ID: Subject: zstyle tag-order completion issue To: Zsh Users Content-Type: multipart/alternative; boundary="0000000000004de41d05aee0aaad" X-Seq: 26058 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: --0000000000004de41d05aee0aaad Content-Type: text/plain; charset="UTF-8" Hi All, 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 of the tags. zstyle -e ':completion::complete:git:argument-1:' tag-order ' reply=( "ancillary-manipulator-commands ancillary-interrogator-commands" - ) ' While I am at it, I have another issue with `git diff` My current completion looks like: % git diff Completing local head HEAD master ORIG_HEAD stash Completing recent commit object name 3168f4f -- [HEAD] first (6 weeks ago) Completing head HEAD master Completing changed in working tree file xy1.txt xy2.txt xy4.txt Completing blob object name I want to put "Completing changed in working tree file" at the top. When I invoke _complete_help widget it says tags in context :completion::complete:git:: argument-rest (_arguments _git) tags in context :completion::complete:git-diff:: argument-rest options (_arguments _git-diff _git) tags in context :completion::complete:git-diff:argument-rest: commit-ranges blobs-and-trees-in-treeish files blobs (_git-diff _git) heads commit-tags commit-objects (__git_commits __git_commit_ranges _git-diff _git) heads-local heads-remote (__git_heads __git_commits __git_commit_ranges _git-diff _git) heads-local (__git_describe_branch __git_describe_commit __git_heads_local __git_heads __git_commits __git_commit_ranges _git-diff _git) heads-remote (__git_describe_branch __git_describe_commit __git_heads_remote __git_heads __git_commits __git_commit_ranges _git-diff _git) commit-tags (__git_tags_of_type __git_commit_tags __git_commits __git_commit_ranges _git-diff _git) commits (__git_recent_commits __git_commit_objects_prefer_recent __git_commits __git_commit_ranges _git-diff _git) commit-tags (__git_recent_commits __git_commit_objects_prefer_recent __git_commits __git_commit_ranges _git-diff _git) heads (__git_recent_commits __git_commit_objects_prefer_recent __git_commits __git_commit_ranges _git-diff _git) changed-in-working-tree-files (__git_changed-in-working-tree_files _git-diff _git) blob-tags blob-objects (__git_blobs _git-diff _git) blob-tags (__git_tags_of_type __git_blob_tags __git_blobs _git-diff _git) blob-objects (_message _guard __git_blob_objects __git_blobs _git-diff _git) However, I am not understanding how my zstyle needs to actually look like. Thanks and Best Regards, Ahmad Ismail --0000000000004de41d05aee0aaad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi All,

In git completion, I want =C2=A0ancillary-m= anipulator-commands tag first, then ancillary-interrogator-commands tag, th= en rest of the tags.

My following zstyle is showing ancillary-manipu= lator-commands tag first, then ancillary-interrogator-commands tag, but the= n not showing rest of the tags.

zstyle -e ':completion::complete= :git:argument-1:' tag-order '
reply=3D(
"ancillary-manip= ulator-commands
ancillary-interrogator-commands"
-
)
'=
While I am at it, I have another issue with `git diff`

My curren= t completion looks like:

% git diff <tab>
Completing local = head
HEAD =C2=A0 =C2=A0 =C2=A0 master =C2=A0 =C2=A0 ORIG_HEAD =C2=A0stas= h =C2=A0 =C2=A0
Completing recent commit object name
3168f4f =C2=A0--= [HEAD] =C2=A0 =C2=A0first (6 weeks ago)
Completing head
HEAD =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0master =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
Completing changed in working tree f= ile
xy1.txt =C2=A0 =C2=A0 =C2=A0 xy2.txt =C2=A0 =C2=A0 =C2=A0 xy4.txt = =C2=A0 =C2=A0
Completing blob object name

I want to put "Co= mpleting changed in working tree file" at the top.

When I invok= e _complete_help widget it says

tags in context :completion::complet= e:git::
=C2=A0 =C2=A0 argument-rest =C2=A0(_arguments _git)
tags in c= ontext :completion::complete:git-diff::
=C2=A0 =C2=A0 argument-rest opti= ons =C2=A0(_arguments _git-diff _git)
tags in context :completion::compl= ete:git-diff:argument-rest:
=C2=A0 =C2=A0 commit-ranges blobs-and-trees-= in-treeish files blobs =C2=A0(_git-diff _git)
=C2=A0 =C2=A0 heads commi= t-tags commit-objects =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0(__git_commits __git_commit_ranges _git-diff _git) =
=C2=A0 =C2=A0 heads-local heads-remote =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(_= _git_heads __git_commits __git_commit_ranges _git-diff _git)
=C2=A0 =C2= =A0 heads-local =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 (__git_describe_branch __git_describe_commit __git_heads_loca= l __git_heads __git_commits __git_commit_ranges _git-diff _git)
=C2=A0 = =C2=A0 heads-remote =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0(__git_describe_branch __git_describe_commit __git_heads_r= emote __git_heads __git_commits __git_commit_ranges _git-diff _git)
=C2= =A0 =C2=A0 commit-tags =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 (__git_tags_of_type __git_commit_tags __git_commits __= git_commit_ranges _git-diff _git)
=C2=A0 =C2=A0 commits =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (= __git_recent_commits __git_commit_objects_prefer_recent __git_commits __git= _commit_ranges _git-diff _git)
=C2=A0 =C2=A0 commit-tags =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (__git_recent_c= ommits __git_commit_objects_prefer_recent __git_commits __git_commit_ranges= _git-diff _git)
=C2=A0 =C2=A0 heads =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (__git_recent_c= ommits __git_commit_objects_prefer_recent __git_commits __git_commit_ranges= _git-diff _git)
=C2=A0 =C2=A0 changed-in-working-tree-files =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (= __git_changed-in-working-tree_files _git-diff _git)
=C2=A0 =C2=A0 blob-= tags blob-objects =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(__git_blobs _git-di= ff _git)
=C2=A0 =C2=A0 blob-tags =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (__git_tags_of_type __git_blob_ta= gs __git_blobs _git-diff _git)
=C2=A0 =C2=A0 blob-objects =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(_message _guard= __git_blob_objects __git_blobs _git-diff _git)

However, I am not un= derstanding how my zstyle needs to actually look like.

Thanks and B= est Regards,
Ahmad Ismail
--0000000000004de41d05aee0aaad--