Fuzzy Finder implemented in Ruby. Matches partial string entries from a list of strings. Works similar to fuzzy finder in SublimeText, Atom and Vim's Ctrl-P plugin.
See Amjith Ramanujam's blog post describing the algorithm: http://blog.amjith.com/fuzzyfinder-in-10-lines-of-python
Add this line to your application's Gemfile:
# Add to your Gemfile
gem 'fuzzyfinder'
# or install manually
gem install fuzzyfinder
2.2.1 :001 > require 'fuzzy/finder'
=> true
2.2.1 :002 > Fuzzy::Finder.find('user', ['api_user.doc', 'user_doc.doc', 'django_migrations.py', 'migrations.py'])
=> ["user_doc.doc", "api_user.doc"]
2.2.1 :003 > Fuzzy::Finder.find('djm', ['api_user.doc', 'user_doc.doc', 'django_migrations.py', 'migrations.py'])
=> ["django_migrations.py"]
2.2.1 :004 > Fuzzy::Finder.find('mig', ['api_user.doc', 'user_doc.doc', 'django_migrations.py', 'migrations.py'])
=> ["migrations.py", "django_migrations.py"]
- Fork it ( https://github.com/mdsrosa/fuzzyfinder/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Amjith Ramanujam's implementation
Thank you Amjith.