From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: PATCH (?) Re: strange completion
Date: Mon, 05 Sep 2011 13:42:18 -0700 [thread overview]
Message-ID: <110905134218.ZM6788@torch.brasslantern.com> (raw)
In-Reply-To: <20110905191152.GA24658@altlinux.org>
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
next prev parent reply other threads:[~2011-09-05 20:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4DE6ABF6.10405@sergio.spb.ru>
[not found] ` <110601194609.ZM14369@torch.brasslantern.com>
[not found] ` <4DE765F2.5000704@sergio.spb.ru>
2011-06-02 14:13 ` Bart Schaefer
2011-06-03 8:34 ` Bart Schaefer
2011-09-05 19:11 ` Alexey I. Froloff
2011-09-05 20:42 ` Bart Schaefer [this message]
2011-09-05 21:34 ` Alexey I. Froloff
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=110905134218.ZM6788@torch.brasslantern.com \
--to=schaefer@brasslantern.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).