// 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. [ { // idk why this needs to be editor "context": "vim_mode == normal && Editor", "bindings": { "space space": "file_finder::Toggle" } }, { "context": "Editor", "bindings": { // "j k": ["workspace::SendKeystrokes", "escape"] } }, { "context": "vim_mode == normal && !menu", "bindings": { "shift-y": ["workspace::SendKeystrokes", "y $"], // Use neovim's yank behavior: yank to end of line. "space l f": "editor::Format", "space f x": "workspace::CloseAllDocks" } }, { "context": "vim_mode == visual", "bindings": { "shift-s": ["vim::PushAddSurrounds", {}] } }, { "context": "vim_mode == insert", "bindings": { "ctrl-y": "editor::ConfirmCompletion" } }, { "context": "Dock", "bindings": { "ctrl-w h": "workspace::ActivatePaneLeft", "ctrl-w l": "workspace::ActivatePaneRight", "ctrl-w k": "workspace::ActivatePaneUp", "ctrl-w j": "workspace::ActivatePaneDown" // ... or other keybindings } }, { // like the command picker and stuff "context": "Editor && mode == single_line", "bindings": { "ctrl-w": "editor::DeleteToPreviousWordStart" } } ]