-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
g:jedi#popup_select_first = 0 did not affect #179
Comments
3934359 is the first commit that doesn't work? |
ah, sorry for confusing you. In 3934359 let g:jedi#popup_select_first = 0 works fine. Popup not selected first item. let g:jedi#popup_select_first = 1 not works fine. Popup not selected first item. Anyway, latest commit always selected first item. Regards, |
I can confirm this bug on Linux. |
diff --git a/autoload/jedi.vim b/autoload/jedi.vim
index 8b7f8bf..dfbb099 100644
--- a/autoload/jedi.vim
+++ b/autoload/jedi.vim
@@ -185,11 +185,10 @@ endfunction
function! jedi#complete_opened()
- if pumvisible() && g:jedi#popup_select_first && stridx(&completeopt, 'longest') > -1
- " only go down if it is visible, user-enabled and the longest option is set
- return "\<Down>"
+ if pumvisible() && g:jedi#popup_select_first
+ return ""
end
- return ""
+ return "\<C-P>"
endfunction I don't know this patch is correct way to fix but it seems fine. let g:jedi#popup_select_first = 0 not select first item. let g:jedi#popup_select_first = 1 select first item. I can't understand about comparing @davidhalter what do you think? Best regards, |
@spang which VIM version do you use? @heavenshell what does your |
@davidhalter Thank you for your reply. I set When I start vim Than I input like following,
After popup shows and cancel popup, my vimrc jedi.vim settings are following.
Best regards, |
Well, Especially because I'm not sure what users would expect without the |
@davidhalter Thank you for reply. I see The reason why I did not set IMHO |
vote 👍 I have experienced exactly same phenomenon. Thanks for reporting the revision number which worked fine because revision can be fixed with neobundle like:
Hope this bug will be fixed soon :-) |
@lambdalisue if g:jedi#popup_select_first == 0
inoremap <buffer> . .<C-R>=jedi#complete_opened() ? "" : "\<lt>C-X>\<lt>C-O>\<lt>C-P>"<CR>
endif My Vim and latest jedi.vim(master branch) works fine. |
Totally agree with that. I just couldn't be bothered to make a monkey patch. |
I see this behaviour It doesn't work. It selects the first item let g:jedi#popup_select_first = 0
let g:jedi#auto_vim_configuration = 0 It works let g:jedi#popup_select_first = 0
let g:jedi#auto_vim_configuration = 1
au FileType python setlocal completeopt-=preview " The reason to deactivate jedi#auto_vim_configuration I try this with the first case, but the trouble persists function! jedi#complete_opened()
if pumvisible() && g:jedi#popup_select_first && stridx(&completeopt, 'longest') > -1
" only go down if it is visible, user-enabled and the longest option is set
- return "\<Down>"
+ return ""
end
return ""
endfunction I use Shougo/neocomplete |
…:jedi#popup_select_first=0
Using YouCompleteMe the problem persists even when trying the above suggestions, although I might be missing something silly... This is enough of a thorn in my side I've been forced to disable Jedi for now, would be great to see a patch. |
YouCompleteMe already has bundled jedi, you dont need jedi-vim for autocomplete in this case. |
It doesn't break jedi-vim. Or at least it shouldn't but I'm not sure if the two are compatible. |
I meant that causes jedi-vim to always select first item in completion list, i disable completions in jedi-vim and use its other features, while YCM handles completions. |
So what's the remaining issue in jedi-vim here? I don't really understand.
It doesn't surprise me that this doesn't work, because you're disabling the automatic configuration. |
I still have problem even though let g:jedi#auto_initialization = 1
let g:jedi#popup_on_dot = 1
let g:jedi#show_call_signatures = 0
let g:jedi#auto_vim_configuration = 1
let g:jedi#popup_select_first = 0 |
@blueyed has changed something in the implementation of |
@davidhalter Sorry for late reply. |
Thanks for repporting back. |
Hi.
When I set vimrc like following, popup always selected first item.
I do not want to select first item.
Is there any settings for not select first item?
env
MacOS 10.8.4
Python 2.7.5
Vim 7.4.000(MacVim)
Regards,
The text was updated successfully, but these errors were encountered: