mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-27 12:32:37 +02:00
Add Zed support to editor_presets.go
This commit is contained in:
parent
fc4cf5d196
commit
f0eafabd6d
@ -113,6 +113,13 @@ func getPreset(osConfig *OSConfig, guessDefaultEditor func() string) *editPreset
|
|||||||
openDirInEditorTemplate: "xed -- {{dir}}",
|
openDirInEditorTemplate: "xed -- {{dir}}",
|
||||||
suspend: returnBool(false),
|
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.
|
// Some of our presets have a different name than the editor they are using.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user