This commit is contained in:
2026-02-02 18:50:51 -08:00
parent cd72f8cffd
commit 8c520df5bd
2 changed files with 136 additions and 0 deletions

66
config/zed/keymap.json Normal file
View File

@@ -0,0 +1,66 @@
// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: open default keymap`
// from the command palette.
[
{
// (All contexts)
"bindings": {
"cmd-shift-g": "git_panel::ToggleFocus",
"cmd->": "project_panel::ToggleHideHidden",
"cmd-1": ["pane::ActivateItem", 0],
"cmd-2": ["pane::ActivateItem", 1],
"cmd-3": ["pane::ActivateItem", 2],
"cmd-4": ["pane::ActivateItem", 3],
"cmd-5": ["pane::ActivateItem", 4],
"cmd-6": ["pane::ActivateItem", 5],
"cmd-7": ["pane::ActivateItem", 6],
"cmd-8": ["pane::ActivateItem", 7],
"cmd-9": ["pane::ActivateItem", 8],
},
},
{
"context": "Editor && vim_mode == insert",
"bindings": {
// "j k": "vim::NormalBefore"
},
},
{
"context": "Editor",
"bindings": {
"cmd-l": null,
},
},
{
"context": "((FileFinder || FileFinder > Picker > Editor) || FileFinder > Picker > menu)",
"bindings": {
"cmd-l": null,
},
},
{
"bindings": {
"cmd-l": "workspace::ToggleRightDock",
},
},
{
"context": "ContextEditor > Editor",
"bindings": {
"cmd-shift-g": null,
},
},
{
"context": "Pane",
"bindings": {
"cmd-shift-g": null,
},
},
{
"context": "Workspace",
"bindings": {
"cmd-w": null
}
}
]