Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
.safe keymap doesn't use builtin widgets?
- X-seq: zsh-workers 38454
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: .safe keymap doesn't use builtin widgets?
- Date: Mon, 09 May 2016 22:17:43 +0000
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Currently, the ".safe" keymap is:
% bindkey -LM .safe
bindkey -R -M .safe "^@"-"^I" self-insert
bindkey -M .safe "^J" accept-line
bindkey -R -M .safe "^K"-"^L" self-insert
bindkey -M .safe "^M" accept-line
bindkey -R -M .safe "^N"-"\M-^?" self-insert
Shouldn't it use the dot-prefixed versions of self-insert and
accept-line, so that for example the following wouldn't lock the user
out:
% self-insert() {}
% zle -N self-insert; bindkey -A .safe main
%
?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author