Skip to content

Instantly share code, notes, and snippets.

@Kerollmops
Last active April 25, 2024 14:47

Revisions

  1. Kerollmops revised this gist Apr 25, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion keymap.json
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@
    "cmd-shift-space": "editor::SelectAll",
    "ctrl-cmd-up": "editor::MoveLineUp",
    "ctrl-cmd-down": "editor::MoveLineDown",
    "cmd-shift-d": "editor::DuplicateLine",
    "cmd-shift-d": "editor::DuplicateLineDown",
    "ctrl-shift-m": "editor::SelectLargerSyntaxNode",
    "cmd-shift-l": "editor::SplitSelectionIntoLines",
    "cmd-shift-a": "editor::SelectLargerSyntaxNode",
  2. Kerollmops renamed this gist Apr 25, 2024. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. Kerollmops created this gist Apr 25, 2024.
    58 changes: 58 additions & 0 deletions keymaop.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,58 @@
    [
    {
    "bindings": {
    "cmd-shift-[": "pane::ActivatePrevItem",
    "cmd-shift-]": "pane::ActivateNextItem",
    "ctrl-pagedown": "pane::ActivatePrevItem",
    "ctrl-pageup": "pane::ActivateNextItem",
    "ctrl-shift-tab": "pane::ActivateNextItem",
    "ctrl-tab": "pane::ActivatePrevItem",
    "cmd-+": "zed::IncreaseBufferFontSize"
    }
    },
    {
    "context": "Editor",
    "bindings": {
    "ctrl-shift-up": "editor::AddSelectionAbove",
    "ctrl-shift-down": "editor::AddSelectionBelow",
    "cmd-shift-space": "editor::SelectAll",
    "ctrl-cmd-up": "editor::MoveLineUp",
    "ctrl-cmd-down": "editor::MoveLineDown",
    "cmd-shift-d": "editor::DuplicateLine",
    "ctrl-shift-m": "editor::SelectLargerSyntaxNode",
    "cmd-shift-l": "editor::SplitSelectionIntoLines",
    "cmd-shift-a": "editor::SelectLargerSyntaxNode",
    "shift-f12": "editor::FindAllReferences",
    "alt-cmd-down": "editor::GoToDefinition",
    "ctrl-alt-cmd-down": "editor::GoToDefinitionSplit",
    "alt-shift-cmd-down": "editor::FindAllReferences",
    "ctrl-.": "editor::GoToHunk",
    "ctrl-,": "editor::GoToPrevHunk",
    "ctrl-backspace": "editor::DeleteToPreviousWordStart",
    "ctrl-delete": "editor::DeleteToNextWordEnd"
    }
    },
    {
    "context": "Editor && mode == full",
    "bindings": {
    "cmd-r": "outline::Toggle"
    }
    },
    {
    "context": "Pane",
    "bindings": {
    "f4": "search::SelectNextMatch",
    "shift-f4": "search::SelectPrevMatch"
    }
    },
    {
    "context": "Workspace",
    "bindings": {
    "cmd-k cmd-b": "workspace::ToggleLeftDock",
    "cmd-t": "file_finder::Toggle",
    "shift-cmd-r": "project_symbols::Toggle",
    // Currently busted: https://github.com/zed-industries/feedback/issues/898
    "ctrl-0": "project_panel::ToggleFocus"
    }
    }
    ]