Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH (?) Re: strange completion

On Sep 5, 11:11pm, Alexey I. Froloff wrote:
} On Fri, Jun 03, 2011 at 01:34:07AM -0700, Bart Schaefer wrote:
} > -    if [[ "$tpre$tsuf" = */* ]]; then
} > +    if [[ "$tpre$tsuf" = (#b)*/(*) && -n "$fake${match[1]}" ]]; then
} Don't know why, but this patch breaks completion with
} list-dirs-first set to true (see _files):

Try the (not yet committed) patch from zsh-users/16302 and see if that
makes any difference?

Tangentially related, I've noticed that list-dirs-first doesn't really
do anything unless there is a group-name style in effect.  That is:

% autoload -Uz compinit
% compinit -D
% zstyle \* list-dirs-first true
% ls <TAB>
BUILD              config.modules     local              Test/
Completion/        config.modules.sh  Makefile           typescript
Config/            config.status*     sleep              ul*
config.h           Doc/               Src/
config.h-xx        Etc/               stamp-h
config.log         Functions/         stamp-h.in
% zstyle \* group-name ''
% ls <TAB>
Completion/  Doc/         Functions/   Test/
Config/      Etc/         Src/
BUILD              config.modules     Makefile           typescript
config.h           config.modules.sh  sleep              ul*
config.h-xx        config.status*     stamp-h
config.log         local              stamp-h.in

Messages sorted by: Reverse Date, Date, Thread, Author