first commit
This commit is contained in:
69
keymap.json
Normal file
69
keymap.json
Normal file
@@ -0,0 +1,69 @@
|
||||
// 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"
|
||||
"ctrl-w h": "workspace::ActivatePaneLeft",
|
||||
"ctrl-w l": "workspace::ActivatePaneRight"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "Pane",
|
||||
"bindings": {
|
||||
"ctrl-1": ["pane::ActivateItem", 0],
|
||||
"ctrl-2": ["pane::ActivateItem", 1],
|
||||
"ctrl-3": ["pane::ActivateItem", 2],
|
||||
"ctrl-4": ["pane::ActivateItem", 3],
|
||||
"ctrl-5": ["pane::ActivateItem", 4],
|
||||
"ctrl-6": ["pane::ActivateItem", 5],
|
||||
"ctrl-7": ["pane::ActivateItem", 6],
|
||||
"ctrl-8": ["pane::ActivateItem", 7],
|
||||
"ctrl-9": ["pane::ActivateItem", 8]
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "Editor && vim_mode == insert",
|
||||
"bindings": {
|
||||
"j j": "vim::SwitchToNormalMode",
|
||||
"ctrl-d": "editor::HalfPageDown",
|
||||
"ctrl-u": "editor::HalfPageUp",
|
||||
"alt-h": "editor::MoveLeft",
|
||||
"alt-l": "editor::MoveRight",
|
||||
"alt-j": "editor::MoveDown",
|
||||
"alt-k": "editor::MoveUp",
|
||||
"alt-b": "editor::MoveToPreviousSubwordStart",
|
||||
"alt-e": "editor::MoveToNextSubwordEnd"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "Editor && vim_mode == normal",
|
||||
"bindings": {
|
||||
"\\ f f": "workspace::OpenFiles",
|
||||
"\\ f d": "workspace::Open",
|
||||
"\\ f g": "workspace::NewSearch",
|
||||
"\\ g d": "editor::GoToDefinition",
|
||||
"\\ g r": "editor::FindAllReferences",
|
||||
"\\ c a": "editor::ToggleCodeActions",
|
||||
"\\ r n": "editor::Rename",
|
||||
"g T": "pane::ActivatePreviousItem",
|
||||
"g t": "pane::ActivateNextItem",
|
||||
"z z": "editor::ScrollCursorCenter",
|
||||
"z t": "editor::ScrollCursorTop",
|
||||
"z b": "editor::ScrollCursorBottom",
|
||||
"ctrl-w v": "pane::SplitVertical"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "Editor",
|
||||
"bindings": {
|
||||
"alt-enter": "editor::ToggleCodeActions"
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user