41 lines
1.2 KiB
JSON
41 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",
|
|
"bindings": {
|
|
// "j k": ["workspace::SendKeystrokes", "escape"]
|
|
"ctrl-b": "workspace::ToggleLeftDock",
|
|
", ,": "workspace::Save",
|
|
"space c": "pane::CloseActiveItem",
|
|
"space w s": "pane::SplitHorizontal",
|
|
"space w v": "pane::SplitVertical",
|
|
"space h": "workspace::ActivatePaneLeft",
|
|
"space j": "workspace::ActivatePaneDown",
|
|
"space k": "workspace::ActivatePaneUp",
|
|
"space l": "workspace::ActivatePaneRight",
|
|
"g o": "editor::Format",
|
|
"ctrl-c": "editor::Copy",
|
|
"ctrl-x": "editor::Cut",
|
|
"ctrl-v": "editor::Paste",
|
|
"super-c": "editor::Copy",
|
|
"super-x": "editor::Cut",
|
|
"super-v": "editor::Paste",
|
|
"super-e": "pane::ActivatePrevItem",
|
|
"super-u": "pane::ActivateNextItem"
|
|
}
|
|
}
|
|
]
|
|
// Ideas: https://gist.github.com/adibhanna/896257e6c2c501186221312fd9fd1b9c
|