Coder Social home page Coder Social logo

Fuzzy matching about tofi HOT 4 CLOSED

philj56 avatar philj56 commented on May 26, 2024
Fuzzy matching

from tofi.

Comments (4)

philj56 avatar philj56 commented on May 26, 2024 1

Glad you're enjoying it!

I'll have a look into fuzzy matching but I don't particularly have a use for it - my use case is pretty much only ever using tofi-run and typing the beginning of the command. Thanks for the links, from those it seems somewhat complex (at least more than the current strcasestr() search), but not too bad. Either way, I'll give it a go.

from tofi.

philj56 avatar philj56 commented on May 26, 2024

Alright, I've added a --fuzzy-match option in 8e45592. I found a much simpler fuzzy match in the public domain here, and wrote an even simpler (but very nearly as good) version in fuzzy_match.c. It's pretty basic, but it works well enough:

fuzzy

from tofi.

philj56 avatar philj56 commented on May 26, 2024

I've improved the fuzzy matcher in aaccdaa. It should now always find the best possible match (according to the chosen scoring criteria).

from tofi.

akselaase avatar akselaase commented on May 26, 2024

Thank you for taking your time do implement this (and so quickly), it works great!

from tofi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.