From f0eafabd6dfdccad00cf122b45fa73c89458c3ab Mon Sep 17 00:00:00 2001 From: Dmytro Suvorov <992467+susl@users.noreply.github.com> Date: Tue, 3 Sep 2024 17:30:56 +0300 Subject: [PATCH] Add Zed support to editor_presets.go --- pkg/config/editor_presets.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/config/editor_presets.go b/pkg/config/editor_presets.go index ca784c135..3a14c886f 100644 --- a/pkg/config/editor_presets.go +++ b/pkg/config/editor_presets.go @@ -113,6 +113,13 @@ func getPreset(osConfig *OSConfig, guessDefaultEditor func() string) *editPreset openDirInEditorTemplate: "xed -- {{dir}}", suspend: returnBool(false), }, + "zed": { + editTemplate: "zed -- {{filename}}", + editAtLineTemplate: "zed -- {{filename}}:{{line}}", + editAtLineAndWaitTemplate: "zed --wait -- {{filename}}:{{line}}", + openDirInEditorTemplate: "zed -- {{dir}}", + suspend: returnBool(false), + }, } // Some of our presets have a different name than the editor they are using.