Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _java



Here is a proposed patch for _java, that uses the new _java_class function.
If I don't hear any complaints, I'll commit it.

-FR.

Index: Completion/Unix/Command/_java
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_java,v
retrieving revision 1.5
diff -r1.5 _java
47c47
<     '(-):class:->class' \
---
>     '(-):class:_java_class -m main' \
60c60
<     '-doclet[specify a doclet]:doclet:->doclet' \
---
>     '-doclet[specify a doclet]:doclet:_java_class -t doclet' \
143c143
<     '*:fully qualified classname:->class' && return 0
---
>     '*:fully qualified classname:_java_class -m main' && return 0
162c162
<     '*:class:->class' && return 0
---
>     '*:class:_java_class' && return 0
185c185
<     '*:package qualified class name:->class' && return 0
---
>     '*:package qualified class name:_java_class' && return 0
504,512d503
<   ;;
< 
< class|doclet)
<   match=()
<   compset -P '(#b)(*.)'
<   basedir=${match[1]//.//}
<   _alternative \
<     'classes:class:compadd $basedir*.class(.:t:s/.class//)' \
<     'packages:package:compadd -qS. $basedir*~$basedir*.*(/:t)'





__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



Messages sorted by: Reverse Date, Date, Thread, Author