Open DasOhmoff opened 2 years ago
I have mappings that are effected by this change. For example and scroll horizontally left and right on my setup. But with the new neovim 0.7 version, does not work anymore. Also other mappings that use <c-[> and are broken.
What are the mappings exactly? Provide a full, concrete example.
For example <c-m>
in the following mappings don't work:
nnoremap <expr> <c-n> 10 . 'zh'
nnoremap <expr> <c-m> 10 . 'zl'
These are there to horizontally scroll left and right when pressing <c-n>
and <c-m>
. <c-n>
still works, it scrolls left, but <c-m>
does not scroll right. It behaves as if it was unmapped, it makes the cursor jump to the beginning of the next line.
Hello. I still have this issue
but
<c-m>
does not scroll right. It behaves as if it was unmapped, it makes the cursor jump to the beginning of the next line.
Ah, that hints that neovim-qt is probably sending <cr>
when it sees <c-m>
. Neovim-qt probably needs to make a change there, because those are no longer equivalent in Nvim.
Yes, I think so too
Ah, that hints that neovim-qt is probably sending
when it sees . Neovim-qt probably needs to make a change there, because those are no longer equivalent in Nvim.
From what I can tell, this is not the case. We seem to be sending
QKeyEvent ev: QKeyEvent(KeyPress, Key_M, ControlModifier, text="\r")
"<C-m>"
QKeyEvent ev: QKeyEvent(KeyPress, Key_Return, text="\r")
"<Enter>"
@DasOhmoff
It would be helpful if you can provide a few things.
nvim-qt -- -u yourconfig.vim
, with steps that do not work on 0.7.It is possible the issue is platform specific, and the QKeyEvent
data should help us diagnose then fix the problem.
Hey :wave:
Neovim 0.7 has the following feature:
Notice that it said:
In case the terminal or GUI supports distinguishing these keys
This introduced breaking changes into neovim-qt. I have mappings that are effected by this change. For example and scroll horizontally left and right on my setup. But with the new neovim 0.7 version, does not work anymore. Also other mappings that use <c-[> and are broken.
It would be appreciated it this could be fixed. Thank you for your help :)