Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zstyle tag-order completion issue
- X-seq: zsh-users 26058
- From: Ahmad Ismail <ismail783@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: zstyle tag-order completion issue
- Date: Wed, 9 Sep 2020 18:33:45 +0600
- Archived-at: <https://zsh.org/users/26058>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-09/CAHAhJwKTL-fqoM3GcyxTLYG8zJDvF-7VMP9p%3DrwQyvhwKkk1EA%40mail.gmail.com>
- 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
- 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==
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- Sender: zsh-users-request@xxxxxxx
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 <tab>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author