-
Notifications
You must be signed in to change notification settings - Fork 344
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
Introduce completion candidates limit, minor fixes #772
Conversation
Please use |
@gracjan ok, I think a hundred completions is quite comfortable value. |
@gracjan I have no idea about this
|
Use |
Ok, but I didn't touch |
I've fixed copy-list problem, just rebase over current master and you should be fine. |
Cool, thanks (: |
I did some quick tests, with hundred candidates limit dabbrev completions are still quite slow for short prefixes (2-4 chars), but performance increases for long prefixes. The most comfortable limit value for short prefixes for me is about 10-20 candidates. I got some insight: what about to set candidates limit on the fly depending of prefix length, i.e. set smaller limit for short prefixes and increase it for long prefixes? |
I've never heard about dabbrev performance issues. Are you sure we are using it right? |
@geraldus: Code looks good. It would be good to find somebody besides me and you to play with this before merge. |
Surely, I want to make some more changes, e.g. #776. |
@geraldus: I was thinking about this a bit more. Questions:
|
@gracjan answers :D
|
Take into account completion candidates limit when searching completions using REPL or DABBREV facility. Also clean up completion list from REPL: currently `haskell-process-get-repl-completions` returns unused part of line as first item of list (e.g. it will be "map " for line "map co", and empty string for "ma" line).
@gracjan I've disabled dabbrev temporarily to test existing behaviour. I've already noticed that now completion candidates in comments are case insensitive. I need to find and look at mentioned dabbrev customizations in haskell-mode.
|
@geraldus: I've found these custom variables:
We can set the buffer-local so that case sensitivity is kept. Would that work for you? |
@gracjan I will be able to test this in about one or two days. |
@geraldus: hi, what do we do with this branch? |
There were made so many changes, I think we can close this for now, I'm still busy, apologize :( |
No problem. Take care of your stuff, return when you are ready. haskell-mode will be around. |
Don't merge yet, I didn't tested this stuff well and want to play with this before merge. Please review.