1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-25 12:24:47 +02:00

Add Zed support to editor_presets.go

This commit is contained in:
Dmytro Suvorov 2024-09-03 17:30:56 +03:00 committed by GitHub
parent fc4cf5d196
commit f0eafabd6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.