zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: menuselect: Different keymap for interactive mode
Date: Sat, 22 Jan 2011 11:25:09 -0800	[thread overview]
Message-ID: <110122112509.ZM32715@torch.brasslantern.com> (raw)
In-Reply-To: <20110122035548.GB18277@andrew.cmu.edu>

On Jan 21, 10:55pm, gi1242+zsh@gmail.com wrote:
}
} Is it possible for me to navigate menus with VI keys *AND* disable this
} when I'm in interactive mode?

Unfortunately, no.  The special keymaps like menuselect and isearch are
not implemented like real keymaps that invoke widgets.  Instead they
are implemented as simple hardwired indirect lookups that happen to use
the set of builtin widget names as the indirection layer between the
typed key and the action, so that bindings can be faked using the same
code that implements real keymaps.

There's no "alternate keymap" available to switch to in this situation;
most of the completion code, including the menu system, was written by
inveterate emacs-mode users, and doubling the work to support vi-like
interaction as well was impractical at the time (and has yet to become
practical, given the trouble we have finding C-coder volunteers for
shell work in general).


  reply	other threads:[~2011-01-22 19:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-22  3:55 gi1242+zsh
2011-01-22 19:25 ` Bart Schaefer [this message]
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=110122112509.ZM32715@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).