Closed aphorisme closed 2 months ago
{
"context": "Editor && (vim_mode == normal || vim_mode == visual) && !VimWaiting && !menu",
"bindings": {
"space f f": "file_finder::Toggle",
"space f o": "outline::Toggle",
"space f s": "project_symbols::Toggle",
}
Except these keybindings,do your have any keybindings related to "space" key?
Omg. I'm so sorry. I was about posting my complete keybindings and there seems to be what can only be an artifact of some old edit: there was indeed a keybinding in the "vim_mode == insert" section with a "space" key in there ..
Removing it solved all lag ...
It was:
"space ctrl-j": "copilot::NextSuggestion"
so everything makes sense to me. I would close this. Sorry for the misleading ticket!
First of all, thanks a lot for this amazing editor! : )
Check for existing issues
Describe the bug / provide steps to reproduce it
With
vim_mode: true
hitting the space bar takes about half a second, before the space is typed.I have keybindings as follows:
which might be a problem here, but even if I comment them out and restart the editor, the lag persists. (Maybe there is some caching but a way to reset, so I can test properly and use it as a workaround?) Changing
space
to.
and restarting does not remove the lag. (Maybe the keybindings are irrelevant for this bug?)A workaround changing
"space"
to something else is doable for me. But this might be still unexpected, since invim_mode == insert
no such bindings exist, but the lag happens in insert mode as well.Setting
vim_mode: false
removes all lag.Typing other characters works fine; the keybindings which use space react without a lag.
Environment
Zed: v0.140.5 (Zed) OS: macOS 14.5.0 Memory: 64 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
I've made a gif. Some frames are omitted by the converter, but the overall feeling of the lag suits the reality:
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.Zed.log