From fadc6d9a2ae2e48d870533d8e63a8e719510419f Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Fri, 15 May 2026 22:30:59 -0400 Subject: [PATCH] fix(ls): show title instead of body when present --- cmd/ls.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/ls.go b/cmd/ls.go index d3d76b2..3e6f995 100644 --- a/cmd/ls.go +++ b/cmd/ls.go @@ -142,8 +142,13 @@ func printEntity(e *db.Entity) { glyph := display.DisplayGlyph(e.Glyph, e.CardType) shortID := display.FormatID(e.ID) + label := e.Body + if e.Title != nil { + label = *e.Title + } + var line strings.Builder - fmt.Fprintf(&line, "%s %-40s", glyph, e.Body) + fmt.Fprintf(&line, "%s %-40s", glyph, label) if e.TimeAnchor != nil { fmt.Fprintf(&line, " @%-5s", *e.TimeAnchor)