zsh-users
 help / color / mirror / code / Atom feed
From: "Virginia Mann" <tuanglen@hotmail.com>
To: zsh-users@sunsite.dk
Subject: Re: menu selection and enter key
Date: Fri, 14 Mar 2003 20:45:02 +0000	[thread overview]
Message-ID: <BAY1-F352a3U72w5ApR0003a1c7@hotmail.com> (raw)


When I use the line (thanks Oliver and Andrey!)

bindkey -M menuselect '^M' .accept-line

It causes my enter key to do what I want it to do (execute immediately 
instead of making me hit <enter> twice), so I put it in my .zshrc.

But when I first start up a new zsh, and .zshrc is sourced the first time, 
this line fails with the error: "no such keymap `menuselect'".

If I do some menu selection and then rerun this .zshrc, the bindkey works 
and sets the desired behavior.

It appears that I need to load something before I execute this line. Or 
maybe there's a way to instruct zsh to accept it because the needed bits 
will be loaded later (like a C++ forward declaration).

I have no idea. I don't want to accidentally switch my default keymap to 
menuselect or load more than necessary or cause something to reload 
everytime I source my .zshrc by forcing a manual load or whatever else may 
go wrong. What would be the best approach for use in my .zshrc to get this 
line to work sensibly?

Thanks.



_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


             reply	other threads:[~2003-03-14 20:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-14 20:45 Virginia Mann [this message]
2003-03-17 10:31 ` Peter Stephenson
  -- strict thread matches above, loose matches on Subject: below --
2003-03-09  6:41 Virginia Mann
2003-03-10 13:55 ` Oliver Kiddle
2003-03-11  7:19   ` Borzenkov Andrey

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=BAY1-F352a3U72w5ApR0003a1c7@hotmail.com \
    --to=tuanglen@hotmail.com \
    --cc=zsh-users@sunsite.dk \
    /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).