From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26469 invoked from network); 4 Nov 2005 14:44:38 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Nov 2005 14:44:38 -0000 Received: (qmail 66034 invoked from network); 4 Nov 2005 14:44:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Nov 2005 14:44:30 -0000 Received: (qmail 566 invoked by alias); 4 Nov 2005 14:44:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9630 Received: (qmail 515 invoked from network); 4 Nov 2005 14:44:18 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Nov 2005 14:44:18 -0000 Received: (qmail 63601 invoked from network); 4 Nov 2005 14:44:18 -0000 Received: from gallium.webpack.hosteurope.de (217.115.142.119) by a.mx.sunsite.dk with SMTP; 4 Nov 2005 14:44:15 -0000 Received: by gallium.webpack.hosteurope.de running Exim 4.51 using esmtpa from port-195-158-171-19.dynamic.qsc.de ([195.158.171.19] helo=mail.hpfsc.de) id 1EY2nf-0002BN-2I; Fri, 04 Nov 2005 15:44:15 +0100 Received: by mail.hpfsc.de (Postfix, from userid 1000) id 2A8EAB8532; Fri, 4 Nov 2005 15:43:24 +0100 (CET) Date: Fri, 4 Nov 2005 15:43:24 +0100 From: Sebastian Stein To: zsh-users@sunsite.dk Subject: Re: Listing keybindings Message-ID: <20051104144324.GA3168@hpfsc.de> References: <20051104112314.GB4830@hpfsc.de> <20051104113306.GC4830@hpfsc.de> <20051104115558.GB481@DervishD> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051104115558.GB481@DervishD> User-Agent: Mutt/1.4.2.1i 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=AWL,BAYES_00 autolearn=ham version=3.0.4 DervishD [051104 13:06]: > > I read in one tutorial, that I can insert a command like "xfig" and press > > ESC+? to call the alias which-command. In the turorial it is said to be the > > default behaviour. However, I can't find this keybinding. > > But, according with the info manual of version 4.2.5, > which-command exists as a widget, and by default is bound to ESC-? > > Try binding it to another combination just to test. > > And oh, BTW, you have to have a shell function, alias or command > called "which-command", of course, because the widget calls it (in > fact, it does exactly that, calls "which-command CMD", where "CMD" is > the current command in the editor buffer. The problem is, as the other poster said, that I'm using the vi keymap. There this keybinding is not defined. I added now the following line to my .zshrc and it works great: bindkey '^P' which-command Thanks for your help, Sebastian