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



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