From: "Ole Jørgen Brønner" <olejorgenb@yahoo.no>
To: zsh-users@zsh.org
Subject: $KEYMAP in command, isearch and menuselect
Date: Mon, 09 Aug 2010 19:25:41 +0200 [thread overview]
Message-ID: <op.vg6lcz2hvocxtk@tabole> (raw)
I was trying to make a zle widget to display the currently active bindings when I noticed that KEYMAP is set to 'main' in widgets run from command, isearch and menuselect.
show-keymap() {
{ print "$KEYMAP:\n"; bindkey -M $KEYMAP } | less
}
zle -N show-keymap
bindkey -M vicmd "^Ki" show-keymap
bindkey -M main "^Ki" show-keymap
bindkey -M command "^Ki" show-keymap
bindkey -M menuselect "^Ki" show-keymap
bindkey -M isearch "^Ki" show-keymap
In 'command' the binding doesn't work. (since you only can bind a few widgets in 'command')
In vicmd and main it works as expected
In isearch and menuselect the 'main' keymap is displayed and the search/completion is aborted on the current entry.
Poking in the code for 'executenamedcommand', it seems there is something called a 'localkeymap' and this is not exposed to zle widgets.
Any solution for this?
- Ole Jørgen Brønner
next reply other threads:[~2010-08-09 17:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-09 17:25 Ole Jørgen Brønner [this message]
2010-08-23 9:36 ` Peter Stephenson
2010-08-23 10:39 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.vg6lcz2hvocxtk@tabole \
--to=olejorgenb@yahoo.no \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).