Created
July 6, 2024 21:09
-
-
Save chaance/248fd68caab4b127ab40d6b1838bfad9 to your computer and use it in GitHub Desktop.
Zed stuff
This file contains 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
[ | |
{ | |
"context": "Editor", | |
"bindings": { | |
"escape": "editor::Cancel", | |
"backspace": "editor::Backspace", | |
"shift-backspace": "editor::Backspace", | |
"ctrl-h": "editor::Backspace", | |
"delete": "editor::Delete", | |
"ctrl-d": "editor::Delete", | |
"tab": "editor::Tab", | |
"shift-tab": "editor::TabPrev", | |
"ctrl-k": "editor::CutToEndOfLine", | |
"ctrl-t": "editor::Transpose", | |
"cmd-backspace": "editor::DeleteToBeginningOfLine", | |
"cmd-delete": "editor::DeleteToEndOfLine", | |
"alt-backspace": "editor::DeleteToPreviousWordStart", | |
"alt-delete": "editor::DeleteToNextWordEnd", | |
"alt-h": "editor::DeleteToPreviousWordStart", | |
"alt-d": "editor::DeleteToNextWordEnd", | |
"cmd-x": "editor::Cut", | |
"cmd-c": "editor::Copy", | |
"cmd-v": "editor::Paste", | |
"cmd-z": "editor::Undo", | |
"cmd-shift-z": "editor::Redo", | |
"up": "editor::MoveUp", | |
"ctrl-up": "editor::MoveToStartOfParagraph", | |
"pageup": "editor::PageUp", | |
"shift-pageup": "editor::MovePageUp", | |
"home": "editor::MoveToBeginningOfLine", | |
"down": "editor::MoveDown", | |
"ctrl-down": "editor::MoveToEndOfParagraph", | |
"pagedown": "editor::PageDown", | |
"shift-pagedown": "editor::MovePageDown", | |
"end": "editor::MoveToEndOfLine", | |
"left": "editor::MoveLeft", | |
"right": "editor::MoveRight", | |
// "ctrl-p": "editor::MoveUp", | |
// "ctrl-n": "editor::MoveDown", | |
// "ctrl-b": "editor::MoveLeft", | |
// "ctrl-f": "editor::MoveRight", | |
"ctrl-l": "editor::NextScreen", | |
"alt-left": "editor::MoveToPreviousWordStart", | |
"alt-b": "editor::MoveToPreviousWordStart", | |
"alt-right": "editor::MoveToNextWordEnd", | |
"alt-f": "editor::MoveToNextWordEnd", | |
"cmd-left": "editor::MoveToBeginningOfLine", | |
"ctrl-a": "editor::MoveToBeginningOfLine", | |
"cmd-right": "editor::MoveToEndOfLine", | |
"ctrl-e": "editor::MoveToEndOfLine", | |
"cmd-up": "editor::MoveToBeginning", | |
"cmd-down": "editor::MoveToEnd", | |
"shift-up": "editor::SelectUp", | |
"ctrl-shift-p": "editor::SelectUp", | |
"shift-down": "editor::SelectDown", | |
"ctrl-shift-n": "editor::SelectDown", | |
"shift-left": "editor::SelectLeft", | |
"ctrl-shift-b": "editor::SelectLeft", | |
"shift-right": "editor::SelectRight", | |
"ctrl-shift-f": "editor::SelectRight", | |
"alt-shift-left": "editor::SelectToPreviousWordStart", | |
"alt-shift-b": "editor::SelectToPreviousWordStart", | |
"alt-shift-right": "editor::SelectToNextWordEnd", | |
"alt-shift-f": "editor::SelectToNextWordEnd", | |
"ctrl-shift-up": "editor::SelectToStartOfParagraph", | |
"ctrl-shift-down": "editor::SelectToEndOfParagraph", | |
"cmd-shift-up": "editor::SelectToBeginning", | |
"cmd-shift-down": "editor::SelectToEnd", | |
"cmd-a": "editor::SelectAll", | |
"cmd-l": "editor::SelectLine", | |
"ctrl-shift-alt-cmd-f": "editor::Format", | |
"ctrl-`": "workspace::ToggleBottomDock", | |
"ctrl-b": "workspace::ToggleRightDock", | |
"ctrl-shift-`": "terminal_panel::ToggleFocus", | |
"cmd-shift-d": "editor::DuplicateLineDown", | |
"cmd-shift-left": [ | |
"editor::SelectToBeginningOfLine", | |
{ "stop_at_soft_wraps": true } | |
], | |
"shift-home": [ | |
"editor::SelectToBeginningOfLine", | |
{ "stop_at_soft_wraps": true } | |
], | |
"ctrl-shift-a": [ | |
"editor::SelectToBeginningOfLine", | |
{ "stop_at_soft_wraps": true } | |
], | |
"cmd-shift-right": [ | |
"editor::SelectToEndOfLine", | |
{ "stop_at_soft_wraps": true } | |
], | |
"shift-end": [ | |
"editor::SelectToEndOfLine", | |
{ "stop_at_soft_wraps": true } | |
], | |
"ctrl-shift-e": [ | |
"editor::SelectToEndOfLine", | |
{ "stop_at_soft_wraps": true } | |
], | |
"ctrl-v": [ | |
"editor::MovePageDown", | |
{ | |
"center_cursor": true | |
} | |
], | |
"alt-v": [ | |
"editor::MovePageUp", | |
{ | |
"center_cursor": true | |
} | |
], | |
"ctrl-cmd-space": "editor::ShowCharacterPalette" | |
} | |
}, | |
{ | |
"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" | |
} | |
}, | |
{ | |
"context": "Editor && inline_completion && !showing_completions", | |
"bindings": { | |
"cmd-enter": "editor::AcceptInlineCompletion" | |
} | |
} | |
] |
This file contains 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
// Zed settings | |
// | |
// For information on how to configure Zed, see the Zed | |
// documentation: https://zed.dev/docs/configuring-zed | |
// | |
// To see all of Zed's default settings without changing your | |
// custom settings, run the `open default settings` command | |
// from the command palette or from `Zed` application menu. | |
{ | |
"theme": "Github Dark", | |
"base_keymap": "VSCode", | |
"features": { | |
// Show Copilot icon in status bar | |
"copilot": true | |
}, | |
"buffer_font_family": "Berkeley Mono Variable", | |
"buffer_font_features": { | |
// Disable ligatures: | |
"calt": true | |
}, | |
"buffer_font_size": 15, | |
// Set the buffer's line height. | |
// May take 3 values: | |
// 1. Use a line height that's comfortable for reading (1.618) | |
// "line_height": "comfortable" | |
// 2. Use a standard line height, (1.3) | |
// "line_height": "standard", | |
// 3. Use a custom line height | |
// "line_height": { | |
// "custom": 2 | |
// }, | |
"buffer_line_height": "comfortable", | |
// The name of a font to use for rendering text in the UI | |
// "ui_font_family": "Zed Sans", | |
"ui_font_family": "Berkeley Mono Variable", | |
// The OpenType features to enable for text in the UI | |
"ui_font_features": { | |
// Disable ligatures: | |
"calt": true | |
}, | |
"ui_font_size": 14, | |
"active_pane_magnification": 1.0, | |
"vim_mode": false, | |
"scrollbar": { | |
// When to show the scrollbar in the editor. | |
// This setting can take four values: | |
// | |
// 1. Show the scrollbar if there's important information or | |
// follow the system's configured behavior (default): | |
// "auto" | |
// 2. Match the system's configured behavior: | |
// "system" | |
// 3. Always show the scrollbar: | |
// "always" | |
// 4. Never show the scrollbar: | |
// "never" | |
"show": "auto", | |
// Whether to show git diff indicators in the scrollbar. | |
"git_diff": true, | |
// Whether to show selections in the scrollbar. | |
"selections": false | |
}, | |
// When to populate a new search's query based on the text under the cursor. | |
// This setting can take the following three values: | |
// | |
// 1. Always populate the search query with the word under the cursor (default). | |
// "always" | |
// 2. Only populate the search query when there is text selected | |
// "selection" | |
// 3. Never populate the search query | |
// "never" | |
"seed_search_query_from_cursor": "selection", | |
"project_panel": { | |
// Default width of the project panel. | |
"default_width": 300, | |
"dock": "right", | |
"file_icons": true, | |
"folder_icons": true, | |
"git_status": true, | |
"indent_size": 20, | |
// Whether to reveal it in the project panel automatically, | |
// when a corresponding project entry becomes active. | |
// Gitignored entries are never auto revealed. | |
"auto_reveal_entries": true | |
}, | |
"collaboration_panel": { | |
// Whether to show the collaboration panel button in the status bar. | |
"button": false, | |
"dock": "right", | |
"default_width": 300 | |
}, | |
"chat_panel": { | |
// Whether to show the collaboration panel button in the status bar. | |
"button": false, | |
"dock": "right", | |
"default_width": 300 | |
}, | |
"notification_panel": { | |
// Whether to show the collaboration panel button in the status bar. | |
"button": false, | |
"dock": "right", | |
"default_width": 300 | |
}, | |
"assistant": { | |
"version": "1", | |
// Whether to show the assistant panel button in the status bar. | |
"button": true, | |
"dock": "bottom", | |
"default_width": 640, | |
"default_height": 320, | |
// The default OpenAI model to use when starting new conversations. This | |
// setting can take three values: | |
// | |
// 1. "gpt-3.5-turbo-0613"" | |
// 2. "gpt-4-0613"" | |
// 3. "gpt-4-1106-preview" | |
"default_open_ai_model": "gpt-4-1106-preview" | |
}, | |
// Whether the screen sharing icon is shown in the os status bar. | |
"show_call_status_icon": true, | |
// Whether to use language servers to provide code intelligence. | |
"enable_language_server": true, | |
// Whether to start a new line with a comment when a previous line is a comment as well. | |
"extend_comment_on_newline": true, | |
// Whether or not to ensure there's a single newline at the end of a buffer | |
// when saving it. | |
"ensure_final_newline_on_save": true, | |
// Whether or not to perform a buffer format before saving | |
"format_on_save": "on", | |
// How to perform a buffer format. This setting can take 4 values: | |
// | |
// 1. Format code using the current language server: | |
// "formatter": "language_server" | |
// 2. Format code using an external command: | |
// "formatter": { | |
// "external": { | |
// "command": "prettier", | |
// "arguments": ["--stdin-filepath", "{buffer_path}"] | |
// } | |
// } | |
// 3. Format code using Zed's Prettier integration: | |
// "formatter": "prettier" | |
// 4. Default. Format files using Zed's Prettier integration (if applicable), | |
// or falling back to formatting via language server: | |
// "formatter": "auto" | |
"formatter": "prettier", | |
// How to soft-wrap long lines of text. This setting can take | |
// three values: | |
// | |
// 1. Do not soft wrap. | |
// "soft_wrap": "none", | |
// 2. Soft wrap lines that overflow the editor: | |
// "soft_wrap": "editor_width", | |
// 3. Soft wrap lines at the preferred line length | |
// "soft_wrap": "preferred_line_length", | |
"soft_wrap": "editor_width", | |
// The column at which to soft-wrap lines, for buffers where soft-wrap | |
// is enabled. | |
"preferred_line_length": 80, | |
// Whether to indent lines using tab characters, as opposed to multiple | |
// spaces. | |
"hard_tabs": true, | |
"wrap_guides": [80], | |
// How many columns a tab should occupy. | |
"tab_size": 2, | |
// Control what info is collected by Zed. | |
"telemetry": { | |
// Send debug info like crash reports. | |
"diagnostics": true, | |
// Send anonymized usage data like what languages you're using Zed with. | |
"metrics": true | |
}, | |
// Automatically update Zed | |
"auto_update": true, | |
// Diagnostics configuration. | |
"diagnostics": { | |
// Whether to show warnings or not by default. | |
"include_warnings": true | |
}, | |
// Add files or globs of files that will be excluded by Zed entirely: | |
// they will be skipped during FS scan(s), file tree and file search | |
// will lack the corresponding file entries. | |
"file_scan_exclusions": [ | |
"**/.git", | |
"**/.svn", | |
"**/.hg", | |
"**/CVS", | |
"**/.DS_Store", | |
"**/Thumbs.db", | |
"**/.classpath", | |
"**/.settings" | |
], | |
// Git gutter behavior configuration. | |
"git": { | |
// Control whether the git gutter is shown. May take 2 values: | |
// 1. Show the gutter | |
// "git_gutter": "tracked_files" | |
// 2. Hide the gutter | |
// "git_gutter": "hide" | |
"git_gutter": "tracked_files" | |
}, | |
"copilot": { | |
// The set of glob patterns for which copilot should be disabled | |
// in any matching file. | |
"disabled_globs": [".env"] | |
}, | |
// Settings specific to journaling | |
"journal": { | |
// The path of the directory where journal entries are stored | |
"path": "~", | |
// What format to display the hours in | |
// May take 2 values: | |
// 1. hour12 | |
// 2. hour24 | |
"hour_format": "hour12" | |
}, | |
// Settings specific to the terminal | |
"terminal": { | |
// What shell to use when opening a terminal. May take 3 values: | |
// 1. Use the system's default terminal configuration in /etc/passwd | |
// "shell": "system" | |
// 2. A program: | |
// "shell": { | |
// "program": "sh" | |
// } | |
// 3. A program with arguments: | |
// "shell": { | |
// "with_arguments": { | |
// "program": "/bin/bash", | |
// "arguments": ["--login"] | |
// } | |
// } | |
"shell": "system", | |
// Where to dock terminals panel. Can be 'left', 'right', 'bottom'. | |
"dock": "bottom", | |
// Default width when the terminal is docked to the left or right. | |
"default_width": 640, | |
// Default height when the terminal is docked to the bottom. | |
"default_height": 320, | |
// What working directory to use when launching the terminal. | |
// May take 4 values: | |
// 1. Use the current file's project directory. Will Fallback to the | |
// first project directory strategy if unsuccessful | |
// "working_directory": "current_project_directory" | |
// 2. Use the first project in this workspace's directory | |
// "working_directory": "first_project_directory" | |
// 3. Always use this platform's home directory (if we can find it) | |
// "working_directory": "always_home" | |
// 4. Always use a specific directory. This value will be shell expanded. | |
// If this path is not a valid directory the terminal will default to | |
// this platform's home directory (if we can find it) | |
// "working_directory": { | |
// "always": { | |
// "directory": "~/zed/projects/" | |
// } | |
// } | |
"working_directory": "current_project_directory", | |
// Set the cursor blinking behavior in the terminal. | |
// May take 3 values: | |
// 1. Never blink the cursor, ignoring the terminal mode | |
// "blinking": "off", | |
// 2. Default the cursor blink to off, but allow the terminal to | |
// set blinking | |
// "blinking": "terminal_controlled", | |
// 3. Always blink the cursor, ignoring the terminal mode | |
// "blinking": "on", | |
"blinking": "terminal_controlled", | |
// Set whether Alternate Scroll mode (code: ?1007) is active by default. | |
// Alternate Scroll mode converts mouse scroll events into up / down key | |
// presses when in the alternate screen (e.g. when running applications | |
// like vim or less). The terminal can still set and unset this mode. | |
// May take 2 values: | |
// 1. Default alternate scroll mode to on | |
// "alternate_scroll": "on", | |
// 2. Default alternate scroll mode to off | |
// "alternate_scroll": "off", | |
"alternate_scroll": "off", | |
// Set whether the option key behaves as the meta key. | |
// May take 2 values: | |
// 1. Rely on default platform handling of option key, on macOS | |
// this means generating certain unicode characters | |
// "option_to_meta": false, | |
// 2. Make the option keys behave as a 'meta' key, e.g. for emacs | |
// "option_to_meta": true, | |
"option_as_meta": false, | |
// Whether or not selecting text in the terminal will automatically | |
// copy to the system clipboard. | |
"copy_on_select": false, | |
// Any key-value pairs added to this list will be added to the terminal's | |
// environment. Use `:` to separate multiple values. | |
"env": { | |
// "KEY": "value1:value2" | |
}, | |
// Set the terminal's line height. | |
// May take 3 values: | |
// 1. Use a line height that's comfortable for reading, 1.618 | |
// "line_height": "comfortable" | |
// 2. Use a standard line height, 1.3. This option is useful for TUIs, | |
// particularly if they use box characters | |
// "line_height": "standard", | |
// 3. Use a custom line height. | |
// "line_height": { | |
// "custom": 2 | |
// }, | |
"line_height": "comfortable", | |
// Activate the python virtual environment, if one is found, in the | |
// terminal's working directory (as resolved by the working_directory | |
// setting). Set this to "off" to disable this behavior. | |
"detect_venv": { | |
"on": { | |
// Default directories to search for virtual environments, relative | |
// to the current working directory. We recommend overriding this | |
// in your project's settings, rather than globally. | |
"directories": [".env", "env", ".venv", "venv"], | |
// Can also be 'csh', 'fish', and `nushell` | |
"activate_script": "default" | |
} | |
} | |
// Set the terminal's font size. If this option is not included, | |
// the terminal will default to matching the buffer's font size. | |
// "font_size": "15", | |
// Set the terminal's font family. If this option is not included, | |
// the terminal will default to matching the buffer's font family. | |
// "font_family": "Zed Mono", | |
// --- | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment