Indecisive on output format...

This commit is contained in:
Levi Neely 2025-11-04 18:46:24 +01:00
parent b756a63965
commit b69dec94e4
1 changed files with 1 additions and 4 deletions

View File

@ -233,14 +233,11 @@ func DisplayNotes(notes []*Note) error {
title = "(untitled)"
}
filename := filepath.Base(n.Path)
buf.WriteString(filename)
buf.WriteString(" : ")
buf.WriteString(title)
if len(n.Keywords) > 0 {
fmt.Fprintf(&buf, " (%s)", strings.Join(n.Keywords, ", "))
}
fmt.Fprintf(&buf, " [%s]\n", n.Path)
fmt.Fprintf(&buf, "\n%s\n\n", n.Path)
}
w.Write("body", []byte(buf.String()))