Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ESC-Question
- X-seq: zsh-users 8604
- From: Meino Christian Cramer <Meino.Cramer@xxxxxx>
- To: phil@xxxxxxxx
- Subject: Re: ESC-Question
- Date: Mon, 14 Mar 2005 17:58:27 +0100 (CET)
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <871xaiu0w7.fsf@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050314.053746.74750222.Meino.Cramer@xxxxxx> <871xaiu0w7.fsf@xxxxxxxxxxxxxxxx>
From: Philippe Troin <phil@xxxxxxxx>
Subject: Re: ESC-Question
Date: 13 Mar 2005 23:44:56 -0800
Hi Phil !
Thanks a lot for the hint...gives me a whole lotta more of space (new
lines) for nice zshish code ! :)
Sometimes (often!) just the simple things are makeing life so much
easier ! ;O)))))))
Keep zshing!
Meino
PS: Just cause I am a little curious... :)
Under Emacs each keycode is bound to a named function like
forward-search-regexp and such...what is the corresponding
function in zsh? insert-line ? Or what is its name ?
> Meino Christian Cramer <Meino.Cramer@xxxxxx> writes:
>
> > Suppose I am builing up a short """""script""""" on the commandline:
> > A simple loop over filenames for example.
> >
> > After first run of the script I want to add another line to that
> > script.
> >
> > Scrolling back in history gives me the whole script nicely printed in
> > several lines (NOT on a loooooong one-liner! What a nice zshish
> > feature!).
> >
> > With EMACS-related keys I easily can step through the lines...BUT how
> > can I open a NEW line? My workaround is a way really hurtung an
> > EMACS-freak like me (at this point of the text of my mail there is a
> > BIG HUGH SMILEY!):
> >
> > I hit ALT-x (execute) and enter the command
> >
> > vi-open-line-above (...-below)
> >
> > because the simple <RETURN> at the and of the line will execute the
> > script again....
> >
> > Is there a Emacs-keybinding or Emacs-related command to open a line ?
>
> C-v C-j
>
> Or substitute whichever character is your tty's lnext char (as can
> been seen from stty -a).
>
> Alternately, M-Enter always creates a new line without submitting the
> input for processing.
>
> Phil.
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author