From: Jean-Baptiste Quenot <jb.quenot@caraldi.com>
To: zsh-workers@sunsite.dk
Subject: [PATCH] ant completion
Date: Tue, 24 Aug 2004 14:52:27 +0200 [thread overview]
Message-ID: <20040824125225.GA1713@anyware12.anyware> (raw)
[-- Attachment #1: Type: text/plain, Size: 425 bytes --]
Dear workers,
Please find attached a patch for ant completion. The current
ant completion script only works when the "name" attribute
immediately follows the "target" element name.
In the following example, zsh only offers completion for the
'othertarget' target:
<target name='othertarget'/>
<target depends='othertarget' name='mytarget'/>
Best regards,
--
Jean-Baptiste Quenot
http://caraldi.com/jbq/
[-- Attachment #2: zsh-ant-comp-patch --]
[-- Type: text/plain, Size: 492 bytes --]
--- _ant.orig Tue Aug 24 14:40:26 2004
+++ _ant Tue Aug 24 14:51:38 2004
@@ -86,7 +86,7 @@
buildfile=${(v)opt_args[(I)(-f|-file|-buildfile)]:-build.xml}
fi
if [[ -f $buildfile ]]; then
- targets=( $(sed -n 's/ *<target name=["'"'"']\([^"'"'"']*\)["'"'"'].*/\1/p' < $buildfile) )
+ targets=( $(sed -n 's/ *<target[^>]*name=["'"'"']\([^"'"'"']*\)["'"'"'].*/\1/p' < $buildfile) )
_wanted targets expl target compadd -a targets && ret=0
else
_message -e targets target
next reply other threads:[~2004-08-24 12:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-24 12:52 Jean-Baptiste Quenot [this message]
2004-08-24 20:58 ` Wayne Davison
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040824125225.GA1713@anyware12.anyware \
--to=jb.quenot@caraldi.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).