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

Fuzzy autocomplete for go #544

Closed
palsivertsen opened this issue Jan 12, 2017 · 2 comments
Closed

Fuzzy autocomplete for go #544

palsivertsen opened this issue Jan 12, 2017 · 2 comments

Comments

@palsivertsen
Copy link

Description

Autocomplete for go should make use of the fuzzy autocomplete feature used by other implementations.
Related issue for php autocomplete:
https://discuss.atom.io/t/can-autocomplete-suggestions-provided-using-fuzzy-matching-technique/19113/4

Expected Behavior

When typing http.met the http.Method constants are shown in the autocomplete menu. Typing http.metp should limit the results using a fuzzy search (MethodOptions, MethodPatch, MethodPost and MethodPut)

Actual Behavior

Typing http.met**p** yields no results in the autocomplete menu

@lloiser
Copy link
Collaborator

lloiser commented Jan 12, 2017

For autocompletion we currently use the gocode. If it does not support this we are not able to display it either. Please open an issue there.

Beside that the autocomplete-plus package provides a really simple fuzzy matching system. But it is not go specific. It simply takes every word displayed in any open editor and tries to match it with the typed characters. Enable this by unchecking the Suppress The Provider Built-In To autocomplete-plus setting in go-plus. Example:

screen shot 2017-01-12 at 10 56 32

@lloiser lloiser closed this as completed Jan 12, 2017
zmb3 added a commit that referenced this issue Jul 22, 2017
- don't generate snippets for ...args
- support fuzzy matching

fixes #664, #544, #188
zmb3 added a commit that referenced this issue Aug 6, 2017
- don't generate snippets for ...args
- support fuzzy matching

fixes #664, #544, #188
@joefitzgerald
Copy link
Owner

Take a look at v5.8.3.

screen shot 2018-04-02 at 4 28 45 pm

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

3 participants