Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
false prefix-needed in _arguments
- X-seq: zsh-workers 16639
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: false prefix-needed in _arguments
- Date: Thu, 14 Feb 2002 15:06:53 +0000 (GMT)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
The prefix-needed style in _arguments doesn't seem to be working:
_f() { _arguments '-a' '-b' '1:files:_files' }
zstyle '*' prefix-needed false
compdef _f f
f <tab>
And only files are offered. It should be offering both files and
options.
I've always had prefix-needed set to true so only noticed this when I
tried setting:
zstyle ':completion:*:option-*:options' prefix-needed false
so that options are listed when the argument to an option is optional.
Oliver
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author