From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10190 invoked from network); 30 Sep 1999 23:50:41 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Sep 1999 23:50:41 -0000 Received: (qmail 17643 invoked by alias); 30 Sep 1999 23:50:24 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2641 Received: (qmail 17633 invoked from network); 30 Sep 1999 23:50:23 -0000 Subject: Re: various completion queries In-Reply-To: From Peter Stephenson at "Sep 30, 1999 11:05:14 am" From: Benjamin Korvemaker To: zsh-users@sunsite.auc.dk Date: Thu, 30 Sep 1999 17:50:03 -0600 (MDT) X-Mailer: ELM [version 2.4ME+ PL53 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <19990930235004Z13999-12850+224@scapa.cs.ualberta.ca> Ooooh.. I'm *SO* glad I asked before hacking this time. I'm much happier leaving the shell internals alone. The big questions now: 1) How can I have incremental-word-complete ON by default (ie. it's on when I start typing) 2) When there are too many completions, and a prompt like zsh: do you wish to see all 102 possibilities? shows up, can I simply get it to: a) not prompt, b) not list, and c) maybe say "**lotsa completions - not listing**" Thanks for the help! Ben Peter Stephenson said: [...] > > Benjamin Korvemaker (benjamin@cs.ualberta.ca) wrote: > > > 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). > > > > If I understand you correctly, then yes, there's a function called > > incremental-complete-word > > Yes, that's the place to look first. It could probably do with some > developing --- it's getting quite complicated, almost like an editor within > the editor. > > > 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. > > You'll certainly need 3.1.6; although it's not actually a new completion > widget, and should interact happily with old compctl-style completion (I > haven't tried), it still needs editor features from 3.1.6 or later. > > One remaining task might be to allow it to combine with specific completion > widgets, not just ordinary contextual completion. Actually, that shouldn't > be so hard: replace the call to `zle complete-word' with something more > general which tests if a parameter with an alternative command was set by a > wrapper. The trick is to make sure such commands don't use menu > behaviour, which will confuse it. -- Benjamin Korvemaker benjamin@cs.ualberta.ca I was born in Nicaragua and I felt there wasn't enough political instability in my life. So I moved to Quebec. - Marta Chaves