From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3647 invoked from network); 10 Sep 2003 08:56:20 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 10 Sep 2003 08:56:20 -0000 Received: (qmail 28081 invoked by alias); 10 Sep 2003 08:55:56 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19056 Received: (qmail 28051 invoked from network); 10 Sep 2003 08:55:54 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 10 Sep 2003 08:55:54 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [193.109.254.211] by sunsite.dk (MessageWall 1.0.8) with SMTP; 10 Sep 2003 8:55:51 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-7.tower-36.messagelabs.com!1063184150!453037 X-StarScan-Version: 5.0.7; banners=-,-,- Received: (qmail 23187 invoked from network); 10 Sep 2003 08:55:50 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-7.tower-36.messagelabs.com with SMTP; 10 Sep 2003 08:55:50 -0000 Received: from gmcs3.local ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id h8A8tnHM020904 for ; Wed, 10 Sep 2003 09:55:49 +0100 Received: from gmcs3.local (localhost [127.0.0.1]) by gmcs3.local (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id h8A8w0o02625 for ; Wed, 10 Sep 2003 10:58:01 +0200 To: zsh-workers@sunsite.dk (Zsh hackers list) X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <20030909200256.B6B7C851D@pwstephenson.fsnet.co.uk> From: Oliver Kiddle References: <20030909200256.B6B7C851D@pwstephenson.fsnet.co.uk> Subject: Re: PATCH: MIME functions Date: Wed, 10 Sep 2003 10:58:00 +0200 Message-ID: <2623.1063184280@gmcs3.local> These look good. Makes sense being able to use existing mailcap files. Peter wrote: > +Repeated calls to tt(zsh-mime-setup) do not override the existing > +mapping between suffixes and executable files unless option tt(-r) is > +given. Note, however, that this does not override existing suffix Would -f perhaps be more conventional than -r (for force, as used by cp, ln etc). The /etc/mailcap has a lot of crap in it here so it might be nice if there was an option to specify that the system mailcap should not be used or to specify an alternate list of mailcap files. Perhaps using zstyle instead of an option. Could be quite a lot of scope for using zstyle to override mailcap entires and other configuration. > +example( > + autoload -U pick-web-browser > + suffix -s html=pick-web-browser > +) That should be: alias -s html=pick-web-browser > +xbrowsers=(mozilla netscape opera) If you want to add konqueror to this, note that the equivalant to -remote would be to use something like: dcop $(dcop|grep konqueror) konqueror default openBrowserWindow $url And, I hate to whinge but can we not be consistent on coding style/indentation across scripts in zsh. Completion functions written by Sven or me all use two spaces. Oliver