Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh doesn't complete for tar, zip, possibly other files
- X-seq: zsh-users 15871
- From: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- To: Lewis Thompson <purple@xxxxxxxxx>
- Subject: Re: zsh doesn't complete for tar, zip, possibly other files
- Date: Tue, 15 Mar 2011 14:40:02 -0400 (EDT)
- Cc: zsh-users@xxxxxxx
- In-reply-to: <AANLkTi=uth8SAmJC5yxUkzBYHAB-aMyPbpYhBUVPGiky@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <AANLkTi=uth8SAmJC5yxUkzBYHAB-aMyPbpYhBUVPGiky@mail.gmail.com>
On Tue, 15 Mar 2011, Lewis Thompson wrote:
partlow ~ % tar xvf [hammering TAB]
So clearly completion is trying to do something. Other useful info:
If you type <ctrl+x><h> at the point where you're hammering TAB, you'll
get some debugging information that could be useful.
I believe these are all of my completion settings in .zshrc:
[...]
zstyle ':completion:*' matcher-list '' 'l:|=* r:|=*' 'r:|[._-]=**
r:|=**' 'm:{[:lower:][:up
per:]}={[:upper:][:lower:]}'
I assume this was mangled by mailing (extra newlines)? But, even that line when
demangled, along with this other line you listed:
zstyle ':completion:*' file-sort access
causes the problems you describe. I have no idea what that matcher-list
is trying to do, but this is a full, reproducible test-case for me:
==> badzshrc <==
zstyle ':completion:*' file-sort access
zstyle ':completion:*' matcher-list '' 'l:|=* r:|=*' 'r:|[._-]=** r:|=**' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}'
autoload -Uz compinit
compinit
================
$ zsh -f
$ . ./badzshrc
$ tar xvf [Tab]
At that point, ^xh produces:
tags in context :completion::complete:tar::
globbed-files (_files _tar_archive _tar (eval))
Whereas the working case produces:
tags in context :completion::complete:tar::
globbed-files (_files _tar_archive _tar (eval))
directories (_files _tar_archive _tar (eval))
all-files (_files _tar_archive _tar (eval))
--
Best,
Ben
Messages sorted by:
Reverse Date,
Date,
Thread,
Author