about summary refs log tree commit diff
path: root/Completion/X
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-04-26 13:17:24 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-04-26 13:17:24 +0000
commitc613f336352c628f652c6b96c3e83cada488e0ac (patch)
tree840ed0077a0dc1ec795d806166c1958dc7b65a0d /Completion/X
parent19849aa444fd876bbea0ec32943160ff4f82234b (diff)
downloadzsh-c613f336352c628f652c6b96c3e83cada488e0ac.tar.gz
zsh-c613f336352c628f652c6b96c3e83cada488e0ac.tar.xz
zsh-c613f336352c628f652c6b96c3e83cada488e0ac.zip
unposted: update to _kfmclient
unposted: update to _perforce for Perforce 2009.2
Diffstat (limited to 'Completion/X')
-rwxr-xr-xCompletion/X/Command/_kfmclient9
1 files changed, 6 insertions, 3 deletions
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