62 lines
1.4 KiB
JSON
62 lines
1.4 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 || vim_mode == visual",
|
|
"bindings": {
|
|
"space space z": "zed::ToggleFullScreen",
|
|
},
|
|
},
|
|
{
|
|
"context": "vim_mode == normal || vim_mode == visual",
|
|
"bindings": {
|
|
"space space l": "editor::ToggleRelativeLineNumbers",
|
|
},
|
|
},
|
|
{
|
|
"context": "vim_mode == normal || vim_mode == visual",
|
|
"bindings": {
|
|
"space space w": "editor::ToggleSoftWrap",
|
|
},
|
|
},
|
|
{
|
|
"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"],
|
|
},
|
|
},
|
|
]
|