zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: Zsh Users' List <zsh-users@zsh.org>
Subject: Re: tag-order with git refs
Date: Wed, 07 Oct 2015 14:24:21 +0100	[thread overview]
Message-ID: <20151007142421.2ebb2287@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <CAHYJk3QKEGx5bSGCfVfRtQXuLjfhbZExjA-6ETHT-07Wten1-w@mail.gmail.com>

On Wed, 7 Oct 2015 15:01:27 +0200
Mikael Magnusson <mikachu@gmail.com> wrote:
> 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

I mean what tag-order is supposed to be for, preferring matches for
earlier tags if there are any ("shown" isn't the right word except in
so much as they are shown if you're listing).  If there are matches for
local heads, I want to see only these, so it doesn't go round the tag
loop to find other matches.  That's supposed to be fairly
straightforward to do.

There must be *something* special about the git competion that's
preventing it, though probably obscure and quite likely a side effect of
some completion "feature".  I can see this working with Perforce:

  zstyle ':completion:*:p4-*:at-suffix:*' tag-order changes '*'

correctly limits completion after

  p4 files Makefile@

to just changes applicable to Makefile and not, for example, labels ---
labels and changes mean something for present purposes pretty much like
tags and commits (don't write in if you're a Perforce expert :-)).
That's the general effect I'm after.

> but at least with group-order, if you don't mind
> getting spammed with other results

That's what I'm trying to avoid.  There are way too many other results
to make the listing remotely useful unless I limit it.  I'd like to
focus on getting that to work.  I already have grouping under headings
which is enough for visibility for the matches I do want.

pws


  reply	other threads:[~2015-10-07 13:24 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
2015-10-07 13:24   ` Peter Stephenson [this message]
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=20151007142421.2ebb2287@pwslap01u.europe.root.pri \
    --to=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).