zsh-users
 help / color / mirror / code / Atom feed
* zcalc-auto-insert howto
@ 2016-03-31 12:35 sergio
  2016-03-31 12:46 ` Mikael Magnusson
  0 siblings, 1 reply; 3+ messages in thread
From: sergio @ 2016-03-31 12:35 UTC (permalink / raw)
  To: zsh-users


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'



-- 
sergio


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: zcalc-auto-insert howto
  2016-03-31 12:35 zcalc-auto-insert howto sergio
@ 2016-03-31 12:46 ` Mikael Magnusson
  2016-03-31 14:48   ` sergio
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael Magnusson @ 2016-03-31 12:46 UTC (permalink / raw)
  To: sergio; +Cc: zsh-users

On Thu, Mar 31, 2016 at 2:35 PM, sergio <mailbox@sergio.spb.ru> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: zcalc-auto-insert howto
  2016-03-31 12:46 ` Mikael Magnusson
@ 2016-03-31 14:48   ` sergio
  0 siblings, 0 replies; 3+ messages in thread
From: sergio @ 2016-03-31 14:48 UTC (permalink / raw)
  To: zsh-users

On 31/03/16 15:46, Mikael Magnusson wrote:

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

Thank, you!



-- 
sergio


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-31 14:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-31 12:35 zcalc-auto-insert howto sergio
2016-03-31 12:46 ` Mikael Magnusson
2016-03-31 14:48   ` sergio

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).