Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: New completion function: _zsh
- X-seq: zsh-workers 25743
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: Re: New completion function: _zsh
- Date: Wed, 24 Sep 2008 18:21:36 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=fXSJYtKUxhhIBQzDQji5E5VfG5qNzxlNZcwroTb/Gb8=; b=WrSxPev9r6RRG5VQuD7RGRLOPaz1wMPmWoEFMlb/Vq79yo39oM4GAGLLOj6JX9UkNm 5A02MXgSGBC88Iu/0qJK1iXsMISvgjddRP4uRlII73z4EVtdAZ8H6N8719ZyjDgAVitU lOl0pZzTr9RlJC1HXM981sI3VveHWu19ZlJyg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=xezcMWuACaznRTMZSV+ixS93WTgVdEwVVEnEjO0NhtTIku2ixBJeqpWL3YfC6OKSzo 15s1xSyy4rlfGhh2C3Fp8jJ1AAzXM5wmkfvlYBjrEvqtrzUU+dtwe03SpE4y0iujd5FU ImGOBBpkOvKGKeGerQgzv6P8Gn+8KjrVFwVg0=
- In-reply-to: <20080924161438.GI11090@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70809240846i3c4f69f0w1e95e1ce367b1528@xxxxxxxxxxxxxx> <20080924161438.GI11090@xxxxxxxxxxxxxxx>
2008/9/24 Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>:
> Richard Hartmann <richih.mailinglist@xxxxxxxxx>:
>> I realized there is no completion function for zsh.
>
> Actually, zsh completion is handled by _sh.
>
> [...]
>> 2) What is the preferred style for completions?
>>
>> I can think of these:
>>
>> -0[CORRECT: Try to correct the spelling of commands]
>> -0[Try to correct the spelling of commands (CORRECT)]
>> -0[Try to correct the spelling of commands]
> [...]
>
> Aesthetically, I'd prefer the 2nd idea.
>
> Regards, Frank
_gnu_generic also handles it pretty well, though it's not very informative.
% zsh -<tab>
---- option
-0 -- equivalent to --completeinword
-1 -- equivalent to --printexitvalue
-2 -- equivalent to --no-badpattern
.
.
.
-Y -- equivalent to --menucomplete
-Z -- equivalent to --zle
--aliases --cshjunkiequotes --hup
--privileged
--allexport --cshnullcmd --ignorebraces
--promptbang
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author