Skip to content

Commit

Permalink
fix not using configured editor
Browse files Browse the repository at this point in the history
  • Loading branch information
kotajacob committed Nov 3, 2023
1 parent 9a3bd2f commit 46c6152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calendar/calendar.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (c Calendar) Update(msg tea.Msg) (Calendar, tea.Cmd) {
case c.config.KeyEditNote.Contains(msg.String()):
path := filepath.Join(os.ExpandEnv(c.config.NoteDir), c.selected.Format("2006-01-02")) + ".md"
cmd := tea.ExecProcess(
exec.Command("vim", path),
exec.Command(c.config.Editor, path),
func(err error) tea.Msg {
return editorFinishedMsg{err: err}
})
Expand Down

0 comments on commit 46c6152

Please sign in to comment.