Skip to content

Commit 2b3525b

Browse files
kyttastefanhaller
authored andcommitted
Fix micro editor preset
1 parent b2c46c3 commit 2b3525b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

pkg/config/editor_presets.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,15 @@ func getPreset(osConfig *OSConfig, guessDefaultEditor func() string) *editPreset
6666
return !ok
6767
},
6868
},
69-
"lvim": standardTerminalEditorPreset("lvim"),
70-
"emacs": standardTerminalEditorPreset("emacs"),
71-
"micro": standardTerminalEditorPreset("micro"),
69+
"lvim": standardTerminalEditorPreset("lvim"),
70+
"emacs": standardTerminalEditorPreset("emacs"),
71+
"micro": {
72+
editTemplate: "micro {{filename}}",
73+
editAtLineTemplate: "micro +{{line}} {{filename}}",
74+
editAtLineAndWaitTemplate: "micro +{{line}} {{filename}}",
75+
openDirInEditorTemplate: "micro {{dir}}",
76+
suspend: returnBool(true),
77+
},
7278
"nano": standardTerminalEditorPreset("nano"),
7379
"kakoune": standardTerminalEditorPreset("kak"),
7480
"helix": {

0 commit comments

Comments
 (0)