From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12385 invoked from network); 30 Sep 2009 16:52:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,TRACKER_ID autolearn=no version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 30 Sep 2009 16:52:26 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 33711 invoked from network); 30 Sep 2009 16:52:24 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Sep 2009 16:52:24 -0000 Received: (qmail 1022 invoked by alias); 30 Sep 2009 16:52:19 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27299 Received: (qmail 1004 invoked from network); 30 Sep 2009 16:52:19 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 30 Sep 2009 16:52:19 -0000 Received: from web65614.mail.ac4.yahoo.com (web65614.mail.ac4.yahoo.com [76.13.9.82]) by bifrost.dotsrc.org (Postfix) with SMTP id 665EC801E2BF for ; Wed, 30 Sep 2009 18:52:11 +0200 (CEST) Received: (qmail 25685 invoked by uid 60001); 30 Sep 2009 16:52:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1254329530; bh=/QktGc64229tW774p+Gtagr0zMAPGZsJbPnxpylfMIY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=dBowJcg1q+9iWWWM0oHSI7qEiZyH4G3e35m/Bs0OqmYp0umgKvhLKOWMqnwy5FuyZnoC8PoyxppkAkV2y7ZJiYYS/Cmz3nOlY43WWXZorpKDfdTNylk3lcSvKCsTWvXfaWQ5jQTcx2IE83JRt8asO7LD9wcRlT1xpGFZAvjtGyk= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=JtuKDkKFjE7Nw90Y3Oo1gHSLV/expD4DLztbbmMtFhaVzOVboHw/X4GVxJmFpGWXvn2s4vj2erArQEe02JuDjMl5zCvLeCBv6AAVrObDtj3INh7LiHAt0GqsOoxl6QjaObb2vpYvZYif9UNLhyw29UdACtfzeOnmG3vrdeHb+Xk=; Message-ID: <140222.25175.qm@web65614.mail.ac4.yahoo.com> X-YMail-OSG: NM.PYx4VM1noZAF_lqJiSkpzKEWm.cgRb7qf9n8fiUNPvrKODLJGnHeDuqy888uC_q5mazMkCHZQuZltNQA4a9yob1NmugCEn1gYMrWAH3nKrwK1iTSZsGBBq99LMdWQ9wu04uP6f4H4_R1GCluccPyeRzDRsxNYj0Q_BCOqzgfzlALkbHC5rsnxNrxyiiEn1zIkAHXPAL7kf4UJWDtN0dLujN9XYSOb3t5U.qyhirIdSBLH7jCYjtWTlicOLgWo0c48eLI7zTRGoM.Buf0zNFgX9D8pFsq1riCFEdvRUv5OEAyaDR28FYnYPh.8IKPoyic1t57VyMOM581prUuN94Hiu_.dLnuWx5fF31FEd.uDDnDHS2DY2iW3D_d4DNAVP4W7F_NNGuE.ZwHv0N1b Received: from [77.251.55.98] by web65614.mail.ac4.yahoo.com via HTTP; Wed, 30 Sep 2009 09:52:10 PDT X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.347.3 Date: Wed, 30 Sep 2009 09:52:10 -0700 (PDT) From: Guido van Steen Subject: matlab-history-beginning-search-backward To: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.94.2/9856/Wed Sep 30 14:27:30 2009 on bifrost X-Virus-Status: Clean Dear list, I use the "history-beginning-search-backward" widget quite frequently. It searches for commands in the command history that START WITH "LBUFFER". I like this behaviour. It is simple and it keeps my attention fixed on one line. What I don't like about the widget is that ONLY searches for commands that start with "LBUFFER". Instead I would prefer a similar widget that searches for commands in the command history, in such a way that "LBUFFER" is a SUBSTRING of these commands. (This is the default history management in MATLAB and FISH.) I know there is the "history-incremental-search-backward" widget, which is bound to "^r" by default. This widget does more-or-less what I want. However, it shows two prompts, which I don't seem to like that much. Moreover, if requires the userto invoke it first and then start typing what he looks for. Usually I seem to start typing something and then find out that I do not remember the command that I want to type anymore. So I would like to involve the widget after I type, as can be done with the "history-beginning-search-backward" widget. So, my question is: Has anyone ever come across such a "matlab-history-beginning-search-backward" kind of widget? Or, if not, can anyone provide me with pointers on how to write one by myself. I have to add that I am not very fluent at C. I hope I phrased my question clear enough. Cheers! Guido