Files
TerminalPolyjuice/zed/keymap.json
2026-01-22 09:44:52 +08:00

56 lines
1.2 KiB
JSON

// 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",
},
},
{
"context": "Terminal",
"bindings": {
// Overrides for conflicting keybindings
"ctrl-t": ["terminal::SendKeystroke", "ctrl-t"],
"ctrl-n": ["terminal::SendKeystroke", "ctrl-n"],
"ctrl-p": ["terminal::SendKeystroke", "ctrl-p"],
},
},
]