Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Start an external editor to edit the current zle buffer
- X-seq: zsh-users 9631
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Start an external editor to edit the current zle buffer
- Date: Fri, 04 Nov 2005 14:53:43 +0000
- In-reply-to: <20051104144356.GF27583@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20051104132423.GY27583@xxxxxxxxxxxxx> <EXCHANGE03R9r1lRov900009d4e@xxxxxxxxxxxxxxxxxx> <20051104144356.GF27583@xxxxxxxxxxxxx>
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 <pws@xxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author