Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: Completion for gzcat does not descend directories



>
> 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