cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.87k stars 177 forks source link

--fuzzy search entire history with skim #102

Closed dmfay closed 3 years ago

dmfay commented 3 years ago

In #74:

Right now you can put a % in your search to do semi-fuzzy searching, but skim looks very nice. I'd be open to contributions that use it.

Here's a minimal skim implementation, enabled with a --fuzzy option in mcfly search. Near future considerations:

It's a lot to give up for fuzzy search! I think it's absolutely worth it (I found mcfly a couple days after I wrote my own non-neural but very fuzzy history searcher) but I don't know how better it might be integrated than with --fuzzy essentially turning mcfly into a different application.

cantino commented 3 years ago

Cool @dmfay, thank you for contributing and welcome to the project!

rkachach commented 3 years ago

Hi there! thank you very much for this great tool. I'm trying to enable this feature setting the env variable:

export MCFLY_FUZZY=true

but it seems not available in my version (0.5.0) I'm doing something wrong or do I need the latest version to use this feature?

dmfay commented 3 years ago

It is not quite available yet. This pull request was an earlier experiment that didn't pan out, but this implementation is awaiting merge. You can build it from source if you clone git@github.com:dmfay/mcfly and check out the sqlite-fuzzy branch, or wait for Andrew to merge and release.

rkachach commented 3 years ago

Understood. Thanks for the quick response. I'd rather wait to have it merged. I use fuzzy searching quite intensively in Emacs that's why I asked for the feature. Thank you very much for this great contribution :+1:

cantino commented 3 years ago

Released in v0.5.1 :)