zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@sunsite.dk>
Subject: Re: Completion in pwd before subdirecories
Date: Tue, 16 Dec 2003 12:23:10 +0100	[thread overview]
Message-ID: <11323.1071573790@gmcs3.local> (raw)
In-Reply-To: <1031215214116.ZM13701@candle.brasslantern.com>

Bart wrote:

> I suppose really it should be "_files -g '*.gz(-.)'" ...

Yes. And I'm now convinced that we should make that change throughout.

Only, in my testing, I have to include a `#q' for it to work so _files'
merging of glob qualifiers must have problems somewhere.

The manual includes this example:
          zstyle ':completion:*' file-patterns \
              '%p:globbed-files' '*(-/):directories' '*:all-files'

We perhaps ought to point out that the globbed-files may include
directories and the user may want to use '%p(^-/):globbed-files' to
have all directories completed later.

> } We still need to ask whether the user should need a file-patterns style
> } to achieve directories after files for the original menu completion
> } question.

I've just realised that this is of course solved by using things like
'*.gz(-.)'.

Unfortunately, things are broken by the many completion functions which
do something like:

  _wanted files expl file _files -g '*.gz(-.)'

The `files' group takes precedence and everything ends up back in one
group.

So we're back to the old problem of precedence of compadd options in
nested tag loops.

Oliver


  reply	other threads:[~2003-12-16 11:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20031213154651.GR18859@strindberg.dsv.su.se>
     [not found] ` <1031213191918.ZM5325@candle.brasslantern.com>
     [not found]   ` <20031213233905.GW18859@strindberg.dsv.su.se>
     [not found]     ` <3213.1071488991@gmcs3.local>
2003-12-15 17:02       ` Bart Schaefer
2003-12-15 17:09         ` Peter Stephenson
2003-12-15 19:13           ` Bart Schaefer
2003-12-15 18:56         ` Oliver Kiddle
2003-12-15 19:37           ` Bart Schaefer
2003-12-15 20:07             ` Oliver Kiddle
2003-12-15 21:41               ` Bart Schaefer
2003-12-16 11:23                 ` Oliver Kiddle [this message]
2003-12-17 15:57         ` Oliver Kiddle
2003-12-17 18:38           ` Bart Schaefer
2003-12-18  9:47             ` Oliver Kiddle

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=11323.1071573790@gmcs3.local \
    --to=okiddle@yahoo.co.uk \
    --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).