Giter Site home page Giter Site logo

Fuzzy match for module names about company-ghc HOT 3 CLOSED

iquiw avatar iquiw commented on July 20, 2024
Fuzzy match for module names

from company-ghc.

Comments (3)

iquiw avatar iquiw commented on July 20, 2024

Thanks for the suggestion.
It looks to me something like abbrev expansion rather than fuzzy match in general sense.

If I understood the code correctly, this requires us not to use all-completions.

I think matching itself is possible with all-completions by specifying proper PREDICATE function as the 3rd argument.
But IIRC, there needs some work if inputted prefix and matched text are different.
I will check it.

from company-ghc.

iquiw avatar iquiw commented on July 20, 2024

@rpglover64
I pushed the change to module-prefix-match branch.

I'd like to be able to type something like C.M.Re and get Control.Monad.Reader. Or rather, C.M and have Control.Monad show up in the completion list.

It supports the above cases, but "C.M" matches with "Control.Monad.Reader" also.

from company-ghc.

iquiw avatar iquiw commented on July 20, 2024

Merged to master.
Enabled by setting company-ghc-component-prefix-match to t.

from company-ghc.

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.