From c613f336352c628f652c6b96c3e83cada488e0ac Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 26 Apr 2010 13:17:24 +0000 Subject: unposted: update to _kfmclient unposted: update to _perforce for Perforce 2009.2 --- Completion/X/Command/_kfmclient | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Completion/X/Command') diff --git a/Completion/X/Command/_kfmclient b/Completion/X/Command/_kfmclient index 0d2b753b4..87080cf90 100755 --- a/Completion/X/Command/_kfmclient +++ b/Completion/X/Command/_kfmclient @@ -1,7 +1,10 @@ -#compdef kfmclient +#compdef kfmclient kioclient # kfmclient is a command line interface for use with Konqueror, # the KDE file manager and web browser. +# +# In KDE4, kioclient has similar syntax but doesn't necessarily talk +# to Konqueror ("kioclient exec ." by default starts Dolphin, for example). local expl local -a context state line @@ -82,8 +85,8 @@ case $line[1] in (exec) if [[ $state = secondarg ]]; then - # TODO: could probe inside Desktop files. - _message "KDE binding" + # Look for a Desktop Action binding. + _wanted binding expl 'KDE binding' compadd -- ${${${(M)${(f)"$(<$file)"}:#"[Desktop Action "*"]"}%%\]}##"[Desktop Action "} return elif [[ $state = firstarg ]]; then _webbrowser -- cgit 1.4.1