Hi Nate,
On 11/28/06, Nate Drake <[EMAIL PROTECTED]> wrote: > Hi! > > I've created a initial (and very basic) pass at target name completion > for Ant build files. It still needs to grab the target descriptions > as well as include targets included from other build files. I based > it off the ant completion provided by Zsh. I don't have any experience with the ant build system, but the target completions seem sane. I renamed the function __fish_complete_ant_targets in order to avoid future name clashes. Otherwise, the implementation looks fine. I've added your completions to the darcs tree and they will be included in the next release. Thanks! > > Comments, suggestions and improvements are welcome. The obvious suggestion would be to add completions for various ant switches. Additional patches are gladly accepted! > > Thanks! > > Nate > > --- > > # Function to parse a build.xml file generate a list of targets > function __fish_complete_targets -d "Print list of targets from > build.xml" > if test -f build.xml > sed -n "s/ *<target name=[\"']\([^\"']*\)[\"'].*/\1/p" < build.xml > end > end > > complete -x -c ant -a "(__fish_complete_targets)" > > ------------------------------------------------------------------------- > 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
