zsh-users
 help / color / mirror / code / Atom feed
From: Borzenkov Andrey <Andrey.Borzenkov@siemens.com>
To: "'Le Wang'" <lewang@yahoo.com>,
	"'Zsh users list'" <zsh-users@sunsite.dk>
Subject: RE: more interactive menu completion
Date: Mon, 20 Jan 2003 15:17:22 +0300	[thread overview]
Message-ID: <6134254DE87BD411908B00A0C99B044F03A0B5E6@mowd019a.mow.siemens.ru> (raw)
In-Reply-To: <20030119233436.51078.qmail@web12305.mail.yahoo.com>

> 
> 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


  reply	other threads:[~2003-01-20 12:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-19 23:34 Le Wang
2003-01-20 12:17 ` Borzenkov Andrey [this message]
2003-01-20 14:23   ` Le Wang
2003-01-20 14:34     ` Peter Stephenson
2003-01-20 14:34     ` passing arrays Le Wang
2003-01-20 14:51   ` more interactive menu completion Sven Wischnowsky
2003-01-20 15:13     ` Borzenkov Andrey
2003-01-20 16:06       ` Peter Stephenson
2003-01-21  1:58     ` Le Wang
2003-01-21  6:17       ` Borzenkov Andrey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6134254DE87BD411908B00A0C99B044F03A0B5E6@mowd019a.mow.siemens.ru \
    --to=andrey.borzenkov@siemens.com \
    --cc=lewang@yahoo.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).