Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zcalc-auto-insert howto
- X-seq: zsh-users 21426
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: sergio <mailbox@xxxxxxxxxxxxx>
- Subject: Re: zcalc-auto-insert howto
- Date: Thu, 31 Mar 2016 14:46:03 +0200
- Cc: zsh-users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=Gr2Wzhe8Z5ciC7ao5Qg/0N8X8ydnp8x1u4e1sTIgEHk=; b=uNLDNRnuAyM1Sb8sn5+lV4AU46yYcNT+c1iZQPsmyGEdxHt1yVAtivxWm0FQMIRj9u tz++welF3lUi0X4Rhs4T0ADR/Clr4TxfQANZdXtP9IgOELnR6SAf8JIcMqTG9B+bZUzz fYO+NOfjOEbSYkX5VwlXwaLOsUo3F5dH6S+6Osac/lV16F3HLUqsEqjEckP2wFCpRvLY QFNcaq+tSir4AKm8KWYwDG5HZRGYBS0zWjgi/AuMPIr1WmdR8wgvbY/lg8PFHfiqPiMT ByTJXyfG1HXQj97SKTjwq46SJPVFMnL+3ND3+j4nfaSscK5Y1oW4GRwNxES0u7O+J78l nVcQ==
- In-reply-to: <56FD198A.70601@sergio.spb.ru>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <56FD198A.70601@sergio.spb.ru>
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