diff options
| author | kkard2 <[email protected]> | 2025-03-23 15:52:15 +0100 |
|---|---|---|
| committer | kkard2 <[email protected]> | 2025-03-23 15:52:15 +0100 |
| commit | a9ad69d85c96a5bb3138c72381a2c88d40dd7b6e (patch) | |
| tree | 2b67f8797f933fa53ec6f9ff07c126915241a9c7 /zed/keymap.json | |
| parent | b2d03ea6c22539fada87142332a4f6e6fdf98411 (diff) | |
idk what is happening to kanata but trying out zed
Diffstat (limited to 'zed/keymap.json')
| -rw-r--r-- | zed/keymap.json | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/zed/keymap.json b/zed/keymap.json new file mode 100644 index 0000000..b06f33b --- /dev/null +++ b/zed/keymap.json @@ -0,0 +1,60 @@ +// 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" + } + } +] |
