zsh-workers
 help / color / mirror / code / Atom feed
From: "Oliver Kiddle" <okiddle@yahoo.co.uk>
To: Sven Wischnowsky <wischnow@berkom.de>
Cc: zsh-workers@sunsite.dk
Subject: Re: PATCH: updated _zstyle and cleanup of related stuff
Date: Mon, 14 Jan 2002 13:01:28 +0000 (GMT)	[thread overview]
Message-ID: <20020114130128.5572.qmail@web9301.mail.yahoo.com> (raw)
In-Reply-To: <15421.28951.280917.888232@wischnow.berkom.de>

 --- Sven Wischnowsky <wischnow@berkom.de> wrote: > 
> > -_files -/ "$@"
> > +_path_files -/ "$@"
> 
> Sorry for the late reply, but: what is this part supposed to achieve?
> It means that people can't use the file-patterns style for those
> commands anymore. Bad idea, I'd say.

Oops, that wasn't meant to go into the patch.

I'd been messing about with that because it seemed strange that
_path_files -/ resulted in a description of 'directory' while _files -/
resulted in a description of 'file'. Perhaps _directories should
instead do something like this?
_wanted directories expl directory _files -/ "$@" -

Anyone using it with -g should surely specify a (/) qualifier to the
glob otherwise they should be using _files in the first place.

Also, thinking about it, in places where we do things like
  _files -g '*.png'
we should really do
  _files -g '*.png(.)'
because you wouldn't want to complete a directory named something.png.

I wish multiple glob qualifiers in series (e.g. *(@)(u0)) were allowed
because it would make it much easier for completion functions to add
qualifiers to existing globs. I can't remember details off the top of
my head but I've come across a number of minor problems resulting from
this.

Oliver

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


  reply	other threads:[~2002-01-14 13:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-04 12:02 Oliver Kiddle
2002-01-10 10:46 ` Sven Wischnowsky
2002-01-14 13:01   ` Oliver Kiddle [this message]
2002-01-14 13:57     ` Peter Stephenson
2002-01-14 16:36       ` Bart Schaefer
2002-01-14 17:01         ` Peter Stephenson
2002-01-14 18:06           ` Bart Schaefer
2002-01-14 18:43             ` Peter Stephenson
2002-01-14 19:03               ` Bart Schaefer
2002-01-14 19:09                 ` Peter Stephenson
2002-01-22 12:28               ` PATCH: (#q) Peter Stephenson
2002-01-22 13:50                 ` Peter Stephenson

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=20020114130128.5572.qmail@web9301.mail.yahoo.com \
    --to=okiddle@yahoo.co.uk \
    --cc=wischnow@berkom.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).