Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh-no-ps2: A plugin that inserts a newline on Enter instead of displaying PS2
- X-seq: zsh-users 29358
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Stephane Chazelas <stephane@xxxxxxxxxxxx>
- Cc: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: zsh-no-ps2: A plugin that inserts a newline on Enter instead of displaying PS2
- Date: Mon, 13 Nov 2023 17:38:03 -0800
- Archived-at: <https://zsh.org/users/29358>
- In-reply-to: <62a2cdc2fd719355bb6d0e5231d04258@chazelas.org>
- List-id: <zsh-users.zsh.org>
- References: <CAN=4vMqm22rFLZnhM=7ytKr4wG14hQGGE3u6m1-cgkUAXCNvsg@mail.gmail.com> <62a2cdc2fd719355bb6d0e5231d04258@chazelas.org>
On Sun, Nov 12, 2023 at 11:29 PM Stephane Chazelas
<stephane@xxxxxxxxxxxx> wrote:
>
> I agree that the inability to easily edit the previous line is quite
> annoying.
As discussed at some length in the "feep in the night-time" thread
(2021/04), this is because the input goes directly into the parser at
each accept-line, so to change the PREBUFFER you have to cancel the
parse-in-progress.
> Another problem with the PS2 prompt is that you cannot
> copy-paste the full command from your terminal.
This is why one uses e.g. PS2='' RPS2=' <%_' with transient_rprompt.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author