zsh-workers
 help / color / mirror / code / Atom feed
From: gi1242+zsh@gmail.com
To: zsh-workers@zsh.org
Subject: menuselect: Different keymap for interactive mode
Date: Fri, 21 Jan 2011 22:55:48 -0500	[thread overview]
Message-ID: <20110122035548.GB18277@andrew.cmu.edu> (raw)

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.


             reply	other threads:[~2011-01-22  4:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-22  3:55 gi1242+zsh [this message]
2011-01-22 19:25 ` Bart Schaefer
2011-01-22 22:27   ` gi1242+zsh

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=20110122035548.GB18277@andrew.cmu.edu \
    --to=gi1242+zsh@gmail.com \
    --cc=zsh-workers@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).