git-nostr-tools

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

commit f97c54a636dac5ed279f2c9f1adfdb3e85c265d1
parent ad84ae0287fdb2160bcb5857c601b0d2906616ea
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 19 Nov 2022 09:58:33 -0800

show: use git-configured hashtag for show queries

Add this to your local project git config (.git/config)

[nostr]
	hashtag = nostrjs

Diffstat:
Mgit-show-nostr | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/git-show-nostr b/git-show-nostr @@ -75,6 +75,11 @@ if [ -z $relay ]; then relay="$(git config nostr.relays)" fi +hashtag=$(git config nostr.hashtag) +if [[ "$hashtag" != "" ]]; then + hashtag="-t $hashtag" +fi + if [ -z $relay ]; then usage exit 0 @@ -82,7 +87,7 @@ fi target=$tag -fullquery=$(nostril query --kinds 19691228 --limit $limit "$@") +fullquery=$(nostril query --kinds 19691228 --limit $limit $hashtag "$@") if [ -z $fname ]; then target=${target:-all}