Skip to content

feat: $hashtags alias#71

Open
purrgrammer wants to merge 3 commits intomainfrom
claude/nip51-interest-lists-9AML3
Open

feat: $hashtags alias#71
purrgrammer wants to merge 3 commits intomainfrom
claude/nip51-interest-lists-9AML3

Conversation

@purrgrammer
Copy link
Owner

No description provided.

Add support for $hashtags alias in the REQ command's -t flag to filter
events by hashtags from the user's kind 10015 Interest List.

Changes:
- req-parser.ts: Detect $hashtags alias in -t flag (case-insensitive)
- nostr-utils.ts: Extend resolveFilterAliases() to handle $hashtags
- nostr-utils.ts: Add getAllTagValues() helper for hidden/encrypted tags
- ReqViewer.tsx: Fetch interest list and resolve $hashtags alias
- man.ts: Document $hashtags in -t flag description and examples
- Added comprehensive tests for $hashtags resolution

Usage: req -t $hashtags,extra-tag -k 1 --since 24h
- Remove #t from filter when $hashtags resolves to empty array
  (prevents unusable queries)
- Preserve other hashtags when $hashtags is empty
- Add UI warning banners for:
  - Interest list not found (kind 10015)
  - Interest list exists but has no hashtags
- Add interestListStatus computed state for UI feedback
- Add tests for empty $hashtags resolution scenarios
- Pass needsInterestList prop to ReqViewer in WindowRenderer
- Add HashtagsPlaceholder component to SpellRenderer for visual
  representation of $hashtags in spell filters (similar to
  MePlaceholder and ContactsPlaceholder)
@vercel
Copy link

vercel bot commented Jan 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
grimoire Ready Ready Preview, Comment Jan 13, 2026 9:20am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants