From: Michael Schaap <cygwin@mscha.com>
To: Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
Cc: <cygwin@cygwin.com>, ZSH Workers Mailing List <zsh-workers@sunsite.dk>
Subject: RE: Zsh observations
Date: Mon, 09 Jul 2001 21:22:05 +0200 [thread overview]
Message-ID: <5.1.0.14.2.20010709211513.02509b90@imap.local.mscha.com> (raw)
In-Reply-To: <Pine.SV4.4.33.0107092120020.12110-100000@itsrm2.mow.siemen s.ru>
At 19:30 9-7-2001, Andrej Borsenkow wrote:
>On Mon, 9 Jul 2001, Michael Schaap wrote:
>
> >
> > % ls -l
> > total 264
> > drwxrwxrwx 32 Administ None 4096 Jun 18 10:36 contrib
> > drwxrwxrwx 57 Administ None 8192 Jun 3 19:25 latest
> > -rwxrwxrwx 1 Administ None 239616 Jul 6 18:16 setup.exe
> > -rw-rw-rw- 1 Administ None 17970 Jul 8 16:53 setup.ini
> >
> > But remember, I've run
> > % zstyle ':completion::complete:-command-:*' ignored-patterns
> > '*.(#i)(exe|dll)'
> > on your advice.
> > This works fine when running things from the $PATH, after applying your
> > patch, but not this way.
> >
>
>If you posted the above in your first mail it would no take seven messages
>to two lists to find the truth :-)
But I did! Sort of... (I quoted you giving the zstyle example. And, of
course, I forgot the "./" in my example. ;-) )
> Always try vanilla zsh first (zsh -f;
>autoload -U compinit; compinit). If the problem goes away - try to find
>what settings are causing the problem. Not that I always do it myself
>:-)))
>
>As Bart said, you need _ignored completer. This makes sure that if only
>matches from ignored set are found they are suggested as possible matches:
>
>{tty0}:/tmp/tst> ll
>total 2
>-rwxr-xr-x 1 user 544 1 Jul 9 17:19 foo.exe*
>-rw-r--r-- 1 user 544 1 Jul 9 17:19 foo.ini
>{tty0}:/tmp/tst> zstyle -L
>zstyle ':completion:*' matcher-list 'r:|[.,_-]=* r:|=*'
>zstyle ':completion::complete:-command-:*' ignored-patterns '*.(#i)exe'
>zstyle ':completion:*' completer _complete _ignored
>{tty0}:/tmp/tst> ./foTAB
>{tty0}:/tmp/tst> ./foo.exe
Thanks. This does the trick.
> > I guess I'll just stop ignoring exes. ("Doctor, it hurts when I do this.")
> >
>
>I guess, we really should hash just foo for foo.exe and stop messing with
>ignored patterns.
Perhaps that would be the best solution. Except that then - just as before
your patch - "setopt correct" will misbehave when you run a command in the
$PATH without ".exe".
I guess there's no perfect solution for this.
Thanks for your help,
- Michael (who's now a real zsh convert)
prev parent reply other threads:[~2001-07-09 19:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5.1.0.14.2.20010705112435.03520c60@imap.mscha.org>
2001-07-05 11:33 ` Andrej Borsenkow
2001-07-05 13:15 ` Michael Schaap
2001-07-08 12:57 ` Michael Schaap
2001-07-08 17:07 ` Andrej Borsenkow
[not found] ` <Pine.SV4.4.33.0107082101110.3442-100000@itsrm2.mow.siemens .ru>
2001-07-08 17:30 ` Michael Schaap
2001-07-09 5:49 ` Andrej Borsenkow
2001-07-09 9:31 ` Michael Schaap
2001-07-09 11:28 ` Bart Schaefer
2001-07-09 11:44 ` Sven Wischnowsky
2001-07-09 17:30 ` Andrej Borsenkow
[not found] ` <Pine.SV4.4.33.0107092120020.12110-100000@itsrm2.mow.siemen s.ru>
2001-07-09 19:22 ` Michael Schaap [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=5.1.0.14.2.20010709211513.02509b90@imap.local.mscha.com \
--to=cygwin@mscha.com \
--cc=Andrej.Borsenkow@mow.siemens.ru \
--cc=cygwin@cygwin.com \
--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).