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

Re: zcalc-auto-insert howto



On Thu, Mar 31, 2016 at 2:35 PM, sergio <mailbox@xxxxxxxxxxxxx> wrote:
>
> I'm trying zcalc-auto-insert but don't understand how to use it.
>
> % autoload -Uz zcalc-auto-insert
> % zcalc-auto-insert
> zcalc-auto-insert:zle:8: widgets can only be called when ZLE is active
> % bindkey '+' zcalc-auto-insert
> % zcalc
> $1 > 3 * 4
> 12
> $2 > <press +>
> No such widget `zcalc-auto-insert'

You just forgot to run
zle -N zcalc-auto-insert

-- 
Mikael Magnusson



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