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

Re: zsh completion for todo.*



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 
> characters).

For some reason, with this new function all I get is:
_arguments:comparguments:208: doubled argument definition: 
1:command:->commands

I'm looking at the code, thanks for your help.

Lydgate



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