From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11063 invoked from network); 24 Sep 2005 12:01:27 -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 12:01:27 -0000 Received: (qmail 58348 invoked from network); 24 Sep 2005 12:01:20 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Sep 2005 12:01:20 -0000 Received: (qmail 10769 invoked by alias); 24 Sep 2005 12:01:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9445 Received: (qmail 10760 invoked from network); 24 Sep 2005 12:01:12 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 24 Sep 2005 12:01:12 -0000 Received: (qmail 57245 invoked from network); 24 Sep 2005 12:01:12 -0000 Received: from batman.mns.ru (80.70.224.14) by a.mx.sunsite.dk with SMTP; 24 Sep 2005 12:01:11 -0000 Received: from kos.local ([10.1.1.76]) by batman.mns.ru with esmtp; Sat, 24 Sep 2005 16:01:08 +0400 id 00001380.43354006.00000B31 Received: by kos.local (Postfix, from userid 1000) id 05791638FA; Sat, 24 Sep 2005 16:01:11 +0400 (MSD) Date: Sat, 24 Sep 2005 16:01:11 +0400 From: Konstantin Sobolev To: Bart Schaefer Cc: zsh-users@sunsite.dk Subject: Re: bindkey to INS Message-ID: <20050924120111.GA16463@kos.local> Reply-To: kos@supportwizard.com References: <200509240032.00439.kos@supportwizard.com> <1050924020158.ZM13823@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1050924020158.ZM13823@candle.brasslantern.com> X-PGP-Key: http://www.supportwizard.com/kos.asc User-Agent: mutt-ng/devel (Linux) 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.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 Hi Bart Schaefer, On Sat, Sep 24, 2005 at 02:01:58AM +0000 you wrote: > 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. thanks for clarification. Will use "," for now :) > } 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 thanks, it works -- /KoS * Water + Malt + Hops + Yeast = Satisfaction