I had a look at make_vcs_completions.fish, but again it comes down to me not knowing sed... and I'd rather not learn it just for a few completions. Actually, __fish_describe_command does a better job than make_vcs_completions.fish with git, since 'git help' only lists a small subset of commands 'git help -a' produces a full list but in a different format (grid with no descriptions). make_vcs_completions.fish did produce something looking somewhat decent for the few commands listed by 'git help' without any real tweaking, although fish then wouldn't parse the file (didn't notice any obvious reason).
So sorry, but I'll probably be leaving it at that with the git completions. Diggory On Saturday 19 January 2008 14:44:19 Axel Liljencrantz wrote: > Hmm, I just realised I should have said something a lot sooner. I've > been dabbling with machine generating completion files for some time > with moderate sucess. The code for doing this is still pretty far from > good enough to work in the general case, but I find it rather useful > as a starting point. > > There are two separate files that I'm working on, and both are shipped > in the fish tarball. > > First, there is make_vcs_completions.fish, which is a fish-style > shellscript which generates the completions for darcs, mercurial, > subversion and cvs. The file is rather full of special casing for > minor differences, but because the above mentioned version control > systems have help systems syntax, help system output format and > command structure that are almost identical, it was possible to create > a single script to generate decent completions for all those commands. > If git behaves mostly like those other commands, it may be possible to > make use of this script. > > Secondly, make_completions.py is a python script that tries to parse > the manual page of a command into tab completions. The exact format of > manual pages varies enough that the script only works properly for a > rather small subset of all manual pages and the generated completions > usually need a bit of massaging before they're fit for use, but it's > still better than nothing. > > Sorry for not mentioning this sooner, hope you'll be able to make use > of these scripts. > > > Axel ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
