Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Does zsh have anything like readline's edit-and-execute-command ?
- X-seq: zsh-users 12835
- From: Robin Lee Powell <rlpowell@xxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Does zsh have anything like readline's edit-and-execute-command ?
- Date: Wed, 7 May 2008 10:32:04 -0700
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <080507002557.ZM2091@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080507012634.GC11527@xxxxxxxxxxxxxxxxxx> <080507002557.ZM2091@xxxxxxxxxxxxxxxxxxxxxx>
On Wed, May 07, 2008 at 12:25:57AM -0700, Bart Schaefer wrote:
> On May 6, 6:26pm, Robin Lee Powell wrote:
> }
> } That is, something that loads the line I'm editing into $EDITOR
> } or so, lets me edit it, and then runs it when I'm done?
>
> The bash behavior of this is IMO rather strange when at the PS2
> prompt. It executes the command immediately and then returns to
> the PS2 prompt with the outer construct still in progress.
>
> That could be implemented with a shell function widget in zsh, but
> has not been. Instead zsh has edit-command-line, which puts the
> entire multi-line construct into the editor, but then returns you
> to the PS1 prompt where you have to press enter (accept-line) to
> run the command.
>
> Look in the manual under User Contributions / ZLE Functions.
Ah. Silly me for using "man zshzle". :P I'll go back to using
"man zshall" all the time, I think.
Thanks! :)
-Robin
--
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
Proud Supporter of the Singularity Institute - http://singinst.org/
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author