dotfiles

dot files
git clone git://git.rr3.xyz/dotfiles | git clone gits://git.rr3.xyz/dotfiles
Log | Files | Refs

commit 3129e19433c13cfaa9e6ff77fe560e225627cd04
parent c7d76b1b83635cc79c2f4594a9a1c55021da9974
Author: Robert Russell <robert@rr3.xyz>
Date:   Mon, 13 Apr 2026 11:07:50 -0700

zed: update according to new Zed version

Diffstat:
Mzed/keymap.json | 93+++++++++++++++++++++++++++++++++++++++++--------------------------------------
Mzed/settings.json | 40++++++++++++++++++++++------------------
2 files changed, 70 insertions(+), 63 deletions(-)

diff --git a/zed/keymap.json b/zed/keymap.json @@ -33,8 +33,11 @@ "ctrl-f10": "zed::OpenProjectSettings", // Fullscreen - "f11": "zed::ToggleFullScreen" - } + "f11": "zed::ToggleFullScreen", + + // Markdown + "alt-m": "markdown::OpenPreview", + }, }, // Menus @@ -49,8 +52,8 @@ "pageup": "menu::SelectFirst", "pagedown": "menu::SelectLast", "tab": "menu::SelectNext", - "shift-tab": "menu::SelectPrevious" - } + "shift-tab": "menu::SelectPrevious", + }, }, { @@ -89,8 +92,8 @@ // right now. "alt-shift-e": "workspace::ToggleLeftDock", "alt-shift-g": "workspace::ToggleRightDock", - "alt-shift-o": "workspace::ToggleRightDock" - } + "alt-shift-o": "workspace::ToggleRightDock", + }, }, { @@ -122,8 +125,8 @@ "alt-c": "search::ToggleCaseSensitive", "alt-d": "search::ToggleReplace", "alt-shift-d": "search::ReplaceNext", - "alt-ctrl-d": "search::ReplaceAll" - } + "alt-ctrl-d": "search::ReplaceAll", + }, }, // Editor (multi-line or single-line) @@ -167,8 +170,8 @@ "ctrl-v": "editor::Paste", "ctrl-z": "editor::Undo", - "ctrl-shift-z": "editor::Redo" - } + "ctrl-shift-z": "editor::Redo", + }, }, // Editor (multi-line) @@ -181,22 +184,22 @@ "ctrl-enter": "editor::NewlineBelow", "ctrl-shift-enter": "editor::NewlineAbove", - "ctrl-f": "buffer_search::Deploy" - } + "ctrl-f": "buffer_search::Deploy", + }, }, { "context": "Editor && renaming", "bindings": { - "enter": "editor::ConfirmRename" - } + "enter": "editor::ConfirmRename", + }, }, { "context": "Editor && showing_completions", "bindings": { - "enter": "editor::ConfirmCompletion" - } + "enter": "editor::ConfirmCompletion", + }, }, { @@ -205,8 +208,8 @@ "up": "editor::ContextMenuPrevious", "down": "editor::ContextMenuNext", "pageup": "editor::ContextMenuFirst", - "pagedown": "editor::ContextMenuLast" - } + "pagedown": "editor::ContextMenuLast", + }, }, { @@ -522,7 +525,7 @@ "`": null, "~": null, "ctrl-`": null, - "ctrl-~": null + "ctrl-~": null, //"ctrl-pageup": ["editor::SelectPrevious", { "replace_newest": false }], //"ctrl-pagedown": ["editor::SelectNext", { "replace_newest": false }], @@ -545,7 +548,7 @@ // "": "vim::Substitute", // "": "editor::SelectAllMatches", // TODO: replace mode - } + }, }, { @@ -616,8 +619,8 @@ "y": "vim::PushYank", "Y": "vim::YankLine", "ctrl-y": null, - "ctrl-Y": null - } + "ctrl-Y": null, + }, }, { @@ -669,8 +672,8 @@ "y": "vim::VisualYank", "Y": "vim::VisualYankLine", "ctrl-y": null, - "ctrl-Y": null - } + "ctrl-Y": null, + }, }, { @@ -678,30 +681,30 @@ "bindings": { "escape": "vim::NormalBefore", "ctrl-c": "editor::Paste", - "ctrl-space": "editor::ShowCompletions" - } + "ctrl-space": "editor::ShowCompletions", + }, }, // Make escape leave insert mode even if completions are showing. { "context": "Editor && vim_mode == insert && showing_completions", "bindings": { - "escape": "vim::NormalBefore" - } + "escape": "vim::NormalBefore", + }, }, { "context": "vim_mode == waiting", "bindings": { - "escape": "vim::ClearOperators" - } + "escape": "vim::ClearOperators", + }, }, { "context": "vim_mode == operator", "bindings": { - "escape": "vim::ClearOperators" - } + "escape": "vim::ClearOperators", + }, }, { @@ -722,37 +725,37 @@ "}": "vim::CurlyBrackets", "<": "vim::AngleBrackets", - ">": "vim::AngleBrackets" - } + ">": "vim::AngleBrackets", + }, }, { "context": "vim_operator == c", "bindings": { - "c": "vim::CurrentLine" - } + "c": "vim::CurrentLine", + }, }, { "context": "vim_operator == d", "bindings": { - "d": "vim::CurrentLine" - } + "d": "vim::CurrentLine", + }, }, { "context": "vim_operator == y", "bindings": { - "y": "vim::CurrentLine" - } + "y": "vim::CurrentLine", + }, }, { "context": "BufferSearchBar", "bindings": { "enter": "vim::SearchSubmit", - "escape": "buffer_search::Dismiss" - } + "escape": "buffer_search::Dismiss", + }, }, //"": "vim::Word", @@ -786,7 +789,7 @@ "ctrl-shift-pagedown": "terminal::ScrollPageDown", "ctrl-shift-home": "terminal::ScrollToTop", - "ctrl-shift-end": "terminal::ScrollToBottom" - } - } + "ctrl-shift-end": "terminal::ScrollToBottom", + }, + }, ] diff --git a/zed/settings.json b/zed/settings.json @@ -32,7 +32,7 @@ "theme": { "mode": "dark", "light": "KTRZ Monokai", - "dark": "KTRZ Monokai" + "dark": "KTRZ Monokai", }, "experimental.theme_overrides": { "syntax": { @@ -44,49 +44,53 @@ "punctuation.bracket": { "color": "#a7a7a7" }, "punctuation.delimiter": { "color": "#a7a7a7" }, "title": { "color": "#d7d7d7" }, - "variable": { "color": "#d7d7d7" } - } + "variable": { "color": "#d7d7d7" }, + }, }, // LSP "lsp": { "hls": { "initialization_options": { - "haskell": { "formattingProvider": "fourmolu" } - } - } + "haskell": { "formattingProvider": "fourmolu" }, + }, + }, }, "languages": { - "CSS": { "format_on_save": "off" }, "Haskell": { "hard_tabs": false, "formatter": { "external": { "command": "fourmolu", - "arguments": ["--haddock-style=single-line", "--newlines-between-decls=0", "--stdin-input-file={buffer_path}", "--in-style=no-space"] - } - } + "arguments": [ + "--haddock-style=single-line", + "--newlines-between-decls=0", + "--stdin-input-file={buffer_path}", + "--in-style=no-space", + ], + }, + }, }, - "HTML": { "format_on_save": "off" }, - "JavaScript": { "format_on_save": "off" }, + "CSS": { "formatter": "none" }, + "HTML": { "formatter": "none" }, + "JavaScript": { "formatter": "none" }, + "TypeScript": { "formatter": "none" }, "Plain Text": { "format_on_save": "off", - "remove_trailing_whitespace_on_save": false // Doesn't work?! + "remove_trailing_whitespace_on_save": false, // Doesn't work?! }, - "TypeScript": { "format_on_save": "off" } }, // Disable some crap "disable_ai": true, - "features": { "edit_prediction_provider": "none" }, "collaboration_panel": { "button": false }, "tab_bar": { "show_nav_history_buttons": false, - "show_tab_bar_buttons": false + "show_tab_bar_buttons": false, }, "terminal": { "button": false }, "telemetry": { "diagnostics": false, - "metrics": false - } + "metrics": false, + }, }