From: Eric.D.Friedman@wellsfargo.com
To: zsh-users@sunsite.dk
Subject: zsh implementation question
Date: Mon, 4 Aug 2003 09:47:52 -0700 [thread overview]
Message-ID: <4FE9AD0A3D28CE42A163544072FE86760265F089@msgsw55cacah01.wellsfargo.com> (raw)
Would one of the zsh developers kindly point me to the source code that zsh
uses for partial string matching on the command line? Is it implemented as
a brute force search over an array of possible values, or does zsh use
something fancier like patricia tries to determine that "appl" matches
{"application", "apple", "applied"} from the set {"application",
"apothecary", "apple", "applied", "moose"} ?
I'm writing a GUI in which I'd like to offer similar completion capabilities
(also found in many web browsers). The set of possible matches will always
be pretty small (smaller than what zsh deals with), so it seemed like this
was a good place to look for a reasonable implementation/inspiration.
Thanks,
Eric
next reply other threads:[~2003-08-04 18:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-04 16:47 Eric.D.Friedman [this message]
2003-08-04 18:31 ` Peter Stephenson
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=4FE9AD0A3D28CE42A163544072FE86760265F089@msgsw55cacah01.wellsfargo.com \
--to=eric.d.friedman@wellsfargo.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).