Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
matcher-list doesn't work with some completers?
- X-seq: zsh-workers 28576
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: matcher-list doesn't work with some completers?
- Date: Thu, 6 Jan 2011 11:14:50 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=PQuaTHtOnA1K2EHfkvketf3LADoOWceK8kFhtkoAPk4=; b=q3v+vhq1LI257m7WUvpwLDUKlTAlxz8mqEEyoWKgmQFg5kRfEjgmYD2WvJVC0nsrcy Zwcjkz9oylGK4kn7g7hlSWhYEF02R8GBqE1ESrfcVR59uDqso7t3IeRKXBGdOFmVeAsE BlhhOXMM6we5Z0jBgPd73yXKMRKD46wIx00T8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fznFL4Zh96JqLc3PyEWxapMhN7SpHOc4jHNWUeLb0gouoAIvUrdUmLaraoQ5+ik7O7 rNWpkvrplCx0dDHSQ2NGwaVEuwhiVWp+ItgJM88o70oIXXD2MKBtJuvUA9bAH/OPkZoJ rp4LmsOEHi3pg3PLUny341Nm9W+HxddHCDcCM=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author