bash-completion icon indicating copy to clipboard operation
bash-completion copied to clipboard

feat(java): enable .java filename completion for java command

Open jiri-pejchal opened this issue 1 year ago • 1 comments

Modify java command completion scripts to also complete filenames with the .java extension. This adds support for

  • JEP 330: Launch Single-File Source-Code Programs
  • JEP 458: Launch Multi-File Source-Code Programs

jiri-pejchal avatar May 20 '24 14:05 jiri-pejchal

This pull request incorporates changes according to the commentary from #662 .

jiri-pejchal avatar May 20 '24 14:05 jiri-pejchal

The essential fix seems to be the same as https://github.com/scop/bash-completion/pull/662#issuecomment-1001646441. I prefer to leave the credit to the original author of #662, e.g., by including the Co-authored-by: ... in the commit message.

akinomyoga avatar May 21 '24 08:05 akinomyoga

  • fixed tests when can_list_jar is False
  • @frankslin added to Co-authored-by

jiri-pejchal avatar May 21 '24 10:05 jiri-pejchal