Re: A ZLE widget for calculator
Bart Schaefer <[email protected]> Fri, 27 Mar 2026 16:49:26 -0700
| Newsgroups | gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <CAH+w=7aN_oZRSXzPSb4SsZy=5npxTorWpXV0Kp5Cgey=UUrehQ@mail.gmail.com> |
On Fri, Mar 27, 2026 at 2:05 PM Erik Wybouw <[email protected]> wrote: > > Thank you for the inspiration! > > I just augmented it with a trick I use to chain accept-line handlers (my own, and zsh_autosuggest) You might consider doing this with add-zle-hook-widget line-finish quote_expression instead. That's actually designed for chaining a series of actions. It does execute after accept-line, but before handing the buffer over for execution, so you can do most things you would otherwise do in an accept-line override. The one thing it can't do is skip the accept-line entirely.