-
Notifications
You must be signed in to change notification settings - Fork 264
Reduce the fuzzying #564
Comments
So, why do I "complain"? Well, suggestions are easy to ignore if the next thing you do is to type a space character. |
A more or equally pressing concern is; why isn't |
Sorry if I come across with a "tone". I love autocomplete-plus and it often saves me typos because the guesses are pretty good. |
Hi peterbe. So what happens here ? If you type |
For a spell checker, your suggestion would be a perfectly valid behavior. However sublime text among other popularized selecting using a sub-sequence. This is what you see. What I start to gather is that it is easy to do an accidental accept of auto-complete. Maybe the key binding / timing is the underlying issue. Maybe the rule that hide |
If it's shown, that's also an annoying issue, because you'll need to hit enter twice instead of once when trying to get to a new line. |
"enter twice"?? You mean, first Escape (to kill the autocomplete) and then Enter. This happens almost always when I type a multi-line comment. |
Among the two evil I believe pressing enter twice is better than having the current word replaced by something else unintentionally. (And probably having to press enter twice anyways). The And possibly the source of people not wanting autocomplete to be enabled #552 I'm starting to think a Primum non nocere approach might be what we need. Like if the auto-complete is automatically triggered, do not select any result by default, let |
And to be fair with peterbe, we are not totally powerless in accepting those fuzzy matches. Usage of the sub-sequence feature is mostly useful on acronyms. So a rule like
could set a baseline for relevance. The problem is that your bad results would pass that rule. We can bump it to 3/4 but then |
I very much like the idea that Enter after typing doesn't select the first autocomplete suggestion. I these days often find myself typing something then Escape then typing something then Escape to get rid of the overly eager autocomplete. |
The However "ssrb" is only four characters, so there's still a chance that autocomplete will help me. However "continue" is 9 characters. If I've typed that many characters before I contemplate the autocomplete options I think I've made up my mind more. In the same sense, I've I've taken the time to type If, inside the fuzzyaldrin "engine", there's some sort of threshold, it would be good if that could become dynamic. E.g 4 edit distances max if you've type 5 or more characters, otherwise 6 edit distances. Or something like that. |
Again, thank you for your patience. The code is awesome. But it can still be improved. I'm just speaking straight from my gut and that's from real actual use. |
The thing is a query with a lot of character could be
For example: |
I have to admit, this practice of typing things like "LctFnMxm" is new to me. Maybe I'm just an old fart. Is there a name for this? Could enabling/disabling that be an interesting configuration option? |
What I meant is that just like One thing that does not help is that fuzzaldrin is used by many part of atom: In "command palette" you know you are selecting so it's OK to type as few letter as possible (like |
Limit on the number of error is very hard to set. For example Visual Studio Code (which is basically a Microsoft clone of atom) have an interesting way to handle fuzzy matching. I from what I understand, one can either add a character to existing sequence or jump to the next word. For example having typed As an added bonus that kind of fuzzy but still rigid allow to precompute a search index. |
IMHO:
Proposed Solution: Only the Pros:
Cons:
EDIT: |
Hmm... Maybe both of my above mentioned frustrations can both be solved by changing the setting so that Tab is what selects from the suggestions. Thanks @wmayner I'll look into that. |
If this discussion is leading anywhere it's that it's frustrating when the top-most suggestion isn't the word itself, if the word itself has been written somewhere before. So, it's not a matter of "boosting" the words "continue" or "else" or "Environment" to be the first choice because they don't even show up. @xdumaine I'm guessing this isn't the first time you've typed "else" in that project/file. |
Right, so basically if the word is an exact match, then that exact match should be the first result, and the |
I'm apparently using "Symbol". Version 1.0.11 |
That's exactly what I want! What version and what default provider is that? |
I just ran all updates and it seems to be working now. None of the updates looked like they were relevant, so now I'm stumped. |
@wmayner 👍 The default autocomplete-plus autocorrect behavior is quite frustrating. Example:
Now press Enter after that last
The expected way to select auto-complete is tab as suggested above or the arrow keys. I know I can change to tab, but I really think this default functionality needs to allow users to type newlines in the expected way. Edit
|
@leroix Do you think this is addressed by subsequence and the removal of the fuzzy provider? |
@eedwardsav @Ben3eeE I believe this particular situations would be fixed in Atom 1.22. It's worth giving it a try. |
I typed
continue
in python and this suggestion popped up:The highlighting inside the autocomplete suggestion tooltip seems to indicate that it found it because of the
Co
and thent
and thei
and then
and theu
and thee
.But it's totally different! :)
When I have typed so much ("continue" is 9 characters), couldn't the fuzzyaldrin (or whatever it's called) take that into account? It'd make sense to suggest "CommentsBySignature" if I had typed
co
(or evencon
with one edit distance).This is not a rare case. Just that I really noticed it this time because it's a great example of how overly optimistic the fuzzying matcher is.
The text was updated successfully, but these errors were encountered: