Improve javadoc -overview,-helpfile,-stylesheetfile,-link,-linkoffline completions.

This commit is contained in:
Ville Skyttä 2010-10-31 21:40:22 +02:00
parent a877567477
commit ec82c536ed
2 changed files with 11 additions and 5 deletions

View File

@ -14,8 +14,9 @@ bash-completion (2.x)
* Add *.gif (Alioth: #312512), *.m2t (Alioth: #312770), *.3gpp, *.3gpp2,
*.awb, and *.iso (Alioth: #311420) to mplayer filename completions.
* Add "short" tarball extensions to unxz, unlzma etc completions.
* Improve /etc/init.d/*, ipmitool, jar, man, mencoder, mkdir, mplayer,
povray, rpmbuild, sqlite3, wodim, and general help parsing completions.
* Improve /etc/init.d/*, ipmitool, jar, javadoc, man, mencoder, mkdir,
mplayer, povray, rpmbuild, sqlite3, wodim, and general help parsing
completions.
* Fix p4 and povray completions (Alioth: #312625).
* Add *.xsd, *.xsl, *.rng, and *.wsdl to xmllint filename completions.
* Recognize rpm query mode based on the --file, --group, --package, and

View File

@ -176,11 +176,16 @@ _javadoc()
_get_comp_words_by_ref cur prev
case $prev in
-overview|-helpfile|-stylesheetfile)
_filedir
-overview|-helpfile)
_filedir '?(x)htm?(l)'
return 0
;;
-d)
-stylesheetfile)
_filedir css
return 0
;;
-d|-link|-linkoffline)
# TODO: -linkoffline takes two arguments
_filedir -d
return 0
;;