From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5386 invoked from network); 4 Jul 2002 11:45:27 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 4 Jul 2002 11:45:27 -0000 Received: (qmail 4402 invoked by alias); 4 Jul 2002 11:45:10 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5142 Received: (qmail 4387 invoked from network); 4 Jul 2002 11:45:09 -0000 Date: Thu, 4 Jul 2002 12:45:07 +0100 From: Adam Spiers To: zsh users mailing list Subject: substring version of history-complete-word? Message-ID: <20020704124507.A32123@corelli.new.ox.ac.uk> Reply-To: Adam Spiers Mail-Followup-To: zsh users mailing list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-URL: http://tigerpig.org/ X-OS: RedHat Linux Sender: "Adam Spiers,,07775562717,020 88 30 30 35" X-Virus-Scanned-Using: AMaViS perl-11 and Sophos Antivirus Hi all, Is there any way of performing completion of words from history based on a substring rather than a prefix? For example, if the word `/usr/src/linux-2.4/Documentation/networking/netdevices.txt' is in the history, I would like to be able to retrieve it by referring to it as `Doc' or `2.4'. Ideally, it would be retrievable incrementally in the same way as C-r fetches whole lines. Incidentally, as some of you may have already guessed, the inspiration for this is iswitchb buffer-switching in emacs. Adam