Created
January 3, 2025 07:30
-
-
Save keyle/e728e78ff400a2ed77b2c20365d55eae to your computer and use it in GitHub Desktop.
zed keymap and settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"bindings": { | |
"cmd-[": "pane::GoBack", | |
"cmd-]": "pane::GoForward", | |
"cmd-shift-r": "file_finder::Toggle", | |
"cmd-g": "editor::GoToDefinition", | |
"ctrl-g": "editor::OpenExcerpts", // alt-enter | |
"ctrl-[": "workspace::ActivatePreviousPane", | |
"ctrl-]": "workspace::ActivateNextPane", | |
"cmd-p": "editor::ToggleCodeActions", | |
"cmd-shift-g": "editor::FindAllReferences", | |
"cmd-alt-g": "editor::GoToTypeDefinition", | |
"cmd-k cmd-k": "editor::ToggleComments", | |
"cmd-up": "editor::MoveToStartOfParagraph", | |
"cmd-down": "editor::MoveToEndOfParagraph", | |
"cmd-shift--": "editor::FoldAll", | |
"cmd-shift-=": "editor::UnfoldLines", | |
"f3": "editor::SelectNext", | |
"f4": "editor::SwitchSourceHeader", | |
"f6": "terminal_panel::ToggleFocus", | |
"cmd-d": "editor::DuplicateLineDown", | |
"alt-up": "editor::MoveLineUp", | |
"alt-down": "editor::MoveLineDown", | |
"cmd--": "editor::Fold", | |
"cmd-=": "editor::UnfoldLines", | |
"cmd-e": "editor::Format", | |
"cmd-r": "editor::Rename", | |
"cmd-l": "go_to_line::Toggle", | |
"cmd-b": "workspace::ToggleBottomDock", | |
"cmd-1": "workspace::ToggleLeftDock", | |
"cmd-i": "editor::Hover", | |
"cmd-shift-j": "workspace::ToggleRightDock", | |
"cmd-f12": "editor::RestartLanguageServer", | |
"cmd-shift-t": "pane::ReopenClosedItem", | |
"cmd-shift-w": "pane::CloseInactiveItems", | |
"pageup": "editor::MoveToStartOfParagraph", | |
"pagedown": "editor::MoveToEndOfParagraph", | |
"cmd-ctrl-c": "editor::ToggleInlineCompletions", | |
"cmd-f3": "search::SelectNextMatch", | |
// | |
// NOTE: for tasks: see ~/.config/zed/tasks.json | |
// or they can be in local project .zed/tasks.json | |
"f5": ["task::Spawn", { "task_name": "make command" }], | |
"f8": ["task::Spawn", { "task_name": "killall" }] | |
} | |
}, | |
{ | |
"context": "Editor", | |
"bindings": { | |
"alt-w": "editor::SelectLargerSyntaxNode" | |
} | |
}, | |
{ | |
"context": "BufferSearchBar", | |
"bindings": { | |
"enter": "search::SelectNextMatch", | |
"shift-enter": "search::SelectPrevMatch", | |
"f4": "search::SelectAllMatches" | |
} | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"features": { | |
"copilot": false | |
}, | |
"copilot": { | |
"disabled_globs": [".env", "examples/**"] | |
}, | |
"base_keymap": "VSCode", | |
"theme": "Simply2", | |
"ui_font_size": 14, | |
"unstable.ui_density": "comfortable", | |
"ui_font_family": "Berkeley Mono", | |
"buffer_font_size": 14, | |
"buffer_line_height": "comfortable", | |
"buffer_font_family": "Berkeley Mono", | |
"cursor_blink": false, | |
"cursor_shape": "block", | |
"vertical_scroll_margin": 10, | |
"preferred_line_length": 180, | |
"ensure_final_newline_on_save": true, | |
"use_autoclose": false, | |
"buffer_font_features": { | |
"calt": false | |
}, | |
"collaboration_panel": { | |
"button": false | |
}, | |
"format_on_save": "off", | |
"assistant": { | |
"default_model": { | |
"provider": "copilot_chat", | |
"model": "gpt-4o" | |
}, | |
"version": "2", | |
"button": false | |
}, | |
"gutter": { | |
"enabled": true, | |
"show_line_numbers": false, | |
"show_line_diff": true, | |
"show_line_diff_width": 1, | |
"show_line_diff_color": "#ffcd11", | |
"show_line_diff_gutter": true, | |
"show_line_diff_gutter_width": 2, | |
"show_line_diff_gutter_color": "#ffcd11", | |
"show_line_diff_gutter_background": "#000000" | |
}, | |
"tabs": { | |
"git_status": false | |
}, | |
"telemetry": { | |
"diagnostics": false, | |
"metrics": false | |
}, | |
"auto_update": true, | |
"languages": { | |
"Go": { | |
"tab_size": 4, | |
"hard_tabs": true | |
}, | |
"JavaScript": { | |
"tab_size": 4 | |
}, | |
"TypeScript": { | |
"tab_size": 4 | |
}, | |
"TSX": { | |
"tab_size": 4 | |
}, | |
"YAML": { | |
"tab_size": 4 | |
}, | |
"JSON": { | |
"tab_size": 4 | |
} | |
}, | |
// "lsp": { | |
// "dart": { | |
// "settings": { | |
// "lineLength": 150 | |
// } | |
// } | |
// }, | |
"git": { | |
"inline_blame": { | |
"enabled": false, | |
"delay_ms": 2000 | |
}, | |
"git_gutter": "tracked_files" | |
}, | |
"scrollbar": { | |
"git_diff": false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment