From: Daniel Muino <daniel@muino.org>
To: zsh-users@sunsite.dk
Subject: Re: Perl completion problem
Date: Wed, 23 Jun 2004 11:45:16 -0700 [thread overview]
Message-ID: <20040623184516.GB6456@muino.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0406230001230.28797-100000@toltec.zanshin.com>
On Wed, Jun 23, 2004 at 12:05:19AM -0700, Bart Schaefer wrote:
> On Tue, 22 Jun 2004, Daniel Muino wrote:
>
> > If I set the file-sort to anything other than 'name' every time I hit
> > <TAB> I get no matches for 'Perl script'
>
> There's a bug in the _path_files completion function. See zsh-workers
> article 19867, which refers back to 19839 and 19842.
>
Thanks Bart.
I'm using now a _path_files completion function that has PSW's patch, and it's
working great.
Daniel
--- _path_files.orig 2003-05-08 03:30:49.000000000 -0700
+++ _path_files 2004-06-23 11:43:37.000000000 -0700
@@ -120,7 +120,9 @@
tmp2=()
for tmp1 in "$pats[@]"; do
- if [[ "$tmp1" = (#b)(*[^\$])(\(\([^\|~]##\)\)) ]]; then
+ if [[ "$tmp1" = (#b)(*[^\$])"(#q"(*)")" ]]; then
+ tmp2=( "$tmp2[@]" "${match[1]}(#q${sort}${match[2]})" )
+ elif [[ "$tmp1" = (#b)(*[^\$])(\(\([^\|~]##\)\)) ]]; then
tmp2=( "$tmp2[@]" "${match[1]}((${sort}${match[2][3,-1]}" )
elif [[ "$tmp1" = (#b)(*[^\$])(\([^\|~]##\)) ]]; then
tmp2=( "$tmp2[@]" "${match[1]}(${sort}${match[2][2,-1]}" )
@@ -168,7 +170,9 @@
fi
tmp2=()
for tmp1 in "$pats[@]"; do
- if [[ "$tmp1" = (#b)(*[^\$])(\(\([^\|~]##\)\)) ]]; then
+ if [[ "$tmp1" = (#b)(*[^\$])"(#q"(*)")" ]]; then
+ tmp2=( "$tmp2[@]" "${match[1]}(#q${tmp3}${match[2]})" )
+ elif [[ "$tmp1" = (#b)(*[^\$])(\(\([^\|~]##\)\)) ]]; then
tmp2=( "$tmp2[@]" "${match[1]}((${tmp3}${match[2][3,-1]}" )
elif [[ "$tmp1" = (#b)(*[^\$])(\([^\|~]##\)) ]]; then
tmp2=( "$tmp2[@]" "${match[1]}(${tmp3}${match[2][2,-1]}" )
prev parent reply other threads:[~2004-06-23 18:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-23 0:12 Daniel Muino
2004-06-23 7:05 ` Bart Schaefer
2004-06-23 18:45 ` Daniel Muino [this message]
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=20040623184516.GB6456@muino.org \
--to=daniel@muino.org \
--cc=zsh-users@sunsite.dk \
/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).