Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bindkey to INS
- X-seq: zsh-users 9442
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: kos@xxxxxxxxxxxxxxxxx, zsh-users@xxxxxxxxxx
- Subject: Re: bindkey to INS
- Date: Sat, 24 Sep 2005 02:01:58 +0000
- In-reply-to: <200509240032.00439.kos@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200509240032.00439.kos@xxxxxxxxxxxxxxxxx>
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.
} 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author