* zsh doesn't complete for tar, zip, possibly other files
@ 2011-03-15 18:03 Lewis Thompson
2011-03-15 18:40 ` Benjamin R. Haskell
0 siblings, 1 reply; 4+ messages in thread
From: Lewis Thompson @ 2011-03-15 18:03 UTC (permalink / raw)
To: zsh-users
Hi guys
The subject is pretty much my problem. I'd be very grateful if
anybody is able to help me resolve this one.
cheers, Lewis
partlow ~ % ls *.zip
First Ascent - Disk 2.zip First Ascent - DVD Extras.zip foo.zip
partlow ~ % unzip [hammering TAB]
Interestingly for tar I get different results:
partlow ~ % ls *.tar
foo.tar
partlow ~ % tar [TAB]
A -- append to an archive
c -- create a new archive
f -- specify archive file or device
t -- list archive contents
u -- update archive
v -- verbose output
x -- extract files from an archive
partlow ~ % tar xvf [hammering TAB]
So clearly completion is trying to do something. Other useful info:
partlow ~ % zsh --version
zsh 4.3.10 (x86_64-unknown-linux-gnu)
I believe these are all of my completion settings in .zshrc:
# The following lines were added by compinstall
zstyle ':completion:*' completer _complete _ignored _approximate _prefix
zstyle ':completion:*' expand suffix
zstyle ':completion:*' file-sort access
zstyle ':completion:*' ignore-parents parent pwd ..
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the
character to insert%s
'
zstyle ':completion:*' matcher-list '' 'l:|=* r:|=*' 'r:|[._-]=**
r:|=**' 'm:{[:lower:][:up
per:]}={[:upper:][:lower:]}'
zstyle ':completion:*' max-errors 3 numeric
zstyle ':completion:*' menu select=1
zstyle ':completion:*' preserve-prefix '//[^/]##/'
zstyle ':completion:*' prompt 'list of corrections numerrs=%e'
zstyle ':completion:*' select-prompt '%SScrolling active: current
selection at %p%s'
zstyle ':completion:*' squeeze-slashes true
zstyle :compinstall filename '/home/lt203398/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# kill pid/process tab-complete list
zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:kill:*' force-list always
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: zsh doesn't complete for tar, zip, possibly other files
2011-03-15 18:03 zsh doesn't complete for tar, zip, possibly other files Lewis Thompson
@ 2011-03-15 18:40 ` Benjamin R. Haskell
2011-03-16 9:42 ` Lewis Thompson
2011-03-16 14:43 ` Bart Schaefer
0 siblings, 2 replies; 4+ messages in thread
From: Benjamin R. Haskell @ 2011-03-15 18:40 UTC (permalink / raw)
To: Lewis Thompson; +Cc: zsh-users
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: zsh doesn't complete for tar, zip, possibly other files
2011-03-15 18:40 ` Benjamin R. Haskell
@ 2011-03-16 9:42 ` Lewis Thompson
2011-03-16 14:43 ` Bart Schaefer
1 sibling, 0 replies; 4+ messages in thread
From: Lewis Thompson @ 2011-03-16 9:42 UTC (permalink / raw)
To: Benjamin R. Haskell; +Cc: zsh-users
On 15 March 2011 18:40, Benjamin R. Haskell <zsh@benizi.com> wrote:
> If you type <ctrl+x><h> at the point where you're hammering TAB, you'll get
> some debugging information that could be useful.
Hi Ben
Thanks, I'll remember the above for next time I see something screwy.
In the meantime disabling file-sort access has indeed done the trick
for me.
This had been bothering me for getting on a year but I'd never
bothered to fully investigate/ask about it until now.
Thanks again for your help
Lewis
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: zsh doesn't complete for tar, zip, possibly other files
2011-03-15 18:40 ` Benjamin R. Haskell
2011-03-16 9:42 ` Lewis Thompson
@ 2011-03-16 14:43 ` Bart Schaefer
1 sibling, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 2011-03-16 14:43 UTC (permalink / raw)
To: zsh-users
On Mar 15, 2:40pm, Benjamin R. Haskell wrote:
} Subject: Re: zsh doesn't complete for tar, zip, possibly other files
}
} ==> 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))
Using the latest build out of the source repository:
torch% print $ZSH_VERSION $ZSH_PATCHLEVEL
4.3.11-dev-1 1.5223
torch% zstyle -L
zstyle ':completion:*' file-sort access
zstyle ':completion:*' matcher-list '' 'l:|=* r:|=*' 'r:|[._-]=** r:|=**' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}'
torch% tar xvf
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))
So whatever this was, it's already been fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-16 14:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-15 18:03 zsh doesn't complete for tar, zip, possibly other files Lewis Thompson
2011-03-15 18:40 ` Benjamin R. Haskell
2011-03-16 9:42 ` Lewis Thompson
2011-03-16 14:43 ` Bart Schaefer
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).