From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1364 invoked from network); 30 Sep 1999 02:11:29 -0000 Received: from mail2.primenet.com.au (HELO primenet.com.au) (?7FY8vYxSnF+sn5zLWCNfh826IgDGHwKQ?@203.24.36.6) by ns1.primenet.com.au with SMTP; 30 Sep 1999 02:11:29 -0000 Received: (qmail 13611 invoked from network); 29 Sep 1999 20:23:59 -0000 Received: from sunsite.auc.dk (130.225.51.30) by mail2.primenet.com.au with SMTP; 29 Sep 1999 20:23:59 -0000 Received: (qmail 23509 invoked by alias); 29 Sep 1999 20:23:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8104 Received: (qmail 23502 invoked from network); 29 Sep 1999 20:23:39 -0000 Date: Wed, 29 Sep 1999 21:23:38 +0100 From: Adam Spiers To: zsh-workers@sunsite.auc.dk Subject: Re: Autocompletion ala windows-esque Message-ID: <19990929212338.C16175@thelonious.new.ox.ac.uk> Reply-To: Adam Spiers Mail-Followup-To: zsh-workers@sunsite.auc.dk References: <19990929191705Z13390-21686+194@scapa.cs.ualberta.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <19990929191705Z13390-21686+194@scapa.cs.ualberta.ca> X-URL: http://www.new.ox.ac.uk/~adam/ X-OS: Linux 2.2.9 i686 Benjamin Korvemaker (benjamin@cs.ualberta.ca) wrote: > Forgive me now for this horrible thought. > > I'm at that point in my life where I need a shell that fills in the > completion automagically and changes it as necessary the more I type > (just like that horrible feature that MS products tend to have). I'm > crazy, I admit it. To make life easier in the future, I'm planning on > putting potential completions into a list or array (of the zsh variety). > > Before I begin the nastiness, has someone already done this? If I understand you correctly, then yes, there's a function called incremental-complete-word, which has this near its start: # This allows incremental completion of a word. After starting this # command, a list of completion choices can be shown after every character # you type, which you can delete with ^h or DEL. RET will accept the # completion so far. You can hit TAB to do normal completion, ^g to # abort back to the state when you started, and ^d to list the matches. although it has a few things which I think could be improved upon (this is next on my to-do list, in fact :-) Presumably you'd want to tell it complete words from the history. I don't know when it first appeared, but you're best off using it with the latest development versions: 3.1.6 and later.