1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-31 06:00:54 +01:00

20200 plus unposted: fix MIME stuff,

don't let _kfmclient drop through to `no more arguments' unnecessarily
This commit is contained in:
Peter Stephenson 2004-07-28 09:18:29 +00:00
parent 8c9a6b01d1
commit 804599a7ce
3 changed files with 24 additions and 12 deletions

View file

@ -54,38 +54,43 @@ download copy sortDesktop configure configureDesktop)' \
# Argument to previous command.
print $line >/tmp/tmp.out
case $line[1] in
(openURL)
if [[ $state = secondarg ]]; then
_mime_types && return 0
_mime_types
return
elif [[ $state = firstarg ]]; then
_urls && return 0
_urls
return
fi
;;
(openProfile)
if [[ $state = secondarg ]]; then
_urls && return 0
_urls
return
elif [[ $state = firstarg ]]; then
_wanted profile expl 'Konqueror profile' \
compadd -- ~/.kde/share/apps/konqueror/profiles/*(:t) && return 0
compadd -- ~/.kde/share/apps/konqueror/profiles/*(:t)
return
fi
;;
(exec)
if [[ $state = secondarg ]]; then
# TODO: could probe inside Desktop files.
_message "KDE binding" && return 0
_message "KDE binding"
return
elif [[ $state = firstarg ]]; then
_urls && return 0
_urls
return
fi
;;
(move|download|openProperties)
if [[ $state = firstarg ]]; then
_urls && return 0
_urls
return
fi
;;
esac