fix(ls): show title instead of body when present
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user