Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_path_files and glob qualifiers
- X-seq: zsh-workers 11614
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: _path_files and glob qualifiers
- Date: Sun, 28 May 2000 18:14:51 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
zagzig[20] zstyle -L | grep completer
zstyle ':completion:*' completer _oldlist _expand _complete _match _ignored _approximate _prefix
At first I thought the following was a problem with _expand:
zagzig[21] echo *zshenv(D)
.zshenv zshenv
zagzig[22] ls *zshenv(D)<TAB>
zagzig[23] ls zshenv
Completing corrections
zshenv
Completing original
*zshenv(D)
Comparing an example that does work against the above via ^X?, I find that
the real problem is that on line 305, _path_files tests [[ ! -o globdots ]]
and therefore fails to generate dot-files as possible matches, even though
the pattern includes the glob-dots qualifier.
A potential solution is to change [[ "$PREFIX" = .* ]] on lines 305 and 311
to [[ "$PREFIX" = (.*|*\([^^]#D*\)) ]] or something like that, but I'm not
entirely sure if that's correct (particularly when there is a suffix). It
might instead be necessary to test earlier and setopt localoptions globdots
if the qualifier is spotted.
But then there's the problem of generalizing to other qualifiers ...
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author