-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve compare_func, neocomplcache#compare_rank a little. #305
Comments
It is difficult. Because the compare function is fully optimized. |
I have to say, I have no programming experience. So please pardon me if what I said is not sane. And this should be considered as a discuss, I guess.
after separation:
Them maybe use some algorithm to compare those characters one by one or two per time, or some other algorithms. Maybe I can ask on StackOverflow about this compare algorithm. :) |
OK. I will wait.
I added FAQ section. |
This is just a link to StackOverflow question |
I added 'neocomplcache#compare_human' function.
|
Thanks, I had a look at wikipedia sort algorithms, really difficult to implement. You're right.
By the way, what does the |
The update fixed the error. |
Here is a screenshot. http://ompldr.org/vZzFnZg
I think
connection10
should belowconnect9
instead of upper thanconnect2
.I tried to improve in neocomplcache source code.
But I do not know how to improve on this case. In my intuitive, I think
compare_func
should compare candidates depend on string and number seperately. Maybe convert the candidate text ? I do not know. And I think this compare_func must be fast. otherwise it will slow down the popup menu.The text was updated successfully, but these errors were encountered: