zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: Matching control problem with space as pivot
Date: Tue, 24 Jul 2001 09:19:16 +0200 (MET DST)	[thread overview]
Message-ID: <200107240719.JAA12782@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <20010722203635.63486.qmail@web10402.mail.yahoo.com>

Felix Rosencrantz wrote:

> There might be a problem with trying to use space as a pivot point with
> matching control. 
> 
> host% bindkey -e; autoload -U compinit; compinit -D
> host% zstyle ':completion:*:complete:*' matcher-list 'r:|[.,_- ]=**'
> host% touch "abc.def" "abc ghi" "axx gxx" "ayy.gyy"
> host% more a\ g<TAB>
> <nothing.>
> host% more a.<TAB>
> abc.def ayy.gyy
> host% more a\.<TAB>
> abc.def ayy.gyy
> 
> I thought maybe the backslash was causing a problem.  I also
> tried using 'r:|[.,_-\ ]=**', which didn't help.   Is this a bug?
> Or user error?

1. Yes, you need the backslash there.
2. You didn't tell it that it can insert characters at the end (`r:|=*').
3. Look at your character class.  Closely.

     [.,_-\ ]

   That's `a dot, a comma or one of the characters between an underscore
   and a space'.  Since the space is ASCII-wise before the underscore
   that's the same as `a dot or a comma'.

   You might want to try 'r:|[.,\ _-]=** r:|=*'.


Bye
  Sven


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


      reply	other threads:[~2001-07-24  7:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-22 20:36 Felix Rosencrantz
2001-07-24  7:19 ` Sven Wischnowsky [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=200107240719.JAA12782@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).