zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50k stars 3.06k forks source link

Key strokes in vim mode freezing(or debouncing) #19402

Closed pedroferreira37 closed 3 weeks ago

pedroferreira37 commented 4 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Hey folks!

I'm having an issue in Zed where, when I press keys in sequence, like 'jk' or 'kj,' it seems like the keys are being debounced or something, which causes the cursor movement to freeze. If I'm stop pressing the keys, after some that everything is released and the cursor moves again.

This is an extreme example just to show the bug. It creates an annoying effect where, when I'm editing code, the cursor doesn't go where I expect it to.

@mrnugget I'm tagging you because early you said to.

Thank you all.

https://github.com/user-attachments/assets/1e8e286a-789f-43c7-98aa-ba6e0982e49e

Environment

OS: macOS Sequoia 15.0.1 Machine: Macbook Air M1 8GB 2020

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log


SirSilver commented 4 weeks ago

If you have "jk" key map for leaving insert mode, make sure your bind does not affect normal mode too. Or maybe you have some other key map including "j"

pedroferreira37 commented 3 weeks ago

Seems that fixed the freeze issue, but doesnt switch to normal mode correctly. If I type a word and immediately press jk it not switch.

I will close the issue and take some look into that.

Thank you.