[ { "bindings": { "ctrl-h": ["workspace::ActivatePaneInDirection", "Left"], "ctrl-l": ["workspace::ActivatePaneInDirection", "Right"], "ctrl-k": ["workspace::ActivatePaneInDirection", "Up"], "ctrl-j": ["workspace::ActivatePaneInDirection", "Down"], "cmd-e": "workspace::ToggleLeftDock", "cmd-t": "terminal_panel::ToggleFocus", "cmd-b": "workspace::ToggleRightDock" } }, { "context": "Editor && (vim_mode == normal || vim_mode == visual) && !VimWaiting && !menu", "bindings": { "space t t": "workspace::ToggleBottomDock", // put key-bindings here if you want them to work in normal & visual mode // Git "space g h d": "editor::ToggleHunkDiff", "space g h r": "editor::RevertSelectedHunks", // Open markdown preview "space m p": "markdown::OpenPreview", "space m P": "markdown::OpenPreviewToTheSide", // Open recent project "space f p": "projects::OpenRecent", // Search word under cursor "space f w": "pane::DeploySearch", // Chat with AI "space a c": "assistant::ToggleFocus", // Go to file with `gf` "g f": "editor::OpenExcerpts" } }, // surround { "context": "Editor && vim_mode == visual && !VimWaiting && !VimObject", "bindings": { "shift-s l": [ "workspace::SendKeystrokes", "d i <%= space space %> left left left ~ ~ ~ ~ p" ], "shift-s L": [ "workspace::SendKeystrokes", "d i <% space space %> left left left ~ ~ ~ ~ p" ], "shift-s >": [ "workspace::SendKeystrokes", "d i < space space > left left ~ ~ ~ ~ p" ], "shift-s <": ["workspace::SendKeystrokes", "d i < > left ~ ~ ~ ~ p"], // shift-s binds (Surround) rely on custom keybinding (~ ~ ~ ~ p) for vim paste "shift-s '": ["workspace::SendKeystrokes", "d i ' ' left ~ ~ ~ ~ p"], "shift-s `": ["workspace::SendKeystrokes", "d i ` ` left ~ ~ ~ ~ p"], "shift-s \"": ["workspace::SendKeystrokes", "d i \" \" left ~ ~ ~ ~ p"], "shift-s ]