basic mappings improved
This commit is contained in:
36
keymap.json
36
keymap.json
@@ -4,11 +4,11 @@
|
||||
// documentation: https://zed.dev/docs/key-bindings
|
||||
// To see the default key bindings run `zed: Open Default Keymap`
|
||||
// from the command palette.
|
||||
// NOTE: defaults on: https://github.com/zed-industries/zed/blob/main/assets/keymaps/default-macos.json
|
||||
[
|
||||
{
|
||||
"context": "Workspace",
|
||||
"bindings": {
|
||||
// "shift shift": "file_finder::Toggle"
|
||||
"ctrl-h": [
|
||||
"workspace::ActivatePaneInDirection",
|
||||
"Left"
|
||||
@@ -25,7 +25,8 @@
|
||||
"workspace::ActivatePaneInDirection",
|
||||
"Down"
|
||||
]
|
||||
}
|
||||
},
|
||||
"ctrl-x": "workspace::ToggleBottomDock"
|
||||
},
|
||||
{
|
||||
"context": "Editor",
|
||||
@@ -33,16 +34,31 @@
|
||||
// "j k": ["workspace::SendKeystrokes", "escape"]
|
||||
"ctrl-t": "workspace::NewFile",
|
||||
"ctrl-w": "pane::CloseActiveItem",
|
||||
"ctrl-W": "pane::CloseAllItems"
|
||||
"ctrl-W": "pane::CloseAllItems",
|
||||
"ctrl-n": "workspace::ToggleLeftDock",
|
||||
"ctrl-m": "workspace::ToggleBottomDock"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "Editor && vim_mode == insert",
|
||||
"bindings": {
|
||||
"j k": [
|
||||
"workspace::SendKeystrokes",
|
||||
"escape"
|
||||
]
|
||||
// "j k": [
|
||||
// "workspace::SendKeystrokes",
|
||||
// "escape"
|
||||
// ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "Editor && (showing_code_actions || showing_completions)",
|
||||
"bindings": {
|
||||
"up": "editor::ContextMenuPrev",
|
||||
"ctrl-p": "editor::ContextMenuPrev",
|
||||
"down": "editor::ContextMenuNext",
|
||||
"ctrl-n": "editor::ContextMenuNext",
|
||||
"pageup": "editor::ContextMenuFirst",
|
||||
"pagedown": "editor::ContextMenuLast",
|
||||
"tab": "editor::ContextMenuNext",
|
||||
"shift-tab": "editor::ContextMenuPrev"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -51,6 +67,8 @@
|
||||
"space x": "pane::CloseActiveItem",
|
||||
"space X": "pane::CloseAllItems",
|
||||
"space b": "workspace::NewFile",
|
||||
"space f f": "file_finder::Toggle",
|
||||
"space space": "file_finder::Toggle",
|
||||
"shift-tab": "pane::ActivatePrevItem",
|
||||
"tab": "pane::ActivateNextItem",
|
||||
"ctrl-h": [
|
||||
@@ -74,8 +92,10 @@
|
||||
{
|
||||
"context": "Terminal",
|
||||
"bindings": {
|
||||
"ctrl-n": "workspace::ToggleLeftDock",
|
||||
"ctrl-t": "workspace::NewTerminal",
|
||||
"ctrl-w": "pane::CloseActiveItem"
|
||||
"ctrl-w": "pane::CloseActiveItem",
|
||||
"ctrl-m": "workspace::ToggleBottomDock"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user