Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Does zsh have anything like readline's edit-and-execute-command ?



In message <20080507184442.GH11527@xxxxxxxxxxxxxxxxxx>,
	Robin Lee Powell (rlpowell@xxxxxxxxxxxxxxxxxx) wrote:
> On Wed, May 07, 2008 at 07:28:02PM +0100, Stephane Chazelas wrote:
> > On Wed, May 07, 2008 at 10:32:04AM -0700, Robin Lee Powell wrote:
> > [...]
> > > Ah.  Silly me for using "man zshzle".  :P  I'll go back to using
> > > "man zshall" all the time, I think.
> > [...]
> > 
> > You may want to consider "info" instead. "info" has got a
> > searchable index and table of content like a book.
> 
> info is nigh-unusable

Agreed!  :-)

> It wouldn't have helped at all in this case, though, as I had no
> idea where in the hierarchy to look.  I'm trying to get
> edit-command-line to work now, and I *still* don't know where to
> look.

I just tried the example in the book _From Bash to Z Shell_, which I
highly recommend and think those involved did a great job, and it just
worked.  Okay, so I used a different key binding from that in the book
but that was to prevent it clashing with other bindings I have.  The
book suggests:

 autoload -U edit-command-line
 zle -N edit-command-line
 bindkey '\ee' edit-command-line

to make ESC-e bring up the editor.  I used ^E.

What are you trying?


Cheers,
       Nick.
-- 



Messages sorted by: Reverse Date, Date, Thread, Author