Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bindkey to INS
- X-seq: zsh-users 9445
- From: Konstantin Sobolev <kos@xxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: bindkey to INS
- Date: Sat, 24 Sep 2005 16:01:11 +0400
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <1050924020158.ZM13823@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200509240032.00439.kos@xxxxxxxxxxxxxxxxx> <1050924020158.ZM13823@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: kos@xxxxxxxxxxxxxxxxx
Hi Bart Schaefer,
On Sat, Sep 24, 2005 at 02:01:58AM +0000 you wrote:
> On Sep 24, 12:32am, Konstantin Sobolev wrote:
> }
> } Is it possible to bind an INS key to accept-and-menu-complete?
> } All my attempts like
> } bindkey -M menuselect "${key[Insert]}" accept-and-menu-complete
> } doesn't work, pressing Insert just prints a "~".
>
> This appears to be a bug with menu-selection, not with bindkey. I
> can't make any key binding of more than 3 characters work with the
> menuselect keymap. I've tried as far back as zsh-4.0.6, so it is
> not something new with UTF-8 support or the like.
thanks for clarification. Will use "," for now :)
> } Also, is it possible to bind a couple of commands to the same key, like
> } bindkey "^Z" "kill-line; accept-line"?
>
> You need to create a widget.
>
> function accept-leftward {
> zle kill-line
> zle accept-line
> }
> zle -N accept-leftward
> bindkey \^Z accept-leftward
thanks, it works
--
/KoS
* Water + Malt + Hops + Yeast = Satisfaction
Messages sorted by:
Reverse Date,
Date,
Thread,
Author