Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ZSH's way to bind function to a key in a script?
- X-seq: zsh-users 15849
- From: Jérémie Roquet <arkanosis@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: ZSH's way to bind function to a key in a script?
- Date: Wed, 9 Mar 2011 15:05:03 +0100
- Cc: nix@xxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=9sm/cBajRxSoY8INgXAXSegRs1skMqniOoZ5jcCk8Os=; b=hvoAMPFM6/YtS8hW/sU1u4HJwNlvXz2l7AB+nGs2mNABrRxcJMoOEEM/wqvW8dzxmU 4HUkkRLHFAKTBco44vlbViLB/Gn9kyXlf5nQ7GckDs68OHcRtqY/m/hslb/KwxjmyPtY qQz2TSIuNzwaG+C2ipgb7wZt55daIQhwa5dlI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=cgHL/q+FrWtW4XNgog2TF4YFBNmAtt7y+hTJI0nbqPfO2HtEbnDGrntVsvNwDzrQdS wTCrnK8xEoiOxlEKYh0DSJNw8YboWtB6rTbGzNYjaT5oxXUxVloohSIBGYHKcckx0QzX AGKJN4UJtB8k8Nu1ZgeAEmBH8BFeYp79dcV+k=
- In-reply-to: <AANLkTikuzpSBtnCS0fWxQFDerbPX=pMqnR2JS15QTr25@mail.gmail.com>
- 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: <dc64f3246d1cac04e3dfa582a9e1ad16.squirrel@gameframe.net> <AANLkTikuzpSBtnCS0fWxQFDerbPX=pMqnR2JS15QTr25@mail.gmail.com>
2011/3/9 Jérémie Roquet <arkanosis@xxxxxxxxx>:
> zle -N foo
> bindkey ' ' foo
Or
bindkey -s ' ' 'foo\n'
…if you just want to emulate an user input.
--
Jérémie
Messages sorted by:
Reverse Date,
Date,
Thread,
Author