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

Re: Does add-zle-hook-widget violate the contract of ZLE hook widgets?



On Thu, Jun 24, 2021 at 12:34 PM Marlon Richert
<marlon.richert@xxxxxxxxx> wrote:
>
> [...] the documentation in
> https://zsh.sourceforge.io/Doc/Release/Zsh-Line-Editor.html#Special-Widgets
> could be updated to guide the user towards azhw.
>
> [...] 3rd-party developers should be strongly
> encouraged to use azhw and not zle -N zle-X.

Given the current state of add-zle-hook-widget [*] I would be wary of
giving this advice. I personally never use it and cannot recommend
anyone to use it. If your goal is to write a robust plugin that is
unlikely to break in the presence of other plugins,
add-zle-hook-widget is a poor choice.

Roman.

[*] This thread, workers/49084 and workers/49085.




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