-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
non-latin keymap doesn't work for a <Plug>(YCMFindSymbolInDocument) #3881
Comments
I've just made a quick test and cyrillic characters can appear in a prompt buffer, but indeed get lost in our prompt buffer. |
I don’t know how to keymap. Can someone break down a repro case with like actual key presses? This seems like a vim bug to me, so I’ll mimimise a test case for it. |
it works fine with prompt buffer I have for vim-select
It works with regular prompt buffers, it doesn't work with what you have in ycm :)
|
I’m thinking prompt buffer + popup with keyboard filter as the base combination to check |
This is the result of
This has the same effect. I don't see an obvious solution other than not restricting mappings, but that has other implications. Seems like |
Minimal repro set keymap=russian-jcukenwin
function! s:Filter( id, key ) abort
return 0
endfunction
let p = popup_create( 'this is a popup', #{
\ filter: function( 's:Filter' ),
\ mapping: v:false,
\ } ) I don't know if that's intentional behaviour on the part of vim or not. Maybe ask on vim_dev? |
so there is no direct prompt input -- you filter it through popup, right? |
the input goes to the prompt buffer, and the popup has a filter function for keys like |
It might be possible to solve this by rewriting it all to use buffer-local mappings in the prompt buffer. Though that's a fair bit of work. Let's see what Bram says about keymap before deciding. |
Just to let you know it doesn't work. Not sure there is/will be non latin things to filter upon.
But it is still possible to name functions and variables using UTF8, so here it is :)
set keymap=russian-jcukenwin
<C-6>
to switch to ru keymap<Plug>(YCMFindSymbolInDocument)
No russian letters are produced.
The text was updated successfully, but these errors were encountered: