Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: kfmclient arguments
- X-seq: zsh-workers 20834
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: kfmclient arguments
- Date: Mon, 21 Feb 2005 12:31:01 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hardly worth posting, but kfmclient, like many web browsers, handles file
names as well as URLs. I've also add a short description.
Arguably, _webbrowser isn't a great name for that function and it should
be _files_or_urls, with the name _webbrowser reserved for something
which has more sophisticated argument handling. However, I'm not
particularly worried, unless _webbrowser is really likely to change,
which it probably isn't.
Index: Completion/X/Command/_kfmclient
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/X/Command/_kfmclient,v
retrieving revision 1.2
diff -u -r1.2 _kfmclient
--- Completion/X/Command/_kfmclient 28 Jul 2004 09:18:30 -0000 1.2
+++ Completion/X/Command/_kfmclient 21 Feb 2005 12:26:49 -0000
@@ -1,5 +1,8 @@
#compdef kfmclient
+# kfmclient is a command line interface for use with Konqueror,
+# the KDE file manager and web browser.
+
local expl
local -a context state line
typeset -A opt_args
@@ -60,14 +63,14 @@
_mime_types
return
elif [[ $state = firstarg ]]; then
- _urls
+ _webbrowser
return
fi
;;
(openProfile)
if [[ $state = secondarg ]]; then
- _urls
+ _webbrowser
return
elif [[ $state = firstarg ]]; then
_wanted profile expl 'Konqueror profile' \
@@ -82,14 +85,14 @@
_message "KDE binding"
return
elif [[ $state = firstarg ]]; then
- _urls
+ _webbrowser
return
fi
;;
(move|download|openProperties)
if [[ $state = firstarg ]]; then
- _urls
+ _webbrowser
return
fi
;;
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author