Need api: disable FuzzyProvider, let typedText.length > 0 #90
Comments
urgly hack for now:
|
Already find a way to disable FuzzProvider by yongkangchen/atom-ctags@ebcc61a |
Isn't that the purpose of an exclusive provider? |
|
@joefitzgerald for the second need, do you have any ideal? I am finding a way about it. |
If we allowed a registering provider to optionally specify a list of grammars (including an "all" specified - "*"?) for which it wanted to have the built-in provider disabled, you could then use that in fuzzyprovider to avoid autocomplete for those grammars. |
Good idea, but a little complex. For now, my hack: yongkangchen/atom-ctags@ebcc61a works well, even though not very graceful. |
Yeah but that is the nuclear option. The fuzzyprovider is dead for the remainder of the Atom session. |
I would much rather we don't encourage others to mess with the internals of autocomplete-plus, and instead provide a clean API to disable the fuzzyprovider when required |
Agree with you. |
@yongkangchen Would it suffice to simply ensure atom-ctags and autocomplete-snippets suggestions are always more specific (and consequently higher in priority) than FuzzyProvider? |
@joefitzgerald I'd like to be able to disable FuzzyProvider without disabling all other providers as well, but I'd specifically like the user to be able to decide to disable it or not. With an earlier version of autocomplete-plus, I could simply use a fork of autocomplete-plus which had FuzzyProvider stripped out. That way the user could install autocomplete-plus or not, or adjust the individual fileBlacklist settings of the two autocomplete engines so that they didn't overlap. This doesn't seem possible anymore (without significant inconvenient rewriting), since providers are expected to use the atom.services api. I'm chiming in here because I think it's important that however this issue is resolved, the user be in control. I think most of the users of my provider don't want to see the default provider options at all, but some may, and some may want to see them in some contexts but not in others. My solution wasn't optimal, but it let the user decide whether and when they would be presented with the different options. Now that I'm migrating back to the stock autocomplete-plus, I'd still like to provide my users with that same configurability. |
👍 @apcshields: I'm going to provide two ways to suppress FuzzyProvider: 1) a preference to disable it entirely 2) a way for providers to add to a blacklist of selectors where the FuzzyProvider doesn't get used. This provides flexibility for the user and provider authors. |
Great! |
1、I need a provider api to
disable just FuzzyProvider
for reason is: atom-ctags auto update symbols when file save, there no need to enable FuzzyProvider. But still need autocomplete-snippets, so I can't use
exclusive
to exclusive all other provider.2、I need a provider api to let
typedText.length > 0
instead oftypedText.length is 1
in autocomplete-view.coffee#L188for reason is: when input
(
, bracket-matcher auto insert)
, lead totypedText.length == 2
, and I need autocomplete to show symbol for pre word which include function param.The text was updated successfully, but these errors were encountered: