feat: UI redesign, capture grammar, demo command #14
@@ -142,8 +142,13 @@ func printEntity(e *db.Entity) {
|
|||||||
glyph := display.DisplayGlyph(e.Glyph, e.CardType)
|
glyph := display.DisplayGlyph(e.Glyph, e.CardType)
|
||||||
shortID := display.FormatID(e.ID)
|
shortID := display.FormatID(e.ID)
|
||||||
|
|
||||||
|
label := e.Body
|
||||||
|
if e.Title != nil {
|
||||||
|
label = *e.Title
|
||||||
|
}
|
||||||
|
|
||||||
var line strings.Builder
|
var line strings.Builder
|
||||||
fmt.Fprintf(&line, "%s %-40s", glyph, e.Body)
|
fmt.Fprintf(&line, "%s %-40s", glyph, label)
|
||||||
|
|
||||||
if e.TimeAnchor != nil {
|
if e.TimeAnchor != nil {
|
||||||
fmt.Fprintf(&line, " @%-5s", *e.TimeAnchor)
|
fmt.Fprintf(&line, " @%-5s", *e.TimeAnchor)
|
||||||
|
|||||||
Reference in New Issue
Block a user