Linux configuration stuffs
at main 56 lines 1.3 kB view raw
1// Zed keymap 2// 3// For information on binding keys, see the Zed 4// documentation: https://zed.dev/docs/key-bindings 5// 6// To see the default key bindings run `zed: open default keymap` 7// from the command palette. 8[ 9 { 10 "bindings": { 11 "ctrl-\\": "workspace::ToggleBottomDock" 12 } 13 }, 14 { 15 "context": "vim_mode == normal", 16 "bindings": { 17 "space c t": "workspace::NewCenterTerminal", 18 "space l g": [ 19 "task::Spawn", 20 { "reveal_target": "center", "task_name": "lazygit" } 21 ], 22 "space f w": "workspace::NewSearch", 23 "space f p": "projects::OpenRecent", 24 "space f f": "file_finder::Toggle" 25 } 26 }, 27 { 28 "context": "Terminal", 29 "bindings": { 30 "ctrl-w k": "workspace::ActivatePaneUp" 31 } 32 }, 33 { 34 "context": "Editor", 35 "bindings": { 36 // "j k": ["workspace::SendKeystrokes", "escape"], 37 "alt-c": "pane::CloseActiveItem", 38 "alt-j": "editor::MoveLineDown", 39 "alt-k": "editor::MoveLineUp", 40 "shift-alt-j": "editor::AddSelectionBelow", 41 "shift-alt-k": "editor::AddSelectionAbove" 42 } 43 }, 44 { 45 "context": "(ProjectPanel && not_editing)", 46 "bindings": { 47 "a": "project_panel::NewFile" 48 } 49 }, 50 { 51 "context": "(ProjectPanel && not_editing)", 52 "bindings": { 53 "%": null 54 } 55 } 56]