zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-users@sunsite.dk
Subject: Re: Globbing question
Date: Fri, 17 Sep 2004 10:45:23 +0100	[thread overview]
Message-ID: <200409170945.i8H9jN1H023683@news01.csr.com> (raw)
In-Reply-To: <27415.1095348059@trentino.logica.co.uk>

Oliver Kiddle wrote:
> Peter wrote:
> > The answer to both this and the next question is that unfortunately you
> > can't use glob qualifiers in ignored patterns.  They are handled as
> > generic patterns, not specifically file patterns.  This is rather a
> > nuisance.
> 
> I wouldn't say it is a nuisance. You can use the file-patterns style
> instead to add glob qualifiers where _files is used for completing
> files.

OK, so you're saying that in most contexts, you can do something like

  zstyle ':completion:*' file-patterns '*(#q-*)'

to complete only executable files, but the specific example

  zstyle ':completion:*:complete:-command-::commands' file-patterns '*(#q-*)'

doesn't work because it goes through the code the wrong way?  I would
say that *is* an annoyance, and that 99% of users don't care about
the difference between _files and _path_files.

Some cross-referencing between ignored-patterns and file-patterns might
be beneficial, too.

Presumably a side effect of using file-patterns is the _ignored
completer doesn't pick up the remaining files, but if I remember there
are ways of doing this with the all-files tag.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


  parent reply	other threads:[~2004-09-17  9:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-16  3:08 lists
2004-09-16 14:30 ` Peter Stephenson
2004-09-16 15:20   ` Oliver Kiddle
2004-09-17  0:51     ` lists
2004-09-17 10:16       ` Oliver Kiddle
2004-09-17  9:45     ` Peter Stephenson [this message]
2004-09-17 10:31       ` Oliver Kiddle
2013-11-18 10:45 Dominik Vogt
2013-11-18 11:00 ` Peter Stephenson
2013-11-18 11:31   ` Dominik Vogt
2013-11-18 12:10     ` Peter Stephenson
2013-11-19  0:10   ` zzapper
2013-11-19  6:17     ` Eike von Seggern

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=200409170945.i8H9jN1H023683@news01.csr.com \
    --to=pws@csr.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).