Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
generic completion for python programs
- X-seq: zsh-users 8918
- From: Francisco Borges <f.borges@xxxxxx>
- To: Zsh User <zsh-users@xxxxxxxxxx>
- Subject: generic completion for python programs
- Date: Mon, 30 May 2005 01:09:01 +0200
- Mail-followup-to: Zsh User <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Alfa Informatica - Rijksuniversiteit Groningen
Hello all,
I've made a library that generates zsh completion functions out of the
standard command line parser for python.
It sort of patches (on the fly) the python library to produce a
completion function, so it's able to know things that _gnu_generic would
not know and it does not require modifying the python code.
Some notes:
0. Yes, it's written in python but that's the interpreter of the program
you are about to call :-P
1. If you look at the code it generates you will see that I'm missing some
clues on proper zsh completion... patience...
2. it does not handle all options of optparse yet (but I'm getting
there).
3. you may have the function generated on the fly or one that gets
written into a function to be saved and loaded normally.
4. you can get it at:
http://www.let.rug.nl/~borges/optcomp/optcomp.tar.gz
5. Comments are very welcome ;-)
http://loki.let.rug.nl/~borges/optcomp/optcomp.tar.gz
Cheers,
--
Francisco.
__o
`\<,
_____(*)/(*)_____
Messages sorted by:
Reverse Date,
Date,
Thread,
Author