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