Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: command recall
On Sun, Feb 7, 2021 at 10:10 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> ....
> accept-line
> history-beginning-search-backward
> ....
>
> would that work?
Not that, because accept-line effectively terminates the widget, so
history-beginning-search-backward is never reached.
The following might work; I don't use sharehistory so setting up a
test case is a bit more than I want to get into today:
shared-history-beginning-search-backward() {
fc -RI
zle .history-beginning-search-backward "$@"
}
zle -N history-beginning-search-backward \
shared-history-beginning-search-backward
Messages sorted by:
Reverse Date,
Date,
Thread,
Author