From: Henri Tremblay <henri.tremblay@gmail.com>
To: zsh-users@zsh.org
Subject: Java completion for Java files
Date: Mon, 5 Feb 2024 13:04:21 -0500 [thread overview]
Message-ID: <CADZL2=u-c69DmGyWFNMhYRCR0NQ3DtZv9DbuMSGK+iFT6t5ASQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 835 bytes --]
Hi,
I was directed here to discuss Java completion.
Java now supports (since Java 10 I think) command lines like
java Math.java
or
java src/main/java/org/me/Math.java.
It will then just compile and launch that java file. But zsh won't
autocomplete for that. It only wants a jar, class file or whatever.
I would like normal completion on file and directories with a filter on
.java files. Possibly on top of the classpath way (which I never use so
just deactivating it would be fine with me, but we can keep the existing
and add more completion on top).
The problem is probably somewhere in there:
https://github.com/zsh-users/zsh/blob/master/Completion/Unix/Command/_java
but I don't know enough how it works to propose a fix myself.
Any help would be appreciated,
Henri Tremblay
Java Champion
EasyMock and Objenesis dev lead
[-- Attachment #2: Type: text/html, Size: 3879 bytes --]
next reply other threads:[~2024-02-05 18:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-05 18:04 Henri Tremblay [this message]
2024-02-05 20:43 ` Bart Schaefer
2024-02-06 2:47 ` Henri Tremblay
2024-02-06 10:23 ` Michal Politowski
2024-02-07 16:15 ` Henri Tremblay
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='CADZL2=u-c69DmGyWFNMhYRCR0NQ3DtZv9DbuMSGK+iFT6t5ASQ@mail.gmail.com' \
--to=henri.tremblay@gmail.com \
--cc=zsh-users@zsh.org \
/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).