mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Add Zed support to editor_presets.go
This commit is contained in:
parent
fc4cf5d196
commit
f0eafabd6d
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue