fix(cards): show title instead of body when present

This commit is contained in:
2026-05-15 22:31:28 -04:00
parent fadc6d9a2a
commit f4e178e3ee
+6 -1
View File
@@ -63,8 +63,13 @@ func runCards(_ *cobra.Command, _ []string) error {
tagStr += " #" + tag
}
label := e.Body
if e.Title != nil {
label = *e.Title
}
fmt.Printf("%s %-40s %-16s %3d× %s\n",
glyph, e.Body,
glyph, label,
strings.TrimSpace(tagStr),
e.UseCount, shortID)
}