From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Zsh users mailing list <zsh-users@math.gatech.edu>
Subject: Re: How to kill string but leave it in history?
Date: Thu, 16 Jan 1997 10:21:41 -0800 [thread overview]
Message-ID: <970116102141.ZM18533@candle.brasslantern.com> (raw)
In-Reply-To: Peter Stephenson <pws@ifh.de> "Re: How to kill string but leave it in history?" (Jan 16, 2:54pm)
In-Reply-To: Roderick Schertler <roderick@gate.net> "Re: How to kill string but leave it in history?" (Jan 16, 11:27am)
In-Reply-To: Zefram <zefram@dcs.warwick.ac.uk> "Re: How to kill string but leave it in history?" (Jan 16, 4:37pm)
On Jan 16, 4:37pm, Zefram wrote:
} Subject: Re: How to kill string but leave it in history?
}
} Roderick Schertler wrote:
} >Which reminds me, it has always bugged me that if zsh creates a
} >continuation line (like
} >
} > $ print "foo<return>
} > dquote> _
} >
} >) I can't go from the dquote> line back up to the first line
}
} Yes, this is what push-input is for.
Or push-line-or-edit, which acts like push-line at the PS1 prompt, but
at the PS2 prompt acts like push-input followed by get-line. (Saves
some vertical space and one or two keystrokes.)
In answer to the original query, this *ought* to work, and does if you
type the keystrokes by hand:
bindkey '\eq' push-line-or-edit
bindkey -s '^X^H' '\eq\e< print -s ^@\e>\e"^M'
For some reason, though, the right-hand-side of the ^X^H binding stops
as soon as either of push-input or push-line-or-edit is executed. I.e.,
the binding above acts like "bindkey -s '^X^H' '\eq'" -- all the trailing
stuff is dropped. I presume that's a bug in push-input ....
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.nbn.com/people/lantern
next prev parent reply other threads:[~1997-01-16 18:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-16 10:59 Andrej Borsenkow
1997-01-16 12:15 ` Peter Stephenson
1997-01-16 13:36 ` Andrej Borsenkow
1997-01-16 13:54 ` Peter Stephenson
1997-01-16 14:02 ` Juergen Christoffel
1997-01-16 14:40 ` Zefram
1997-01-16 16:27 ` Roderick Schertler
1997-01-16 16:37 ` Zefram
1997-01-16 17:41 ` Roderick Schertler
[not found] ` <pws@ifh.de>
[not found] ` <roderick@gate.net>
[not found] ` <zefram@dcs.warwick.ac.uk>
1997-01-16 18:21 ` Bart Schaefer [this message]
1997-01-16 18:39 ` Zefram
1997-01-17 9:05 ` Bart Schaefer
1997-01-16 19:21 ` Roderick Schertler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=970116102141.ZM18533@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=schaefer@nbn.com \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).