From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26826 invoked from network); 17 Jul 2004 18:59:33 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Jul 2004 18:59:33 -0000 Received: (qmail 79699 invoked from network); 17 Jul 2004 18:59:28 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Jul 2004 18:59:28 -0000 Received: (qmail 21258 invoked by alias); 17 Jul 2004 18:58:31 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7709 Received: (qmail 21248 invoked from network); 17 Jul 2004 18:58:31 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 17 Jul 2004 18:58:31 -0000 Received: (qmail 76730 invoked from network); 17 Jul 2004 18:56:49 -0000 Received: from unknown (HELO moonbase.zanshin.com) (167.160.213.139) by a.mx.sunsite.dk with SMTP; 17 Jul 2004 18:56:46 -0000 Received: from toltec.zanshin.com (toltec.zanshin.com [64.84.47.166]) by moonbase.zanshin.com (8.12.11/8.12.11) with ESMTP id i6HIujdp015383 for ; Sat, 17 Jul 2004 11:56:45 -0700 Date: Sat, 17 Jul 2004 11:56:45 -0700 (PDT) From: Bart Schaefer Reply-To: zsh-users@sunsite.dk To: zsh-users@sunsite.dk Subject: Re: zshzle: aborting history search In-Reply-To: <20040717184743.GA9358@blorf.net> Message-ID: References: <7b9.40f9587d.a8ae6@georgn.fqdn.th-h.de> <20040717184743.GA9358@blorf.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On Sat, 17 Jul 2004, Wayne Davison wrote: > On Sat, Jul 17, 2004 at 04:49:01PM -0000, Georg Neis wrote: > > How can I abort history-incremental-search-backward *without* losing > > the text that I'm searching for (useful when zsh says "failing > > bck-i-search")? > > If you want to go back to where you started your search, just press > Ctrl-G. That doesn't work do what he wants; send-break discards the search text, so, e.g., you can't resume searching for the same thing again later by pressing the history-incremental-search-backward binding twice in a row. > If you want to stay on the current line, execute almost any > editor-movement command, such as Ctrl-E, Ctrl-B, Right-Arrow, etc. This on the other hand does have the effect of saving the search text. So the closest you can get to having both is to invoke end-of-history; but that's not normally bound to anything, so you have to create a binding for it first.