shithub: hell

Download patch

ref: a4c027741939d6217d5c0ab3ce94a5b646d70932
parent: 3ce435ed461e8079803d61f1a0be93e2f6acb971
author: penny <penny@limitedideas.org>
date: Mon Oct 6 13:37:21 EDT 2025

it works now

--- a/main.go
+++ b/main.go
@@ -260,7 +260,7 @@
 				if index == "" {
 					index = lastindex
 				}
-				line, _ := templater.render(fmt.Sprintf("%s> $standard_status$detail_line", index))
+				line, _ := templater.render(fmt.Sprintf("%s> $standard_status\n$detail_line", index))
 				fmt.Print(line)
 				return
 			case "like":
--- a/templater.go
+++ b/templater.go
@@ -36,7 +36,7 @@
 
 // Render a template into a string, hyphenated for user display
 func (tr *templateRenderer) render(template string) (string, error) {
-	template, _ := tr.renderRaw(template)
+	template, _ = tr.renderRaw(template)
 	template, long := hyphenate(template)
 	if long {
 		return template + "\n\n", nil
@@ -54,7 +54,7 @@
 		}
 		return fmt.Sprintf("[%%KEY_NOT_FOUND:%s]", key)
 	}
-	return template, nil
+	return os.Expand(template, expandMap), nil
 }
 
 // Renders a status line with username + content + media descriptions
--