1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2026-06-20 01:19:23 +02:00

Merge pull request #2577 from jbrains/add-editor-preset-for-kakoune

This commit is contained in:
Jesse Duffield
2023-04-29 12:39:10 +10:00
committed by GitHub
+2
View File
@@ -42,6 +42,7 @@ func getPreset(osConfig *OSConfig, guessDefaultEditor func() string) *editPreset
"nvim": standardTerminalEditorPreset("nvim"), "nvim": standardTerminalEditorPreset("nvim"),
"emacs": standardTerminalEditorPreset("emacs"), "emacs": standardTerminalEditorPreset("emacs"),
"nano": standardTerminalEditorPreset("nano"), "nano": standardTerminalEditorPreset("nano"),
"kakoune": standardTerminalEditorPreset("kakoune"),
"vscode": { "vscode": {
editTemplate: "code --reuse-window -- {{filename}}", editTemplate: "code --reuse-window -- {{filename}}",
editAtLineTemplate: "code --reuse-window --goto -- {{filename}}:{{line}}", editAtLineTemplate: "code --reuse-window --goto -- {{filename}}:{{line}}",
@@ -70,6 +71,7 @@ func getPreset(osConfig *OSConfig, guessDefaultEditor func() string) *editPreset
// 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.
editorToPreset := map[string]string{ editorToPreset := map[string]string{
"kak": "kakoune",
"code": "vscode", "code": "vscode",
"subl": "sublime", "subl": "sublime",
"xed": "xcode", "xed": "xcode",