From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19163 invoked from network); 11 Feb 2005 00:10:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Feb 2005 00:10:17 -0000 Received: (qmail 80915 invoked from network); 11 Feb 2005 00:10:05 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Feb 2005 00:10:05 -0000 Received: (qmail 13478 invoked by alias); 11 Feb 2005 00:09:48 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8483 Received: (qmail 13456 invoked from network); 11 Feb 2005 00:09:47 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Feb 2005 00:09:47 -0000 Received: (qmail 77958 invoked from network); 11 Feb 2005 00:09:47 -0000 Received: from vinc17.net4.nerim.net (HELO ay.vinc17.org) (62.212.121.106) by a.mx.sunsite.dk with SMTP; 11 Feb 2005 00:09:42 -0000 Received: from lefevre by ay.vinc17.org with local (Exim 4.34) id 1CzONS-00062u-08; Fri, 11 Feb 2005 01:09:42 +0100 Date: Fri, 11 Feb 2005 01:09:41 +0100 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Re: Searching for "^" in the history Message-ID: <20050211000941.GM30487@ay.vinc17.org> Mail-Followup-To: zsh-users@sunsite.dk References: <20050210141644.GA30487@ay.vinc17.org> <20050210180800.GA1912@blorf.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050210180800.GA1912@blorf.net> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.7i X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.3 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.3 On 2005-02-10 10:08:00 -0800, Wayne Davison wrote: > On Thu, Feb 10, 2005 at 03:16:44PM +0100, Vincent Lefevre wrote: > > How can one search for the character "^" in the history (with > > history-incremental-search-backward)? > > The only way is to not put it as the first character in the search > string -- i.e. to search for the character prior to the "^" as well > as the "^" itself. The problem is that I don't know this character. > Yeah, that means that there is no way to search for just a "^" in > zsh's current code. In the future it might be nice to upgrade the > incremental search to a regex-understanding search like vim uses (it > treats invalid regex elements as literal strings, so you can eaily > search for something like "[" or "$" without having to backslash > it). Or could zsh be modified so that searching for ^^ (at the beginning of the search string) is like searching for the ^ character? I doubt that searching for the ^ character as the first character of a command (as ^^ currently does) is really useful. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA