From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19363 invoked by alias); 7 Oct 2015 13:01:32 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20702 Received: (qmail 15830 invoked from network); 7 Oct 2015 13:01:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== MIME-Version: 1.0 X-Received: by 10.55.26.14 with SMTP id a14mr1110870qka.99.1444222887380; Wed, 07 Oct 2015 06:01:27 -0700 (PDT) In-Reply-To: <20151007120820.6f8a59e9@pwslap01u.europe.root.pri> References: <20151007120820.6f8a59e9@pwslap01u.europe.root.pri> Date: Wed, 7 Oct 2015 15:01:27 +0200 Message-ID: Subject: Re: tag-order with git refs From: Mikael Magnusson To: Peter Stephenson Cc: "Zsh Users' List" Content-Type: text/plain; charset=UTF-8 On Wed, Oct 7, 2015 at 1:08 PM, Peter Stephenson 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