Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: tag-order with git refs
- X-seq: zsh-users 20702
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: tag-order with git refs
- Date: Wed, 7 Oct 2015 15:01:27 +0200
- Cc: "Zsh Users' List" <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RN9VU3ikEicW7CNj8TCMKtCBz4Is/K0FadiioX9pPmg=; b=OBmIHwHdTod2HmovRrMekxa4TBmaLjdDZ6YhhVSOrM+od9sH4UNv6lXR2hHLou8++/ TZCm4lpjman47kdceweuIyDuzxxL3pLQvUlqmg0rqQtww1F86jm5kycCEyM9jCPRWhWy 09IKEsYuWbjlMovB1JPHEnyIyNIExOr87b9q69aGvZc+5rKGTwsk5B3JtAYgJwphuWz2 46QRHvHgIZItIt6CGCFrjSzOYK2MYG3GUdNfjhkaGVEQr+RbxdU20gpkm5OpKiYPbgF1 ykrTHVj1dndRuYURUfXvwGr4s5zGyuh/5a+NxcURqenrWid9M5TX1n+lh4XaSIOow+4s 7ghA==
- In-reply-to: <20151007120820.6f8a59e9@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20151007120820.6f8a59e9@pwslap01u.europe.root.pri>
On Wed, Oct 7, 2015 at 1:08 PM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
> Things that have been bugging me for ages but I never dared ask
> about...
>
> Notionally this is a user question, though I suspect it's soon going to
> drift down the implementation.
>
> How do I limit completion after "git checkout" to showing local heads
> first (i.e. branches I actually use)?
>
> If you can demonstrably get this to work (please don't waste time
> posting untried solutions), feel free to give tne answer and ignore the
> following.
>
> From the output of ^xh it should be something like
>
> zstyle ':completion:*:complete:git-checkout:*' tag-order heads-local
I get the same result as you; this has no effect. However,
zstyle ':completion:*:complete:git-checkout:*' group-order heads-local
does work. The question is a bit unclear, you can't limit something to
being shown first, but at least with group-order, if you don't mind
getting spammed with other results, just hitting tab a few times will
get you the branches you want first. Arguably this should be the
default order too, without having to muck around with custom styles.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author