unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* eshell/pcomplete: substring completion
@ 2004-08-24 15:44 Kai Grossjohann
  0 siblings, 0 replies; only message in thread
From: Kai Grossjohann @ 2004-08-24 15:44 UTC (permalink / raw)


Is it possible to get zsh-style substring completion in
eshell/pcomplete?

zsh substring completion works like this: Say the user typed "xy" as a
filename and then hit TAB.  Then zsh looks to see if any of the
filenames starts with "xy".  If there are any, normal completion is
performed.

The interesting case, the one that I'm talking about, is that there is
no filename starting "xy".  Then zsh looks for filenames where "xy" is
a substring.  It offers all those as the list of completions, and it
also moves point to before the substring entered.

Substring completion works within directories, that is, typing
foo/bar/xy and then TAB means that the directory foo/bar is taken
as-is, and "xy" is substring-completed within that directory.

Kai

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-24 15:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-24 15:44 eshell/pcomplete: substring completion Kai Grossjohann

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 read-only IMAP folder(s) and NNTP newsgroup(s).