Skip to content

Add Copy Link with Highlight feature for iOS#5068

Open
jpgmeyer wants to merge 1 commit intoRanchero-Software:mainfrom
jpgmeyer:ios-copy-link-with-highlight
Open

Add Copy Link with Highlight feature for iOS#5068
jpgmeyer wants to merge 1 commit intoRanchero-Software:mainfrom
jpgmeyer:ios-copy-link-with-highlight

Conversation

@jpgmeyer
Copy link

@jpgmeyer jpgmeyer commented Feb 1, 2026

Addresses #4793

Summary

Adds a "Copy Link with Highlight" option to the context menu on iOS. When text is selected in an article, this option copies a text fragment URL that will highlight the selected text when opened in a browser, similar to existing macOS version behaviour.

Capture d’écran 2026-02-01 à 15 06 51

Changes

  • New TextFragmentURL utility for creating text fragment URLs
  • Added getSelectedText() JavaScript function to retrieve selected text from the WebView
  • Added "Copy Link with Highlight" to the WebView context menu
  • The standard share sheet is unchanged and always uses the plain article URL, to keep the scope narrow.

@jpgmeyer jpgmeyer force-pushed the ios-copy-link-with-highlight branch from 68c5f64 to b429266 Compare February 1, 2026 14:03
Adds support for text fragment URLs that highlight selected text when shared.
When a user selects text and shares the article, the link includes a text
fragment directive (#:~:text=...) that browsers will highlight on load.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jpgmeyer jpgmeyer force-pushed the ios-copy-link-with-highlight branch from b429266 to 71912e7 Compare February 1, 2026 14:14
@jpgmeyer jpgmeyer marked this pull request as ready for review February 1, 2026 14:18
@brentsimmons
Copy link
Collaborator

@jpgmeyer Thanks! I’ll get to reviewing this once we ship 7.0 (any day now)

@brentsimmons brentsimmons added this to the NetNewsWire 7.1 milestone Feb 11, 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