Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Completion for gzcat does not descend directories
- X-seq: zsh-workers 12128
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Sven Wischnowsky" <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: Completion for gzcat does not descend directories
- Date: Fri, 30 Jun 2000 15:45:33 +0400
- Importance: Normal
- In-reply-to: <200006301136.NAA00838@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
>
> Andrej Borsenkow wrote:
>
> > As in subject. ^Xh lists all three standard tags, but if
> any *.gz file
> > is foundm directories are not listed.
> >
> > I'd expect it to suggest both files and directories.
>
> You should tell it, then. From the docs:
>
> zstyle ':completion:*:gzcat:*' file-patterns \
> '%p:globbed-files *(-/):directories' '*:all-files'
>
> Or use _next_tags.
>
The actual question is - why it does not do it by default? Well, I
vaguelly remember some discussion on this - but I hopelessly missed it.
IMHO by default file completion should complete directories unless told
otherweise.
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author