1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-09 18:51:46 +01:00

Baptiste Daroussin: 19272: small updates

This commit is contained in:
Oliver Kiddle 2003-12-04 14:23:29 +00:00
parent 825c0ad82f
commit 966afb4622
4 changed files with 18 additions and 7 deletions

View file

@ -1,5 +1,10 @@
2003-12-04 Oliver Kiddle <opk@zsh.org>
* Baptiste Daroussin: 19272: Completion/Unix/Command/_chown,
Completion/Unix/Command/_links, Completion/X/Command/_mplayer:
use colon separator on Linux for chown, complete links graphics
drivers and more file types for mplayer
* unposted: Completion/Unix/Command/_subversion: small addition to
output from `svn help diff' broke substitution for getting options

View file

@ -39,7 +39,7 @@ case $state in
else
if compset -S '[.:]*'; then
suf=()
elif [[ $OSTYPE = (solaris*|hpux*|*bsd*) ]]; then
elif [[ $OSTYPE = (solaris*|hpux*|*bsd*|linux*) ]]; then
suf=( -qS ':' )
else
suf=( -qS '.' )

View file

@ -8,7 +8,7 @@ _arguments -C \
'(-help)-assume-codepage[use the given codepage when the webpage did not specify its]:codepage:' \
'(-help)-async-dns[asynchronous DNS resolver]:bool:((0\:on 1\:off))' \
'(-help)-download-dir[default download directory]:_files -/' \
'(-help)-driver[graphics driver to use]:driver:(x svgalib fb pmshell atheos)' \
'(-help)-driver[graphics driver to use]:graphics driver:->graphics_drivers' \
'(-help)-dump[dump the page as pure text]' \
'(-help)-format-cache-size[number of formatted document pages cached]:pages:' \
'(-help)-ftp-proxy[host and port number of the FTP proxy, or blank]:hostport:_hosts' \
@ -26,9 +26,15 @@ _arguments -C \
'(-help)-unrestartable-receive-timeout[timeout on non restartable connections]:secs:' \
'(-help)-version[prints the links version number and exit]' \
':url:->html' && ret=0
if [[ "$state" = html ]]; then
_alternative 'files:file:_files -g "*.x#html"' 'urls:url:_urls' && ret=0
fi
case $state in
html)
_alternative 'files:file:_files -g "*.x#html"' 'urls:url:_urls' && ret=0
;;
graphics_drivers)
vals=(${=${${${(f)"$(_call_program links-graphics-drivers links -driver help 2>&1)"}[-1]}//','/''}} )
_describe -t links-graphics-drivers 'graphics driver' vals && ret=0
;;
esac
return ret

View file

@ -115,7 +115,7 @@ case "$state" in
_tags files urls
while _tags; do
_requested files expl 'video file' _files -g \
"*.(#i)(avi|mp3|mpg|mpe|mpeg|m1v|mov|asf|vob|mjpg|wma|wmv|asx|qt|rm)" && ret=0
"*.(#i)(avi|mp3|mpg|mpe|mpeg|m1v|mov|asf|vob|mjpg|wma|wmv|asx|qt|rm|mkv|mka|ogm|ogg)" && ret=0
if _requested urls; then
while _next_label urls expl url; do
_urls "$expl[@]" && ret=0