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 9634
- 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 16:10:49 +0000
- In-reply-to: <20051104154824.GG27583@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20051104132423.GY27583@xxxxxxxxxxxxx> <EXCHANGE03R9r1lRov900009d4e@xxxxxxxxxxxxxxxxxx> <20051104144356.GF27583@xxxxxxxxxxxxx> <EXCHANGE03YV7iqkWol00009d7f@xxxxxxxxxxxxxxxxxx> <20051104154824.GG27583@xxxxxxxxxxxxx>
Vincent Lefevre wrote:
> Shouldn't it become part of zle?
I don't think so. The functions are supplied to be extensible and
flexible. It's hardly harder to use a function widget than a builtin
one and it's much easier to change it. For something like this, which
runs external commands and handles the output, it's also much easier to
write the function in the shell command language than in C.
One of the reasons for the new manual roadmap is to indicate things like
the presence of add-on zle functions documented in zshcontrib which users
might otherwise not notice, although it doesn't specifically mention
edit-command-line.
> > > 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.
>
> Why doesn't fc assume I want to use my normal editor?
Historical reasons, presumably, since this came from ksh. It's not much
used.
> Is there any reason to have $FCEDIT different from $VISUAL or $EDITOR?
Not that I'm aware of. Set it to what you like.
--
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