hecomi / uREPL

In-game powerful REPL environment for Unity3D.
http://tips.hecomi.com/entry/2015/12/05/003000
MIT License
551 stars 54 forks source link

IDEA: Add FuzzySearch Support #6

Open donovankeith opened 7 years ago

donovankeith commented 7 years ago

Hi @hecomi!

First: uREPL is awesome! I'm teaching C# scripting for Unity and I think it's going to be a really great asset in my classes.

I'd like to propose that a different search algorithm for the AutoComplete. At the moment it appears to be case sensitive and to only search the start of the method name. Perhaps you could use a search algorithm that:

Perhaps a bit too ambitiously, it would be amazing if a search for pos after GameObject. would turn up transform.position. This way, if someone only sort of knows what they're trying to accomplish they can find the method they're looking for.

hecomi commented 7 years ago

Thanks for the request!

Now the completion method depends on Mono.CSharp.Evaluator.GetCompletions() and it gives us just a little information... 😢 So it will be a hard work to add those functions, but they look cool and I also want them. I'll try to think about and support it in the future if found a good alternative method. Until that, I want this issue to be opened to keep it in my mind.