zsh-workers
 help / color / mirror / code / Atom feed
From: "Mikael Magnusson" <mikachu@gmail.com>
To: zsh-workers <zsh-workers@sunsite.dk>
Subject: java completion wrong?
Date: Tue, 1 May 2007 19:46:34 +0200	[thread overview]
Message-ID: <237967ef0705011046t2af3507cge9049ed6c298c0ae@mail.gmail.com> (raw)

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


                 reply	other threads:[~2007-05-01 17:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=237967ef0705011046t2af3507cge9049ed6c298c0ae@mail.gmail.com \
    --to=mikachu@gmail.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).