Skip to content

Add Alt+Click link handoff with parent clip context - #806

Open
XplosiveRaptor wants to merge 4 commits into
obsidianmd:mainfrom
XplosiveRaptor:parent-link-handoff
Open

Add Alt+Click link handoff with parent clip context#806
XplosiveRaptor wants to merge 4 commits into
obsidianmd:mainfrom
XplosiveRaptor:parent-link-handoff

Conversation

@XplosiveRaptor

Copy link
Copy Markdown

Summary

Adds a non-Reader link handoff flow to Web Clipper.

Users can now Alt+Click a hyperlink on a webpage to open it in a new tab with context preserved for Web Clipper. The destination clip can reference the source webpage, and if it exists, the note clipped from that original page.

Changes

  • Added Alt+Click interception for eligible http/https links in the content script
  • Opened handed-off links in a new active tab instead of replacing the source page
  • Added per-tab handoff context storage in the background script
  • Passed parent page context into popup extraction and template variable building
  • Extended note-save/history handling to persist clipped note identity
  • Added new template variables and updated template validation:
    • {{parentUrl}}
    • {{parentTitle}}
    • {{parentNoteName}}
    • {{parentNotePath}}
    • {{parentNoteLink}}

@XplosiveRaptor
XplosiveRaptor marked this pull request as draft April 25, 2026 06:02
@XplosiveRaptor
XplosiveRaptor marked this pull request as ready for review April 25, 2026 08:00
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.

1 participant