-
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
Toggle comment and project search keybindings are malfunctioning #20926
Comments
I'm seeing |
I am having problems as well. As an example, I have this in my keybindings, which have suddenly stopped working: {
"context": "Editor || Dock || Terminal",
"bindings": {
"' /": "pane::SplitRight",
"' -": "pane::SplitDown",
"' k": ["workspace::ActivatePaneInDirection", "Up"],
"' j": ["workspace::ActivatePaneInDirection", "Down"],
"' h": ["workspace::ActivatePaneInDirection", "Left"],
"' l": ["workspace::ActivatePaneInDirection", "Right"],
"' f": "workspace::ToggleZoom",
"' d": "pane::CloseAllItems"
}
}, Others, such as EDIT: It can’t be a general bug with sequences, as this one works as it should: "space p f": ["task::Spawn", { "task_name": "Go to file" }] |
It also doesn't work in my Italian layout. Before last update it worked, tried on another mac as well to be sure. |
Keybindings are completely broken when using the Spanish ISO layout, ⌘ + X shortcuts do not work or behave incorrectly. For instance, ⌘F is supposed to bring up the Find/Buffer Search UI. While it is rightly indicated as such in the menu bar, it is missing from the command menu. And pressing the combination splits the editor horizontally: Other shortcuts, such as ⌘N, ⌘O or ⌘T seem to do nothing at all. Researching this, I found a weird looking "not found" in this line while reading the changelog info, which might be to blame? zed/crates/settings/src/key_equivalents.rs Lines 70 to 73 in 33bed8d
PS: had to downgrade and disable autoupdates 😭 |
I'm having issues where it will autocomplete with the name of the key. i.e: in an empty buffer, press shift, then hit tab, and it will write 'shift'. Is this just me? (on version 0.163.0) |
I can confirm this exact behavior following these steps, but in a different version. Zed 0.162.3 |
I have also issues with keybindings. With VIM mode enabled, I no longer can invoke code actions using |
I think this issue might be related: Screen.Recording.2024-11-21.at.12.41.57.movPressing Edit: I should add that I'm on a German keyboard and pressing Edit 2: The version is this: 6ab4b46 |
plus one on Swedish locale. |
Seems this was intended: #20425 |
Thanks for this! We definitely intended to change things, but not break them! There are a few different things going on here. Expected from #20425
I know changing shortcuts is disruptive, and sorry for not being loud enough to let you know this was about to happen. For all of these, we could make some changes to the mappings over the next few days if we can find an alternative that works more like how you'd all expect from other apps. For all of these the shortcut should show correctly in the command palette. Unsure
Known bugs
|
If that's the case how do I bind it back? Changing defaults is one thing. Preventing the defaults to be changed back is a another one. |
The way I read the change was that it was to get rid of using alt as a modifier for these, but on norwegian keyboards EDIT: {
"context": "Editor",
"use_layout_keys": true,
"bindings": {
"cmd-/": ["editor::ToggleComments", { "advance_downwards": false }]
}
}
|
In my case, I have Polish Programmer keyboard layout set, which is quite universally used in Poland. And |
@LostKobrakai You can bind this back in your settings with either: Because shift-7 types / on your layout:
Or, because shortcuts bound to & are remapped to / on a German keyboard:
|
@ConradIrwin not sure what specific info you need, but it's set up like tis on macOS I also have here is a video where you can see what https://drive.google.com/file/d/1kaME50PIWFSe9sDZozw2HdOOcCd68lMf/view?usp=sharing |
Whoops! zed/crates/settings/src/key_equivalents.rs Lines 70 to 74 in 39fdb1e
|
@ConradIrwin thank you for your hard work, I cannot begin to imagine how difficult this might be to tackle, since it's basically an exhibition of edge cases. Bugs aside, I'm fine with any change as long as there's consistency between the menu bar hint, the command palette hint and the editor proper. Please comment again when there's a nightly or a preview version we can try and give feedback of! |
👍 Main should be fixed as of a few minutes ago, and I'll ship a preview when it's built in ~45minutes. Assuming that feels right, I'll release a stable in an hour or two. |
thank you so much @ConradIrwin
|
@drochag can you please try v0.163.1-pre ? released a few minutes ago |
Hi @ConradIrwin, On an Italian keyboard, neither |
That one works great for me, thanks for your hard work @ConradIrwin |
@daniele-solutiontech hmm, I think I gave you bad advice; actually enabling the keyboard on macOS, I see there are two:
if neither is working for you, could you please confirm which keyboard layout you're using? If you want to see Zed's view of it, open the key context debug view with Also, if you type |
LGTM |
Vim mode itself works fine! There are just some specific keybindings that are not working at all. I am using a Norwegian keyboard layout, so I guess I might have the same problems as a few others in this thread that I just tried adding "space /": ["task::Spawn", { "task_name": "Search project" }] Without the |
@bendiksolheim thanks! I can reproduce this on a Norwegian layout, but I'm not yet sure why, will investigate. |
Thank you for the quick reply, @ConradIrwin! |
@bendiksolheim Sorry my mistake, it is "working as intended" to require the Currently the way this works for Latin keyboards that require the zed/crates/settings/src/key_equivalents.rs Lines 860 to 884 in 841d322
This means that every shortcut defined in the ASCII range is moved to a key you can hit without using option, so that we can bind to |
Hey, I’m happy as long as there is a way for me to get my keybindings to work 😄 I’m not gonna pretend to understand all of this, but I can definitely live with just specifying this property. Thanks for taking the time to help! |
For the record, I've tried |
not sure something has changed on 0.164.1, but now having the same issue as @hedefalk , @ConradIrwin 😢 |
also no completions being shown when pressing
|
@drochag I am not able to reproduce problems with ctrl-space on either preview or nightly. What are the other problems you're seeing on 0.164.1? |
Not sure if that's related but I was using "cmd+shift+/" to toggle comments on a french keyboard and it no longer works :( |
@schmurfy toggle comments should now be cmd-: on an AZERTY keyboard |
That's the default and it works but what I want is command+shift, I tried: |
Another quirk of the Zed keybinding system is that You can add this to your keybinding file with:
After #21662 lands (in v0.166) the |
I am going to close this now #21662 has landed; but feel free to keep asking for help with bindings. |
Check for existing issues
Describe the bug / provide steps to reproduce it
When auto updated to 0.162.3 keybindings stopped working, cmd+shift+f opens the file to the side OR goes to the start or end of the nearest bracket
Environment
Zed: v0.161.1 / 0.162.3 (Zed)
OS: macOS 15.0.1
Memory: 32 GiB
Architecture: x86_64
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.
No response
The text was updated successfully, but these errors were encountered: