Zsh Mailing List Archive
Messages sorted by:
Re: zsh completion for todo.*
- X-seq: zsh-users 11114
- From: Lydgate <zsh@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zsh completion for todo.*
- Date: Tue, 16 Jan 2007 11:51:19 +0000
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=Pl3EtkmrIMeZ0Psk0GNzSlHyPvrYUpO9LYwjgFF5JVuEZ1gIMBhdj2hPME6myXZbY//KXpYG8GDSNDmTR+CC3SbGAJd/CvRqxatFgJlzh2UttZ73sgYYU3BRVirLhBCLTuy4cWa4FYRyHvf8bZ6RWfIKp38zHug3ZPhqKzjzevM=
- In-reply-to: <E1H6lkN-0005qR-QK@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <E1H6c5v-0002YQ-8l@xxxxxxxxxx> <E1H6lkN-0005qR-QK@xxxxxxxxxxxx>
On Tue, Jan 16, 2007 at 10:38:54AM +0000, Peter Stephenson wrote:
> I'm not sure I've followed what you're doing.
It appears something that should already work, i.e., completion of
contexts and projects.
> If you get as far as "todo.sh list p:" it will complete projects, and after
> you type "todo.sh list @" it will complete contexts; the same for any
> word after a "list" subcommand.
This doesn't work for me, possibly because I use + for projects rather
than p:. But I tried switching it and it still doesn't work.
> I note I don't complete projects or contexts in normal text, which is
> potentially useful and easy to add. In that case handling words in
> quotes is a good idea since you've got a string of words in the same
> argument before the bit you want to complete. Possibly that covers what
> you want.
When I said it was missing quotes, I only meant that the words "search
terms ..." needed quotes in the original _todo.sh.
> I've attached the modified function so you don't need to get the
> original out of the CVS archive (it has lines longer than 80
For some reason, with this new function all I get is:
_arguments:comparguments:208: doubled argument definition:
I'm looking at the code, thanks for your help.
Messages sorted by: