Patch to make autocompetion really case-insensitive

9 views
Skip to first unread message

Дмитрий Франк

unread,
Dec 17, 2011, 9:48:38 AM12/17/11
to ecli...@googlegroups.com
Hello all.

There's an option g:EclimJavaCompleteCaseSensitive to make autocompletion case-sensitive or not.
But when it is 0, autocompletion isn't really case-insensitive: say, if your popup-menu contains item "setActive", and you type "setactive", then no option will be selected, because of popup-menu isn't case-insensitive.

To make it case-insensitive, you should insert the following line:

\ 'icase': !g:EclimJavaCompleteCaseSensitive,

in menuitem dictionary in the file autoload/eclim/java/comlete.vim.

---resume---

here's your current menuitem dictionary in autoload/eclim/java/comlete.vim :

let dict = {
\ 'word': word,
\ 'menu': menu,
\ 'info': info,
\ 'kind': kind,
\ 'dup': 1
\ }

and it should look like this:

let dict = {
\ 'word': word,
\ 'menu': menu,
\ 'info': info,
\ 'kind': kind,
\ 'icase': !g:EclimJavaCompleteCaseSensitive,
\ 'dup': 1
\ }

I hope you will apply this in the next release of eclim.

pic.gif


Eric Van Dewoestine

unread,
Dec 19, 2011, 10:00:27 AM12/19/11
to ecli...@googlegroups.com

Thanks for the patch! I've applied it to eclim's github repository so
it will be in the next release.

--
eric

Reply all
Reply to author
Forward
0 new messages