zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: matcher-list doesn't work with some completers?
Date: Thu, 6 Jan 2011 11:14:50 +0100	[thread overview]
Message-ID: <AANLkTinw=XEV+CA1wuMcNEpdXb--A2e42QcCf_TdbKYg@mail.gmail.com> (raw)

Hi,

mkdir 'a directory'
zsh -f
autoload -Uz compinit; compinit -D
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' +'l:|=* r:|=*'
ls dir<tab> #works
du dir<tab> #nothing
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z} l:|=* r:|=*'
ls dir<tab> #works
du dir<tab> #works

Obviously the latter style is useless in practice, but why doesn't the
first one work always? The _mkdir completer has the same issue as _du,
but _rar seems to work. I looked at them and I can't figure out what
the difference is. This is not a new issue, but I'm not sure when it
started happening. The _du in 4.3.6 works, but the _mkdir does not.
Copying the older _du doesn't seem to make any difference so it is
probably Something Else[tm].

-- 
Mikael Magnusson


             reply	other threads:[~2011-01-06 10:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-06 10:14 Mikael Magnusson [this message]
2011-01-06 16:41 ` Bart Schaefer
2011-01-06 17:24   ` Bart Schaefer
2011-01-06 18:42     ` Mikael Magnusson
2011-01-06 19:00       ` Mikael Magnusson

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='AANLkTinw=XEV+CA1wuMcNEpdXb--A2e42QcCf_TdbKYg@mail.gmail.com' \
    --to=mikachu@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).