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

Re: prepopulate BUFFER



push-line (^Q ESC-Q ESC-q) (unbound) (unbound)
              Push the current buffer onto the buffer stack and clear the buffer.  Next time  the
              editor  starts  up,  the  buffer will be popped off the top of the buffer stack and
              loaded into the editing buffer.

the difference is in the fact that the stack will return a pushed line just once, not for each subsequent prompt, and it will not save cursor position.

Pier Paolo Grassi


Il giorno ven 29 apr 2022 alle ore 18:21 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> ha scritto:
On Fri, Apr 29, 2022 at 8:57 AM Pier Paolo Grassi <pierpaolog@xxxxxxxxx> wrote:
>
> This use case is a bit different, since I return always to the original (incomplete) version of the command line, and I have only to complete it instead of deleting what I don't need anymore and fill the blanks

How does that differ from push-line ?


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