git-nostr-tools

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

commit 6442889a76e103345a427339fda6115a2af3f5ff
parent 360c6609ae47d70be56969b03be30070f937b854
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 23 Nov 2022 09:24:50 -0800

fix git-show-nostr

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

diff --git a/git-show-nostr b/git-show-nostr @@ -133,10 +133,11 @@ sort -rn | $dateformatter | column -t -s $'\t' | $FUZZER | -sed -E -n 's,.*id:(.*)$,\1,p' +sed -E -n 's,.*id:([a-f0-9]{64}).*,\1,p' ) -jq -r 'select(.id == "'$evid'") | .content' "$outname" | $pager +q=$(printf 'select(.id == "%s") | .content' "$evid") +jq -r "$q" "$outname" | $pager if [ -z $writeout ]; then rm -f "$outname"