This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 603ed333c63a6b4b51fdf5c3c9dea405b2ddba68
tree 4d4f53fd6d3199b415d2fb6350554992b6ee14b7
parent 9cace46266b035b6641adbfd0d6636ade7cf1cac
tree 4d4f53fd6d3199b415d2fb6350554992b6ee14b7
parent 9cace46266b035b6641adbfd0d6636ade7cf1cac
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Oct 10 22:55:52 -0700 2008 | |
| |
LICENSE | Thu Oct 09 13:43:01 -0700 2008 | |
| |
Manifest | Thu Oct 09 13:43:01 -0700 2008 | |
| |
README.rdoc | Thu Oct 09 13:43:01 -0700 2008 | |
| |
Rakefile | Thu Oct 09 13:43:01 -0700 2008 | |
| |
fuzzy_file_finder.gemspec | Tue Dec 02 15:30:00 -0800 2008 | |
| |
lib/ | Tue Feb 10 10:31:47 -0800 2009 | |
| |
test/ | Wed Dec 03 15:48:15 -0800 2008 |
README.rdoc
FuzzyFileFinder
FuzzyFileFinder is a (somewhat improved) implementation of TextMate’s "cmd-T" functionality. It allows you to search for a file by specifying a pattern of characters that appear in that file’s name. Unlike TextMate, FuzzyFileFinder also lets you match against the file’s directory, so you can more easily scope your search.
FEATURES:
- Quickly search directory trees for files
- Avoids accidentally scanning huge directories by implementing a ceiling (default 10,000 entries)
- Simple highlighting of matches to discover how a pattern matched
SYNOPSIS:
In a nutshell:
require 'fuzzy_file_finder'
finder = FuzzyFileFinder.new
finder.search "app/blogcon" do |match|
puts "[%5d] %s" % [match[:score] * 10000, match[:highlighted_path]]
end
matches = finder.find("app/blogcon").sort_by { |m| [-m[:score], m[:path] }
matches.each do |match|
puts "[%5d] %s" % [match[:score] * 10000, match[:highlighted_path]]
end
See FuzzyFileFinder for more documentation, and links to further information.
INSTALL:
- gem install —source=gems.github.com jamis-fuzzy_file_finder
LICENSE:
All code, documentation, and related materials in this project are released into the PUBLIC DOMAIN. Usage, modification, and distribution are allowed without restriction.








