git-nostr-tools

git nostr tools
git clone git://jb55.com/git-nostr-tools
Log | Files | Refs

commit ec1a73fa8231940d728938106f573d71375ecee5
parent 07e5dfaa54742b85a470dd0d8f77ec1f07daaccb
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 19 Nov 2022 10:49:56 -0800

show: move subject before author

Diffstat:
Mgit-show-nostr | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/git-show-nostr b/git-show-nostr @@ -80,7 +80,7 @@ if [[ "$hashtag" != "" ]]; then hashtag="-t $hashtag" fi -if [ -z $relay ]; then +if [ -z "$relay" ]; then usage exit 0 fi @@ -128,7 +128,7 @@ fi evid=$(jq -r ' def tag(name): .tags[] | select(.[0] == name) | .[1]; -. | [(.created_at | tostring), (.|tag("t")), (.|tag("author")), (.|tag("subject")), .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' |