-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
cmd+k to clear terminal is surprisingly slow #10176
Comments
Yeah I have the same issue, even though in one post I saw it was apparently fixed. Cmd+K still takes about a second after typing to clear the console. |
I can no longer reproduce this and I think this was likely fixed. @marwan-at-work can you confirm this is not longer an issue for you? |
This was an issue with our action dispatch and was fixed a little while ago. |
I still have it on Zed Preview 0.140.4. Although it seems to have improved, there is still a noticeable delay between command input and action Screen.Recording.2024-06-15.at.10.03.43.mov |
Yes there is still a pretty noticeable delay running |
Ahh, I thought I remembered a fix going out. |
Same issue with |
If it helps w/ debugging: if you press almost any key after cmd+k, then the screen is cleared quickly without any delay. |
Okey, it's not only for the terminal! I am using ctrl-k to delete the lines, and I have the same delay and the same behavior (any new input is a clear view). |
I wanted to suggest two potential workarounds until this is fixed:
[
{
"context": "Terminal",
"bindings": {
"cmd-k cmd-k": "terminal::Clear"
}
},
] See also: |
for me it's became working fine, is it still an issue for you? |
Seems fixed on my side! ( |
@GraphtyLove hi there, I just tested it and it's still slow for me.
Let me know if there's anything to do or to help with on my side. Thanks! |
@marwan-at-work I think you need to add {
"context": "Terminal",
"bindings": {
"cmd-k": "terminal::Clear"
}
} |
@dangh thank you that fixed it! However, it should not be necessary for everyone to create the above keymap config, that should be the default behavior unless I'm missing something. |
Check for existing issues
Describe the bug / provide steps to reproduce it
To reproduce:
Environment
Zed: v0.129.2 (Zed)
OS: macOS 14.3.0
Memory: 96 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
zedclear.mov
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: