Skip to content

feat: copy info hash with i key#47

Closed
Ayush7614 wants to merge 1 commit into
baairon:mainfrom
Ayush7614:feat/copy-infohash
Closed

feat: copy info hash with i key#47
Ayush7614 wants to merge 1 commit into
baairon:mainfrom
Ayush7614:feat/copy-infohash

Conversation

@Ayush7614

@Ayush7614 Ayush7614 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds i to copy just the 40-char info hash to the clipboard, alongside the existing y copy-magnet shortcut
  • Works from both the results list and the detail view, with cross-platform clipboard handling reused from copy-magnet
  • Updates the ? help sheet and footer hints

Test plan

  • npm run typecheck passes
  • npm test passes
  • Select a result, press i, confirm hash lands on clipboard
  • Open detail view (Enter), press i, confirm same behavior
  • Verify footer shows i Hash and ? lists "Copy info hash"

Adds a companion to copy-magnet so users can grab just the 40-char hash
for sharing or use in other clients, without the full magnet URI.
@Ayush7614 Ayush7614 force-pushed the feat/copy-infohash branch from e59d811 to 571c856 Compare July 4, 2026 09:45
@baairon

baairon commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Thanks for the clean work, but I'm passing: the hash already travels inside every magnet y copies, and torlink accepts a bare pasted infohash, so a second copy key doesn't earn its footer slot.

@baairon baairon closed this Jul 5, 2026
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