From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14504 invoked from network); 31 Jul 2006 15:02:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,SUBJ_HAS_UNIQ_ID autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 31 Jul 2006 15:02:09 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 91639 invoked from network); 31 Jul 2006 15:02:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 31 Jul 2006 15:02:01 -0000 Received: (qmail 29365 invoked by alias); 31 Jul 2006 15:01:52 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10568 Received: (qmail 29356 invoked from network); 31 Jul 2006 15:01:51 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 31 Jul 2006 15:01:51 -0000 Received: (qmail 90480 invoked from network); 31 Jul 2006 15:01:51 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 31 Jul 2006 15:01:49 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly19c.srv.mailcontrol.com (MailControl) with ESMTP id k6VEqLch014757 for ; Mon, 31 Jul 2006 16:01:34 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Mon, 31 Jul 2006 15:55:35 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.4/8.13.4) with ESMTP id k6VEtXtH025295 for ; Mon, 31 Jul 2006 15:55:33 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.4/8.13.4/Submit) with ESMTP id k6VEtXLK025292 for ; Mon, 31 Jul 2006 15:55:33 +0100 Message-Id: <200607311455.k6VEtXLK025292@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users@sunsite.dk (Zsh users list) Subject: Re: Menu-driven version of history-beginning-search-backward In-reply-to: <20060731143834.GA27832@spiegl.de> References: <200607261638.k6QGcE7E010498@news01.csr.com> <200607271653.k6RGrCIk003550@news01.csr.com> <20060731143834.GA27832@spiegl.de> Date: Mon, 31 Jul 2006 15:55:33 +0100 From: Peter Stephenson X-OriginalArrivalTime: 31 Jul 2006 14:55:35.0693 (UTC) FILETIME=[610A8BD0:01C6B4B1] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-00-10 (www.mailcontrol.com) on 10.67.0.129 Andy Spiegl wrote: > Is it very hard to make it use a menu where you can move around the > possible completions with the cursor keys, instead of having to type the > corresponding number? I mean, just like the "normal" completion menu. Unfortunately, yes. Bart's version of menu-driven history (which he posted a pointer to) does this because it uses a completion widget; but using a completion widget gives you less flexibility about altering the command line, so it can't fully emulate the "history-beginning-..." behaviour. As I briefly mentioned to zsh-workers, there is nothing so sophisticated as an API to use the menu selection code for completion from outside it. It would be nice to have, though. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php