From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5578 invoked from network); 20 Jan 2003 12:17:52 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 20 Jan 2003 12:17:52 -0000 Received: (qmail 10105 invoked by alias); 20 Jan 2003 12:17:31 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5768 Received: (qmail 10092 invoked from network); 20 Jan 2003 12:17:29 -0000 X-MessageWall-Score: 0 (sunsite.dk) From: Borzenkov Andrey To: "'Le Wang'" , "'Zsh users list'" Subject: RE: more interactive menu completion Date: Mon, 20 Jan 2003 15:17:22 +0300 Message-ID: <6134254DE87BD411908B00A0C99B044F03A0B5E6@mowd019a.mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal In-Reply-To: <20030119233436.51078.qmail@web12305.mail.yahoo.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 > > I'm using menu completion now, and I absolutely love > it. However I was just thinking that all of my > keyboard keys are unmapped during menu completion, so > wouldn't it be nice if I could press 'abc', and have > the selection go to the first file starting with an > 'abc'? This is very much like the way modern file > managers work (e.g. Explorer, Konqueror, etc), except > they only match the first letter. > > It would be great if this kind of widget can be > refined to do substring matching as well. Does this > kind of completion scheme currently exist for Zsh? > There is incremental-complete-word widget that does what you want. I do not know if it is widely used, so your comments would be welcome. incremental-complete-word 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. Pressing return accepts the completion so far and returns you to normal editing (that is, the command line is _not_ immediately executed). You can hit TAB to do normal completion, ^G to abort back to the state when you started, and ^D to list the matches. This works only with the new function based completion system. bindkey '^Xi' incremental-complete-word You'll need fpath=($fpath /path/to/zsh/functions/Zle) autoload incremental-complete-word (unless done already). It did not work for me after quick test :( -andrey