-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Custom Keybinding #10678
Comments
Hi @danoshi, Apologies for the delayed reply. There are currently two distinct rename commands, Separately, file rename is only available from within the ProjectPanel context. So if you adjust your keymap to the following I believe it should work as intended. [
{
"context": "Editor",
"bindings": {
"cmd-y": "editor::Rename",
}
},
{
"context": "ProjectPanel && not_editing",
"bindings": {
"shift-y": "project_panel::Rename"
}
}
] I tested these and they worked for me on MacOS. P.S. The |
Check for existing issues
Describe the bug / provide steps to reproduce it
I created my own keybindings but it seems they do not work as they should.
I would like to remap the renaming of files from F2 to cmd-y since I am on a mac.
After restarting the IDE the remap did not work out.
Below my custom keymap.json.
Environment
Zed: v0.130.7 (Zed)
OS: macOS 14.4.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
~/Library/Logs/Zed/Zed.log
file to this issue.Zed.log
The text was updated successfully, but these errors were encountered: