zsh-users
 help / color / mirror / code / Atom feed
* Java completion for Java files
@ 2024-02-05 18:04 Henri Tremblay
  2024-02-05 20:43 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Henri Tremblay @ 2024-02-05 18:04 UTC (permalink / raw)
  To: zsh-users

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-07 16:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-05 18:04 Java completion for Java files Henri Tremblay
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

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).