Implement note editing

This commit is contained in:
2024-03-07 20:15:01 -05:00
parent c0d141a02e
commit 80f1e27507
4 changed files with 92 additions and 54 deletions
+6 -4
View File
@@ -50,15 +50,17 @@ func EntryReader(decryptedEntry []string, hidePassword bool) {
notesFlag = true
}
default:
// print notes header if first notes line was blank
if !notesFlag {
// print notes header if current line is not empty and notes have not been printed
if !notesFlag && decryptedEntry[i] != "" {
fmt.Println(ansiDirectoryHeader + "Notes:" + offline.AnsiReset)
// indicate that notes have been printed
notesFlag = true
}
// print extended notes line
fmt.Println(decryptedEntry[i])
// print extended notes line if header was printed
if notesFlag {
fmt.Println(decryptedEntry[i])
}
}
}
// print trailing newline if notes were printed