From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12533 invoked from network); 4 Nov 2005 14:54:05 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Nov 2005 14:54:05 -0000 Received: (qmail 72172 invoked from network); 4 Nov 2005 14:53:59 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Nov 2005 14:53:59 -0000 Received: (qmail 3046 invoked by alias); 4 Nov 2005 14:53:48 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9631 Received: (qmail 3037 invoked from network); 4 Nov 2005 14:53:48 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Nov 2005 14:53:48 -0000 Received: (qmail 70616 invoked from network); 4 Nov 2005 14:53:48 -0000 Received: from cluster-d.mailcontrol.com (HELO rly23d.srv.mailcontrol.com) (217.69.20.190) by a.mx.sunsite.dk with SMTP; 4 Nov 2005 14:53:46 -0000 Received: from exchange03.csr.com (mailhost1.csr.com [81.105.217.43]) by rly23d.srv.mailcontrol.com (MailControl) with ESMTP id jA4Eri3x020858 for ; Fri, 4 Nov 2005 14:53:44 GMT Received: from csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 4 Nov 2005 14:56:10 +0000 To: zsh-users@sunsite.dk Subject: Re: Start an external editor to edit the current zle buffer In-reply-to: <20051104144356.GF27583@ay.vinc17.org> References: <20051104132423.GY27583@ay.vinc17.org> <20051104144356.GF27583@ay.vinc17.org> Comments: In-reply-to Vincent Lefevre message dated "Fri, 04 Nov 2005 15:43:56 +0100." Date: Fri, 04 Nov 2005 14:53:43 +0000 From: Peter Stephenson Message-ID: X-OriginalArrivalTime: 04 Nov 2005 14:56:10.0904 (UTC) FILETIME=[E4E89180:01C5E14F] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-05-40-01 (www.mailcontrol.com) on 10.68.0.133 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Vincent Lefevre wrote: > On 2005-11-04 13:49:25 +0000, Peter Stephenson wrote: > > Vincent Lefevre wrote: > > > Is there a way to start an external editor (e.g. given by $FCEDIT) > > > to edit the current buffer and go back to zle? > > > > > > This can be useful if some operations are easier with the mouse. > > > > See the ZLE function edit-command-line supplied with the shell. It's > > quite short and you might want to tweak it. > > Thanks. Is there any reason why it is not available by default and > not documented in the zshzle man page? Yes: it's not part of zle, it's a contributed function and like all such is documented in zshcontrib and needs to be loaded. > Also why does fc use $FCEDIT and not ${VISUAL:-${EDITOR:-vi}} like > edit-command-line (or the opposite)? FCEDIT is specific to the fc command. edit-command-line assumes you want to use your normal editor. You can easily change it. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com