Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: another issue with `git diff` (was: zstyle tag-order completion issue)
- X-seq: zsh-users 26064
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Ahmad Ismail" <ismail783@xxxxxxxxx>
- Subject: Re: another issue with `git diff` (was: zstyle tag-order completion issue)
- Date: Wed, 09 Sep 2020 20:58:29 +0000
- Archived-at: <https://zsh.org/users/26064>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-09/3210bb98-4aab-442a-87eb-49d3fbdb29df%40www.fastmail.com>
- Authentication-results: zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm3 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none
- Cc: "Zsh Users" <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:cc:subject:content-type :content-transfer-encoding; s=fm1; bh=IvM3AaLRxO0BZKyltnVJHxUoow OLYtIqyn4cQSJMnNs=; b=xy7yzRNE/jJQ2QcDG9hmACgPlu8l6mQrdpMlINe5rM ibW+yURrXNFSFws1dAsg+wLpO0bKiGwy2dJWP0SmawNBsKjHuhMlJNnwUiiJtHrS 8bKdmkwLwmZ4yLArwA7/1qAxcataLQhY6fTJOxrvPZC/EA/br0BRpwDWmWKpeAoY fu19PfkbinOYFaK9XEqmzxgLLNAJICPDpd7Bhg6SqXh+c4yoR+YxV2aMv6COA24J +O5NxlOZBq4RCWAi2brzEsYt4ioVB/mNBWetcfI7oScVSM5c/nazWxa1he7rbHYG M9Y7SrqjSLZ/T2Dt7iJZKAVnE37Leusf22Vjpjy4cFAA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=IvM3AaLRxO0BZKyltnVJHxUoowOLYtIqyn4cQSJMn Ns=; b=h+/SNi4KjbVXcFZZUMMtUn8znApqyEMv0Ru0QI1jwEknZbJepvOAebszI wdG6riwMKCM2Bcw0KvF/GC5ZaAQjToeFE6X/mzzkMM6+O7rd6UxTyDDqeb+8dDDQ 43UjCaPVbGcPtjn/iqq4379xPQK/Gn5Wz/7QQmFCSiQiYfPqOjHuBKgRsU55Tej/ Z1NdZiLXDL3WU2EI0wZRrtDNo+QKNXNerEcW8IXiIF2rwdf7Bk8uXFNLoKikBaUt l530tYO1qOfTzdeQ0PFHMB0dIrdihz5hhCICG5+FosEdgLvdTV+3QYBO9S91cJ+q rifTVvooKVIsKD2NdQ+6wNDPv9fOw==
- In-reply-to: <CAHAhJwK1xzo_DM6B30iMaW1OyHSYR4gg=7mi7-A317m_RQq-Qg@mail.gmail.com>
- 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>
- References: <CAHAhJwKTL-fqoM3GcyxTLYG8zJDvF-7VMP9p=rwQyvhwKkk1EA@mail.gmail.com> <20200909180954.6f9d7ad3@tarpaulin.shahaf.local2> <CAHAhJwK1xzo_DM6B30iMaW1OyHSYR4gg=7mi7-A317m_RQq-Qg@mail.gmail.com>
- Sender: zsh-users-request@xxxxxxx
Ahmad Ismail wrote on Wed, 09 Sep 2020 20:49 +00:00:
> zstyle -e :completion::complete:git-diff:argument-rest: tag-order
> changed-in-working-tree-files _next_tags
First, remove the -e. That'll address the error you reported.
Second, _next_tags is not a tag; it's a widget (= a shell function that
can be bound to a keystroke). It doesn't belong in the value of the tag-
order style.
When you set «tag-order foo bar baz», you'll find that only completions
under the tag foo are displayed at first. To display completions of the
tag bar, you'll have to invoke _next_tags. However, as a widget, it's
not invoked by typing out its name; rather, it's invoked by pressing
whichever key combination or chord is bound to it. That's explained in
the manual, under tag-order and _next_tags (they both have entries).
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author