From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11289 invoked from network); 24 Sep 2005 02:02:19 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 24 Sep 2005 02:02:19 -0000 Received: (qmail 77523 invoked from network); 24 Sep 2005 02:02:13 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Sep 2005 02:02:13 -0000 Received: (qmail 7322 invoked by alias); 24 Sep 2005 02:02:05 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9442 Received: (qmail 7305 invoked from network); 24 Sep 2005 02:02:04 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 24 Sep 2005 02:02:04 -0000 Received: (qmail 76368 invoked from network); 24 Sep 2005 02:02:04 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 24 Sep 2005 02:02:01 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0INA00168TNCFHU0@vms046.mailsrvcs.net> for zsh-users@sunsite.dk; Fri, 23 Sep 2005 21:02:01 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j8O21xXB013825; Fri, 23 Sep 2005 19:01:59 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j8O21xN1013824; Fri, 23 Sep 2005 19:01:59 -0700 Date: Sat, 24 Sep 2005 02:01:58 +0000 From: Bart Schaefer Subject: Re: bindkey to INS In-reply-to: <200509240032.00439.kos@supportwizard.com> To: kos@supportwizard.com, zsh-users@sunsite.dk Message-id: <1050924020158.ZM13823@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <200509240032.00439.kos@supportwizard.com> Comments: In reply to Konstantin Sobolev "bindkey to INS" (Sep 24, 12:32am) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On Sep 24, 12:32am, Konstantin Sobolev wrote: } } Is it possible to bind an INS key to accept-and-menu-complete? } All my attempts like } bindkey -M menuselect "${key[Insert]}" accept-and-menu-complete } doesn't work, pressing Insert just prints a "~". This appears to be a bug with menu-selection, not with bindkey. I can't make any key binding of more than 3 characters work with the menuselect keymap. I've tried as far back as zsh-4.0.6, so it is not something new with UTF-8 support or the like. } Also, is it possible to bind a couple of commands to the same key, like } bindkey "^Z" "kill-line; accept-line"? You need to create a widget. function accept-leftward { zle kill-line zle accept-line } zle -N accept-leftward bindkey \^Z accept-leftward