Sync 'Results' type with madon update
authorMikael Berthe <mikael@lilotux.net>
Thu, 06 Sep 2018 00:27:32 +0200
changeset 229 d4c099a67c86
parent 228 360929ee6aef
child 230 c961191a6b8f
Sync 'Results' type with madon update
printer/plainprinter.go
templates/themes/ansi-dark/results.tmpl
templates/themes/ansi/results.tmpl
--- a/printer/plainprinter.go	Wed Sep 05 23:22:06 2018 +0200
+++ b/printer/plainprinter.go	Thu Sep 06 00:27:32 2018 +0200
@@ -313,7 +313,8 @@
 	if len(r.Hashtags) > 0 {
 		indentedPrint(w, indent, false, false, "Hashtags", "")
 		for _, tag := range r.Hashtags {
-			indentedPrint(w, indent+p.Indent, true, false, "Tag", "%s", tag)
+			indentedPrint(w, indent+p.Indent, true, false, "Tag", "%s", tag.Name)
+			indentedPrint(w, indent+p.Indent, false, true, "URL", "%s", tag.URL)
 		}
 	}
 	return nil
--- a/templates/themes/ansi-dark/results.tmpl	Wed Sep 05 23:22:06 2018 +0200
+++ b/templates/themes/ansi-dark/results.tmpl	Thu Sep 06 00:27:32 2018 +0200
@@ -33,5 +33,5 @@
       Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}{{/* of range */}}{{end}}{{/* of statuses */}}
 {{- with .hashtags}}{{color ",,bold"}}Hashtags:{{color "reset"}}
 {{- range .}}
-  - {{.}}{{end}}{{/* of range */}}
+  - Tag: {{.name}}{{end}}{{/* of range */}}
 {{end}}{{/* of statuses */ -}}
--- a/templates/themes/ansi/results.tmpl	Wed Sep 05 23:22:06 2018 +0200
+++ b/templates/themes/ansi/results.tmpl	Thu Sep 06 00:27:32 2018 +0200
@@ -33,5 +33,5 @@
       Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}{{/* of range */}}{{end}}{{/* of statuses */}}
 {{- with .hashtags}}{{color ",,bold"}}Hashtags:{{color "reset"}}
 {{- range .}}
-  - {{.}}{{end}}{{/* of range */}}
+  - Tag: {{.name}}{{end}}{{/* of range */}}
 {{end}}{{/* of statuses */ -}}