Closed nullromo closed 3 months ago
that is indeed a but really weird is that I can't reproduce it with my own config but I can with a minimal config
I'll investigate this
edit: this got introduced with https://github.com/max397574/better-escape.nvim/pull/67 I'll see if I can fix it
after some more debugging
I can reproduce this only if I press the jk
right after the k
. If I wait for some time it works again. Can you confirm that you also have this behavior?
@Jint-lzxy @Sam-programs any of you two have an idea how we could fix this issue?
Can you confirm that you also have this behavior?
Yes, that's right.
kjk
, I get the bug behavior ("kjk" in the buffer).k
, then wait for timeoutlen
, then press jk
, it works as expected and I end up in normal mode ("k" in the buffer).Note that vim's default value for timeoutlen
is 1000 ms.
any of you two have an idea how we could fix this issue?
Yeah ... I forgot to log the key in a code path. See #70. Sorry!
Looks good on my end. Thanks!
Problem
I'm not sure if this is intentional, but after inserting a
k
, thejk
functionality breaks. Here is a demo.https://github.com/max397574/better-escape.nvim/assets/8991581/8acd13c0-5bb8-46ed-b4ee-3c3fc6c9ca0d
So after I type the letter
k
and then I try to leave insert mode, I just end up with ajk
in the buffer.Expected behavior
I do not get this problem when I use
or
I would expect this plugin to behave identically to these mappings. So if I press
kjk
from insert mode, then I would expect to be in normal mode with ak
in the buffer.