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

Re: [PATCH] espeak completion



2010/1/4 Jesse Weinstein <jessw@xxxxxxxxxxx>:
> On Mon, 2010-01-04 at 12:14 +0100, Mikael Magnusson wrote:
>
>> typos, amplitude and capital
> Oops.  Thanks for catching those.
>> Not sure if you want to list the numbers like that, just say 'integer
>> 1-20' instead maybe?
> I didn't think it would work -- and when I tested it just now, it
> didn't.  I *generated* the lists with {0..20}, but just using that gives
> the error "(eval):1: command not found: 0..20".  If there is a shorter
> way to express it -- I'd be glad to use it.

What I meant was literally just doing
'-a[amplitude]:integer 1-20:'

There are precedents for either way though,
Completion/X/Command/_xv:  '-preset:default preset (1-4):(1 2 3 4)' \
Completion/X/Command/_x_utils:    '-mod:x grid distance (1-16): :y
grid distance (1-16)' \

(the latter is for xsetroot)

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author