-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vim mode] when using find (f
) to look for the letter "g", there is a delay where the editor is waiting for more input
#12483
Comments
Confirmed that this happens only for "fg" and not, say, "fa" or "fb". |
similar issue with ctrl + w in vim mode to close the window. There's a large delay before it closes your active window |
@Innominus you can check similar condition like my pr |
I think the Ctrl+w issue can't really be solved as long as you have any normal-mode two-part mappings where the first part is Ctrl+w (and there are many such mappings). Because zed will always have to wait whether there's a second key. The |
Yes c-w is kinda special in vim, I usually use q to quit window and Q to macro |
Release Notes: -Fixed #12483 It turns out to be very simple. `fg` has conflict with `gc` mapping so when you type g editor state is pending.
Check for existing issues
Describe the bug / provide steps to reproduce it
fg
Expectation: the cursor jumps to the "g". Reality: there is a delay before anything happens.
I suspect the reason for this behavior is that there are a lot of keybindings starting with "g" and so the editor is waiting whether you want to use any of them. The solution is perhaps to create a new "g mode", just like the "c mode" and the "d mode"?
Environment
Zed: v0.137.3 (Zed)
OS: macOS 14.4.1
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response
The text was updated successfully, but these errors were encountered: