commit 580bf201a6ee91c53f55bf9d6f0fb6421afd8474
parent 6442889a76e103345a427339fda6115a2af3f5ff
Author: William Casarin <jb55@jb55.com>
Date: Wed, 23 Nov 2022 09:35:55 -0800
git-show-nostr: display empty tags a bit better
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git-show-nostr b/git-show-nostr
@@ -128,7 +128,7 @@ fi
evid=$(jq -r '
def tag(name): .tags[] | select(.[0] == name) | .[1];
-. | [(.created_at | tostring), (.|tag("t")), (.|tag("subject")), (.|tag("author")), .pubkey[0:20], "id:\(.id)"] | @tsv' "$outname" |
+. | [(.created_at | tostring), ((.|tag("t")) // " "), (.|tag("subject")), (.|tag("author")), .pubkey[0:20], "id:\(.id)"] | @tsv' "$outname" |
sort -rn |
$dateformatter |
column -t -s $'\t' |