On 1/29/07, Velko Hristov <[EMAIL PROTECTED]> wrote: > Thank you for the nice workarounds. Here is the updated version.
Perfect! I've added you updates to the darcs tree. Great work. You might want to take a look at the completion creator script I've just started hacking on. http://liljencrantz.no-ip.org/fish/darcs/_darcs/pristine/make_completions.py It's a simple python script that tries to parse a man file for switches and descriptions. It gets lots of things wrong, but it can give you a base file that you can work from if you are lucky. Unfortunatly, the script is python and not fish, since the multiline regular expressions in sed are really awkward. :-( > And > along with it a completion file for vim 7.0. The file for vim has issues > because of strange switch syntax too. It would be good if someone > corrects them. There are two troubling switches. The first one, '--' to denote the end of options will be correctly handled by the next fish version, including not providing option completion if '--' has been specified and not flaging unknown 'switches' in red after a '--'. I actually haven't implemented providing the actual '--' completion yet, don't know how it slipped my mind. :-/ Unless any new scary bugs turn up, the new release should be out real soon now. The second one, '-', can be specified as complete -c vim -n '__fish_test_arg "-"' -a - --description 'The file to edit is read from stdin. Commands are read from stderr, which should be a tty' where __fish_test_arg is a generalized verison of __fish_test_plus_switch from yesterday. Instead of testing for a '+', it lets you specify an arbitrary wildcarded string to match against. I added the above fix and recorded the changes to the darcs tree. Hope this helps. > Greetings - Velko > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Fish-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fish-users -- Axel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
