Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
menuselect: Different keymap for interactive mode
- X-seq: zsh-workers 28640
- From: gi1242+zsh@xxxxxxxxx
- To: zsh-workers@xxxxxxx
- Subject: menuselect: Different keymap for interactive mode
- Date: Fri, 21 Jan 2011 22:55:48 -0500
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: gi1242+zsh@xxxxxxxxx, zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi All,
Is it possible for me to navigate menus with VI keys *AND* disable this
when I'm in interactive mode?
What I'm looking for is to enter menu completion; navigate using h, j,
k, l. Then, press a key (say '/') to enter interactive mode, and type
some search string. The press Escape to return to navigating the menu
(via h, j, k, l). And press Enter when done.
I can use
bindkey -M menuselect ...
to bind h, j, k, l to the menu movement keys. However, if I do this,
then they retain their meaning when I enter interactive mode! So I can't
use h, j, k, l in a search string.
Is it possible for me to define a new keymap and only use it in
menu completion interactive mode?
Thanks,
GI
--
100 THINGS I'D DO IF I EVER BECAME AN EVIL OVERLORD
69. All midwives will be banned from the realm. All babies will be
delivered at state-approved hospitals. Orphans will be placed in
foster-homes, not abandoned in the woods to be raised by creatures of
the wild.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author