Open tristil opened 4 years ago
Related: https://github.com/onivim/oni2/issues/741, https://github.com/onivim/oni2/issues/382, https://github.com/onivim/libvim/pull/101
I think this is currently being worked on in https://github.com/onivim/editor-input though, if I understood @bryphe correctly. And if so the solution is in a layer above libvim
.
Describe the bug
If input is passed to
vimInput
one character at a time a multi-character keybind (for exampleinoremap jk <esc>
) will fail. The first key will be swallowed up and the second will be inputted, without leaving insert mode.To Reproduce
This test passes
whereas this test fails
Expected behavior
Oni2 sends keystrokes one at a time to
vimInput
. Because of this, the above behavior is blocking implementing Spacemacs-like keybindings. I would like to see this fixed here or for some other solution for spooling keypress before sending tovimInput
implemented on the Oni2 side.