feat(Zed): zed's keymap.json

This commit is contained in:
2026-01-20 19:51:42 +08:00
parent b387305048
commit af348af4b2

46
zed/keymap.json Normal file
View File

@@ -0,0 +1,46 @@
// 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.
[
{
"context": "Workspace",
"bindings": {
// "shift shift": "file_finder::Toggle"
},
},
{
"context": "Editor && vim_mode == insert",
"bindings": {
// "j k": "vim::NormalBefore"
},
},
{
"context": "vim_mode == normal",
"bindings": {
"space space l": "editor::ToggleRelativeLineNumbers",
},
},
{
"context": "vim_mode == normal || vim_mode == visual",
"bindings": {
"space space z": "zed::ToggleFullScreen",
},
},
{
"context": "vim_mode == normal",
"bindings": {
"space b": "project_panel::ToggleFocus",
},
},
{
"context": "vim_mode == normal || vim_mode == visual",
"bindings": {
"f": "vim::PushSneak",
"shift-f": "vim::PushSneakBackward",
},
},
]