From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh-users List <zsh-users@sunsite.dk>
Subject: Re: Problem with ignore-line and parenthesis
Date: Thu, 26 Aug 2004 17:37:19 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.61.0408261730050.28624@toltec.zanshin.com> (raw)
In-Reply-To: <20040826181857.GF10369@localhost>
On Thu, 26 Aug 2004, Jesper Holmberg wrote:
> I have the following zstyle in my .zshrc:
>
> zstyle ':completion:*:(rm|cp|mv):*' ignore-line yes
>
> Filenames with parentheses in them seem to cause problems, though.
Filenames with any glob pattern in them would have problems, I think. See
if this does the right thing.
Index: Completion/Base/Core/_description
--- _description.~1.5.~ 2003-08-10 09:00:12.000000000 -0700
+++ _description 2004-08-26 17:32:46.000000000 -0700
@@ -49,13 +49,13 @@
zstyle -s ":completion:${curcontext}:$1" ignore-line hidden &&
case "$hidden" in
- true|yes|on|1) _comp_ignore=( "$_comp_ignore[@]" "$words[@]" );;
- current) _comp_ignore=( "$_comp_ignore[@]" "$words[CURRENT]" );;
+ true|yes|on|1) _comp_ignore=( "$_comp_ignore[@]" "${(q)words[@]}" );;
+ current) _comp_ignore=( "$_comp_ignore[@]" "${(q)words[CURRENT]}" );;
current-shown) [[ "$compstate[old_list]" = *shown* ]] &&
- _comp_ignore=( "$_comp_ignore[@]" "$words[CURRENT]" );;
+ _comp_ignore=( "$_comp_ignore[@]" "${(q)words[CURRENT]}" );;
other) _comp_ignore=( "$_comp_ignore[@]"
- "${(@)words[1,CURRENT-1]}"
- "${(@)words[CURRENT+1,-1]}" );;
+ "${(@q)words[1,CURRENT-1]}"
+ "${(@q)words[CURRENT+1,-1]}" );;
esac
(( $#_comp_ignore )) && opts=( $opts -F _comp_ignore )
next prev parent reply other threads:[~2004-08-27 0:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-26 18:18 Jesper Holmberg
2004-08-26 22:14 ` Andy Spiegl
2004-08-30 15:13 ` another Problem with ignore-line Andy Spiegl
2004-08-30 15:25 ` Oliver Kiddle
2004-08-30 17:20 ` Andy Spiegl
2004-08-30 21:21 ` Bart Schaefer
2004-08-31 8:38 ` Andy Spiegl
2004-08-31 12:27 ` Oliver Kiddle
2004-08-31 14:41 ` Andy Spiegl
2004-08-27 0:37 ` Bart Schaefer [this message]
2004-08-27 7:32 ` Problem with ignore-line and parenthesis Jesper Holmberg
2004-08-27 10:14 ` Oliver Kiddle
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=Pine.LNX.4.61.0408261730050.28624@toltec.zanshin.com \
--to=schaefer@brasslantern.com \
--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).