From 126b4e9cf4f1a11f6ce03d39370976b6e3bbe273 Mon Sep 17 00:00:00 2001 From: Graham Hall Date: Sun, 16 Feb 2025 10:00:44 -0500 Subject: [PATCH] 2025-02-16 --- zed_config/keymap.json | 18 +++++++++++++++++- zed_config/settings.json | 11 ++++++----- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/zed_config/keymap.json b/zed_config/keymap.json index 0281ff6..d8f3b4c 100644 --- a/zed_config/keymap.json +++ b/zed_config/keymap.json @@ -201,6 +201,22 @@ "cmd-alt-e": "editor::SelectEnclosingSymbol" } }, + { + "context": "Editor && mode == full && edit_prediction", + "use_key_equivalents": true, + "bindings": { + "alt-tab": "editor::NextEditPrediction", + "alt-shift-tab": "editor::PreviousEditPrediction", + "ctrl-cmd-right": "editor::AcceptPartialEditPrediction" + } + }, + { + "context": "Editor && !edit_prediction", + "use_key_equivalents": true, + "bindings": { + "alt-tab": "editor::ShowEditPrediction" + } + }, { "context": "Editor && mode == auto_height", "bindings": { @@ -526,7 +542,7 @@ } }, { - "context": "Editor && inline_completion && !showing_completions", + "context": "Editor && edit_prediction && !showing_completions", "bindings": { "tab": "editor::ConfirmCompletion" } diff --git a/zed_config/settings.json b/zed_config/settings.json index 9efe3a0..c017135 100644 --- a/zed_config/settings.json +++ b/zed_config/settings.json @@ -1,12 +1,11 @@ { "icon_theme": "Catppuccin Latte", "show_user_picture": false, - "show_inline_completions": true, + "show_edit_predictions": true, "base_keymap": "None", "outline_panel": { "dock": "right" }, - "telemetry": { "diagnostics": true, "metrics": false @@ -16,7 +15,9 @@ "enabled": false, "dock": "bottom" }, - + "edit_predictions": { + "mode": "eager_preview" + }, "features": { "edit_prediction_provider": "zed" }, @@ -68,10 +69,10 @@ }, "languages": { "JSONC": { - "show_inline_completions": false + "show_edit_predictions": false }, "Markdown": { - "show_inline_completions": false + "show_edit_predictions": false }, "Go": { "tab_size": 2