From d46a2eddfc23f958b84aa8fbd4f418c088c1a059 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Wed, 17 Jul 2024 14:44:18 -0400 Subject: [PATCH] Allow parsing different section headers in libmutton.ini --- src/cli/edit.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cli/edit.go b/src/cli/edit.go index f149b6e..9fa3730 100644 --- a/src/cli/edit.go +++ b/src/cli/edit.go @@ -3,12 +3,13 @@ package cli import ( "bufio" "fmt" - "github.com/rwinkhart/MUTN/src/backend" - "github.com/rwinkhart/MUTN/src/sync" "os" "os/exec" "reflect" "strings" + + "github.com/rwinkhart/MUTN/src/backend" + "github.com/rwinkhart/MUTN/src/sync" ) // RenameCli renames an entry at oldLocationIncomplete to a new location (user input) on both the client and the server @@ -74,7 +75,7 @@ func editNote(baseNote []string) ([]string, bool) { }(tempFile.Name()) // fetch the user's text editor - editor := backend.ParseConfig([]string{"textEditor"}, "")[0] + editor := backend.ParseConfig([][2]string{{"LIBMUTTON", "textEditor"}}, "")[0] // write baseNote to tempFile (if it is not empty) if len(baseNote) > 0 {