summaryrefslogtreecommitdiff
path: root/Completion/X/Command/_kfmclient
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-07-28 09:18:29 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-07-28 09:18:29 +0000
commit804599a7ce1ceedfebfcaf61a2287695dd922748 (patch)
tree76e486adf76f0e7ce24b8019f84cdde4413355d7 /Completion/X/Command/_kfmclient
parent8c9a6b01d1bf727d27bc12d7e63fbb34fa157587 (diff)
downloadzsh-804599a7ce1ceedfebfcaf61a2287695dd922748.tar.gz
zsh-804599a7ce1ceedfebfcaf61a2287695dd922748.zip
20200 plus unposted: fix MIME stuff,
don't let _kfmclient drop through to `no more arguments' unnecessarily
Diffstat (limited to 'Completion/X/Command/_kfmclient')
-rwxr-xr-xCompletion/X/Command/_kfmclient23
1 files changed, 14 insertions, 9 deletions
diff --git a/Completion/X/Command/_kfmclient b/Completion/X/Command/_kfmclient
index f83e51779..5c45e9181 100755
--- a/Completion/X/Command/_kfmclient
+++ b/Completion/X/Command/_kfmclient
@@ -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