-
Notifications
You must be signed in to change notification settings - Fork 3.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
Support key repetition in terminal #4740
Comments
Adding support for this would be particularly helpful for holding the |
This also affects running vi and vim in terminal, which causes arrowkeys (h j k l) to not perform as expected, for instance showing the possiblity of inserting a ķ instead of moving cursor up. |
Do you have concrete steps to reproduce? I have Vim mode enabled in Zed and can hold down screenshot-2024-01-22-09.26.12.mp4Do you use this setting too?
That disables press-and-hold to type special characters. (Doesn't mean that users should have to use that to make it work in Zed, but just trying to find out why it works for me and not for you) |
aha, that works, to disable ApplePressAndHoldEnabled. So to me it looks like vi and vim in
bypasses ApplePressAndHoldEnabled when in VI mode. But the Zed terminal does not. I see I'm actually using en_DK, from
|
Yeah, that's very interesting. Thanks for digging into this. We'll need to look into this a bit more. |
That's ok if you want to disable press and hold globally. I'd like to disable only for zed and its integrated terminal but while it just works for the editor, it does not for the terminal. |
Can you clarify? You did disable it only for Zed? If so, how? |
@mrnugget usually with vscode and jetbrains products i run the following command:
if you instead run:
this will affects the feature globally and disable the So I did this for zed:
This turned out to disable Most of the time I found it hard to find the |
Thank you! That's very helpful. |
Note that this issue does not seem to affect Linux (X11) – key repetition works fine on my end in the terminal. Zed: v0.143.7 (Zed) |
Yes. this is only a mac issue. |
After I hit this myself, I did a cursory search into how iTerm 2 handles this (in iTerm windows, I can hold motion keys (jk) and navigate a paged diff/file/etc; in Zed windows, the integrated terminal moves a single line and stops). I'm not sure it's relevant, but I found this change: Add auto-repeat mode Is it possible There seems to be an equivalent change for microsoft terminal This behavior doesn't affect Alacritty, so perhaps it's matter of configuration rather than outright support? |
Great. For anyone using the preview release
|
Check for existing issues
Describe the feature
Keyboard repetition does not work for some keys like
a-z
in terminal while it works inAlacritty
.If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: