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

Re: is there a mix of history-search-backward and history-beginning-search-backward



Andy Spiegl wrote:

> how do I set the functions up so that I can bind them to my keys?
> I put the file into ~/.zsh.funcs/ directory, autoloaded it and
> called bindkey:
>  bindkey "^P"        history-beginning-search-backward-end
>  bindkey "^N"        history-beginning-search-forward-end
> 
> But when I press ^P I get to see:
>  No such widget `history-beginning-search-backward-end'

You need to do:
zle -N history-beginning-search-backward-end
before the bindkey.

Oliver Kiddle



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