zsh-users
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Peter Stephenson <p.stephenson@samsung.com>
Cc: "Zsh Users' List" <zsh-users@zsh.org>
Subject: Re: tag-order with git refs
Date: Wed, 7 Oct 2015 15:01:27 +0200	[thread overview]
Message-ID: <CAHYJk3QKEGx5bSGCfVfRtQXuLjfhbZExjA-6ETHT-07Wten1-w@mail.gmail.com> (raw)
In-Reply-To: <20151007120820.6f8a59e9@pwslap01u.europe.root.pri>

On Wed, Oct 7, 2015 at 1:08 PM, Peter Stephenson
<p.stephenson@samsung.com> 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


  reply	other threads:[~2015-10-07 13:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-07 11:08 Peter Stephenson
2015-10-07 13:01 ` Mikael Magnusson [this message]
2015-10-07 13:24   ` Peter Stephenson
2015-10-07 19:06     ` Bart Schaefer
2015-10-07 22:22 ` Oliver Kiddle
2015-10-08  3:50   ` Bart Schaefer
2015-10-08  9:39   ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHYJk3QKEGx5bSGCfVfRtQXuLjfhbZExjA-6ETHT-07Wten1-w@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=p.stephenson@samsung.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).