uREPL icon indicating copy to clipboard operation
uREPL copied to clipboard

IDEA: Add FuzzySearch Support

Open donovankeith opened this issue 7 years ago • 1 comments

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:

  • Is Case Insensitive
  • Supports finding substrings in the middle of the string

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.

donovankeith avatar Jan 18 '17 07:01 donovankeith

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.

hecomi avatar Jan 21 '17 06:01 hecomi