Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
java completion wrong?
- X-seq: zsh-workers 23374
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: java completion wrong?
- Date: Tue, 1 May 2007 19:46:34 +0200
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=B27F78NVnDaQSt3rUadXrzbM5TzV24+1FGHZDAsInJoBdtKgWbG6dScIapSb4QP2eNWo9V5YwZEmfSVaaLzUIrZtvFRFK8RSb1//J9SIXFFG7+I/rDdI4sZctxOT6ho+ayO4MTKH3brZFkEN5sHazQL9l8i2jzxVu82t4GKskYY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Ae4sdiFFwdc0QrK/JUL69iNHaDzRWQ5R44CkYMjLoE3gH0RFqWhk4RrzWQtNdCg3QWsx3F5y07wNHr0+7gFA2vRL/u0Z0WmudSex2pAA7bnMrWnTEcDsEed4v1HIMw/+vITxnbTYDlS1ZMfMwGCR8gimSZU5MuKIhk5MzTSnujQ=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
java hello <tab> completes commands instead of files, likewise for
java -jar hello.jar <tab>, the following patch seems to fix it, but I
don't know that much about java syntax so maybe it breaks something
else.
Index: Completion/Unix/Command/_java
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_java,v
retrieving revision 1.16
diff -p -u -d -r1.16 _java
--- Completion/Unix/Command/_java 8 Jun 2005 12:45:35 -0000 1.16
+++ Completion/Unix/Command/_java 1 May 2007 17:44:58 -0000
@@ -45,7 +45,7 @@ java)
'-help[print help message]' \
'(- 1)-jar[specify a program capsulated as jar]:jar:_files -g
\*.jar\(-.\)' \
'(-):class:_java_class -m main ${(kv)opt_args[(i)(-classpath|-cp)]}' \
- '*::args: _normal' \
+ '*::args: _files' \
&& return 0
;;
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author