Skip to content
This repository has been archived by the owner on May 23, 2018. It is now read-only.

fuzzy search #19

Open
alvarolm opened this issue Apr 13, 2016 · 9 comments
Open

fuzzy search #19

alvarolm opened this issue Apr 13, 2016 · 9 comments

Comments

@alvarolm
Copy link

doesnt seems to be working

@joefitzgerald
Copy link
Owner

You're going to need to be more specific than that. Please post a reproduction, contrasting the actual outcome with the expected outcome.

@alvarolm
Copy link
Author

lets say I have this type
type foo int
with this methods

func (f *foo) MethodOne() {
...
} 

func (f *foo) MethodTwo() {
...
}

then I have the var var myVar foo, after this is written myVar. the autocomplete suggestions appear as expected showing the two inherited methods, lets say I type myVar.MtdOne it should narrow the suggestion to the MethodOne() but it doesn't, same happens with myVar.MOne even myVar.One, only works in cases where matches exactly the same (camelcase independent) which it doesnt help to be honest.

@joefitzgerald
Copy link
Owner

Please file an issue at https://github.com/nsf/gocode.

@alvarolm
Copy link
Author

we all know where nsf stands about this matter, is there a way to create a wrapper over gocode to provide this functionality ?

@joefitzgerald
Copy link
Owner

You're welcome to provide that wrapper. This isn't a priority for me. The built in autocomplete-plus provider is disabled by default by go-plus. Try I checking that option, as it does perform a fuzzy search against symbols.

@fordhurley
Copy link

Can you give a little more detail about how to work around this issue? I've tried:

In autocomplete-go settings:

  • uncheck "Suppress The Provider Built-In To autocomplete-plus"

In autocomplete-plus settings:

  • uncheck "Use Strict Matching for Built-In Provider"
  • tried both "Word" and "Symbol" as Default Provider

The only way I've been able to get fuzzy completion working on go files is by disabling the autocomplete-go package entirely.

@joefitzgerald
Copy link
Owner

You need to restart Atom after unchecking the "Suppress the provider built-in to autocomplete-plus". Then, you may need to scroll down the list to see the fuzzy matches.

@fordhurley
Copy link

You're right. I could've sworn I had restarted after changing those settings and it wasn't working, but anyway, I do see the fuzzy matches now. Thanks!

@dabfleming
Copy link

Even following the tips here (uncheck suppress built-in, uncheck strict matching, either symbol or fuzzy as default provider) I do not get any fuzzy matching in autocomplete-go, even after reload. Am I doing something wrong?

I was able to hack fuzzy matching into a personal fork using fuzzaldrin, but it's now quite out of date.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants