zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: joe M <joe9mail@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: zsh completer _approximate completer
Date: Thu, 28 Feb 2013 10:00:59 +0100	[thread overview]
Message-ID: <27800.1362042059@thecus.kiddle.eu> (raw)
In-Reply-To: <CAHjjW14LvYGTHgOHW+DuDpz9LwcRiQiKhafZgBb46UJP6wEg4Q@mail.gmail.com>

joe M wrote:
> For some reason, changing the group-order of this zstyle put the
> original before the corrections in the _appropriate completer.
> 
> zstyle ':completion:*' group-order original 'named-directories'
> 'directory-stack' 'local-directories' 'path-directories'
> 
> > zstyle ':completion:*:approximate:*' group-order original corrections
> Shouldn't this be the better or more accurate method of specifying
> group-order for the _approximate completer instead?

It is a more specific style pattern so would take precedence over the
general one but for the fact that the pattern doesn't actually match.
For _approximate, the number of corrections is included in the style
when it is looked up so for 1 error, it has :approximate-1:.

Try adding an extra * in:
  zstyle ':completion:*:approximate*:*' group-order original corrections

Oliver


  reply	other threads:[~2013-02-28  9:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-28  6:27 joe M
2013-02-28  6:42 ` joe M
2013-02-28  9:00   ` Oliver Kiddle [this message]
2013-02-28  9:30   ` Oliver Kiddle
2013-03-01 19:30     ` joe M
2013-03-01 19:38       ` joe M
2013-03-01 20:30         ` joe M
2013-03-01 23:40           ` Oliver Kiddle
2013-03-02  4:13             ` joe M

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=27800.1362042059@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=joe9mail@gmail.com \
    --cc=zsh-workers@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).