VimBindings.jl icon indicating copy to clipboard operation
VimBindings.jl copied to clipboard

Arrow keys have long delay in REPL

Open aplund opened this issue 1 year ago • 1 comments

In the REPL, moving along a line in normal mode using 'h' and 'l' seem to work great. But moving along the line using the arrow keys seems to result in long delays if held down for a repeat.

Using the debugging messages, I can see that the two movement methods have different code paths. The arrow keys generate "\e[C" and "\e[D" going through the "encoded sequence" path. Where as the 'h' and 'l' go through the motion commands.

aplund avatar Nov 21 '23 03:11 aplund

Interesting, thank you for filing the issue.

My guess is that the left and right keys use the encoded sequence, and VimBindings has some timing logic which causes a slight delay to detect which key was pressed. This isn't noticed with one key press, but then when the keys are held down it might result in longer delays.

I am a bit short on time at the moment, but I'll prioritize this in the next release, whenever that may be.

caleb-allen avatar Nov 21 '23 12:11 caleb-allen