Ville Skyttä
a54857cd05
_init_completion: Add -s for splitting long options, use it in completions.
2011-05-02 00:04:26 +03:00
Ville Skyttä
0fd2bef229
javac: Add -*: option argument completion.
2011-04-28 21:28:05 +03:00
Ville Skyttä
23893f5149
java, javac: Add -X* completions.
...
They're revealed only when completing -X* due to the nature of these
options and the tools being a bit sluggish to invoke and parse
completions from.
2011-04-28 21:23:35 +03:00
Ville Skyttä
e2c57c5966
Convert many completions to use _parse_help() instead of hardcoded option lists.
2011-04-28 21:21:31 +03:00
Ville Skyttä
9dd125ee46
growisofs, _java_classes: Drop unnecessary compopt /dev/null redirections.
2011-04-27 18:40:01 +03:00
Ville Skyttä
a098290816
pack200, unpack200: Use _split_longopt.
2011-04-27 18:38:37 +03:00
Ville Skyttä
f65dffd4f6
_java_classes: Drop unnecessary nospace toggling.
2011-04-27 18:38:16 +03:00
Ville Skyttä
48ffb0ac6d
No need to test for COMPREPLY count when toggling nospace.
...
It only takes effect if there's only one completion anyway.
2011-04-27 18:37:15 +03:00
Ville Skyttä
f48d6fb10d
Use {x..y} brace expansion instead of `seq', loops, or long literal sequences.
2011-04-26 00:15:03 +03:00
Ville Skyttä
aa411dd30b
Drop no longer needed "type compopt" checks.
2011-04-21 12:35:24 +03:00
Ville Skyttä
7a4ef9e4a9
Use _init_completion() in completions/j*.
2011-04-20 22:11:12 +03:00
Ville Skyttä
6ea5b13d4d
Localize $classpath in _java_find_sourcepath so completions don't have to.
2011-04-20 22:06:56 +03:00
Ville Skyttä
ee43b22f9b
Use += to append to arrays and strings.
...
It's easier on the eye and faster than foo=( "${foo[@]}" ... ).
2011-04-06 20:39:21 +03:00
Mattias Ulbrich
823f634551
repaired sourcepath and classpath lookup
...
did not work correctly if multiple paths were given (using :)
now takes the corrected information
2011-04-06 18:46:28 +03:00
Ville Skyttä
a73774c833
Fix regressions and further tweak previous java completion patch.
...
Fix inner class regression, adapt test suite, turn off nospace for
single class completions, protect -o nospace for bash < 4.
2011-03-24 20:45:16 +02:00
Mattias Ulbrich
920b1f93b6
improved java completion
...
now suggests also package names
2011-03-24 20:44:10 +02:00
Ville Skyttä
cb01d8ea54
Add javaws completion.
2011-02-06 15:15:20 +02:00
Ville Skyttä
1b0e17c2a3
Define needed utility functions for javac and javadoc even if java is not installed.
2011-02-06 14:53:55 +02:00
Ville Skyttä
6aecdb5f4c
Avoid some unnecessary stat calls.
2011-02-05 12:06:53 +02:00
Ville Skyttä
e99645d2b9
Add pack200 --repack completion.
2011-01-17 22:07:33 +02:00
Ville Skyttä
bda497eb58
Add bunch of java option completions, improve colon handling.
2011-01-04 19:07:30 +02:00
Ville Skyttä
0f450219b6
Remove most "-o filenames" options to "complete".
...
Turn it on dynamically when needed instead; see doc/styleguide.txt for
a longer explanation. This fixes many non-filename completions which
had been previously more or less broken due to unwanted
escape-as-filenames behavior.
2010-11-01 19:29:45 +02:00
Ville Skyttä
ec82c536ed
Improve javadoc -overview,-helpfile,-stylesheetfile,-link,-linkoffline completions.
2010-10-31 21:40:22 +02:00
Guillaume Rousse
cb7fc2f7c4
rename 'contrib' directory to 'completions'
2010-09-12 16:42:21 +02:00