zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: PATCH: Re: Use of named directories in completions broken.
Date: Mon, 30 Apr 2001 13:08:18 +0200 (MET DST)	[thread overview]
Message-ID: <200104301108.NAA02465@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <Tc0a88d01533b695b1d@mailsweeper01.cambridgesiliconradio.com>

Peter Stephenson wrote:

> Some recent change has broken named directories in completions.  It now
> insists on trying to expand it instead.  I use _expand in my list of
> completers to do expansion; removing this seems to fix it, and using
> expand-or-complete instead works OK.

You mean that it expands the named dir, right?

Yes, ahem, I said in a comment above the thin in the patch that I'm not
completely sure about the pattern(s) to use.  The old pattern made it
consider anything with just a tilde in it to be interesting to expand.

Bye
  Sven

Index: Completion/Base/Completer/_expand
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Completer/_expand,v
retrieving revision 1.3
diff -u -r1.3 _expand
--- Completion/Base/Completer/_expand	2001/04/27 09:12:33	1.3
+++ Completion/Base/Completer/_expand	2001/04/30 11:06:20
@@ -34,7 +34,7 @@
 
 zstyle -T ":completion:${curcontext}:" suffix &&
   [[ "$word" = (\~*/|*\$(|[=~#^+])[a-zA-Z0-9_\[\]]##[^a-zA-Z0-9_\[\]]|*\$\{*\}?) &&
-     "${(e)word}" != *[][^~*?\<\>\{\}\|]* ]] &&
+     "${(e)word}" != *[][^*?\(\)\<\>\{\}\|]* ]] &&
   return 1
 
 zstyle -t ":completion:${curcontext}:" accept-exact ||

-- 
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


  reply	other threads:[~2001-04-30 11:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-30 10:37 Peter Stephenson
2001-04-30 11:08 ` Sven Wischnowsky [this message]
2001-04-30 11:19   ` PATCH: " Peter Stephenson
2001-04-30 11:25     ` Sven Wischnowsky
2001-04-30 15:47 ` Peter Stephenson
2001-05-02  8:57   ` Sven Wischnowsky

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=200104301108.NAA02465@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@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).