From: "Drew Adams" <drew.adams@oracle.com>
To: "'ve macs'" <"ve macs a gmail"@oracle.com>, <help-gnu-emacs@gnu.org>
Subject: RE: textmate like fuzzy matching file completion?
Date: Sun, 24 Feb 2008 19:18:36 -0800 [thread overview]
Message-ID: <003f01c8775d$1c9af3c0$0600a8c0@us.oracle.com> (raw)
In-Reply-To: <47c14bff$0$17335$4c368faf@roadrunner.com>
> ido-enable-flex-matching is great. However, it does not seem
> to match filenames in "projects". Is there such a
> functionality in ido-mode or in some other mode?
>
> To be more clear about the functionality I'm talking about,
> suppose you have a project rooted in the "project" directory:
>
> project/
> |
> +--- subdir1/
> | |
> | blah.txt
> |
> |--- subdir2/
> | |
> | blah.txt
> |
> |--- subdir3/
> |
> blah.txt
>
> In textmate, if you are currently working with a file in any
> directory in the project, matches will occur on any file in
> that project. So if you are currently working on the blah.txt
> file in subdir1/, typing in 'blah' will bring up as choices
> the blah file in subdir2/ in addition to the one in subdir3/.
1. See command `icicle-locate-file'.
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_File-Name_Input
And if your project has files scattered all over your file system, instead
of under a single directory, you can define the project as containing just
those files.
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Support_for_Projects
2. Wrt your original query: Icicles has the same thing as Ido's "flex"
matching and TextMate's unnamed fuzzy file-name matching. I call it
"scatter" matching, because your input characters can be scattered (but kept
in order) to match a completion candidate. You can use it in Icicles to
complete any type of input, including file names.
Icicles also has a more sophisticated kind of fuzzy matching, provided by
Simon Marshall's library fuzzy-match.el. It is that kind of fuzzy matching
that is not available for file-name completion.
You can change the matching method at any time by hitting a key from the
minibuffer.
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Fuzzy_Completion
HTH.
prev parent reply other threads:[~2008-02-25 3:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-23 22:09 textmate like fuzzy matching file completion? Unknown
2008-02-24 3:19 ` William Xu
[not found] ` <mailman.7841.1203823169.18990.help-gnu-emacs@gnu.org>
2008-02-24 10:50 ` Unknown
2008-02-25 2:45 ` William Xu
2008-02-25 3:18 ` Drew Adams [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003f01c8775d$1c9af3c0$0600a8c0@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc="ve macs a gmail"@oracle.com \
--cc=help-gnu-emacs@gnu.org \
/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.
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).