Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Adding to the history from within a widget
- X-seq: zsh-users 24595
- From: dana <dana@xxxxxxx>
- To: Piers Powlesland <pierspowlesland@xxxxxxxxx>
- Subject: Re: Adding to the history from within a widget
- Date: Fri, 3 Jan 2020 17:11:22 -0600
- Cc: zsh-users@xxxxxxx
- In-reply-to: <CAFXacXkLFtDW=W+-iPBYT4cq4HCa5uh_CTLipGoPmO0h_MHU_A@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAFXacXmkCy3kQsX2b=D5+dtX+F_CxF6K+nUZsHGOBXdC-n7koA@mail.gmail.com> <3D72D898-A52E-421E-B05E-6119564791F3@dana.is> <CAFXacXkLFtDW=W+-iPBYT4cq4HCa5uh_CTLipGoPmO0h_MHU_A@mail.gmail.com>
On 3 Jan 2020, at 05:03, Piers Powlesland <pierspowlesland@xxxxxxxxx> wrote:
> If I execute another command in the shell I am then able to see the entry
> added with 'print -s' by pressing up twice.
>
> I'm wondering if you experience the same, possibly this has been fixed in
> newer versions of zsh?
It's the same in master. I'm not positive, but i don't think it's possible to
make new history entries actually selectable until the next prompt. You would
have to make your widget run `zle .accept-line` or `zle .send-break` (which
will cause whatever's currently on the line to be accepted or discarded,
respectively)
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author