obsidian-advanced-uri icon indicating copy to clipboard operation
obsidian-advanced-uri copied to clipboard

[feature request]: support text fragment

Open windily-cloud opened this issue 2 years ago • 0 comments

The scroll to text fragment feature provides support for specifying a text snippet in the URL hash. So if I click a link that specifies a fragment, I would be navigated to that fragment of text on the page.

if obsidian-advanced-uri support it , I guess I can link any character from any document. This is more elegant than the obsidian block reference.

Some links to understand text fragment:

  • https://mgearon.com/html/text-fragments/
  • https://wicg.github.io/scroll-to-text-fragment/#generating-text-fragment-directives
  • https://github.com/GoogleChromeLabs/link-to-text-fragment/blob/main/fragment-generation-utils.js

Thank you for any replies.

windily-cloud avatar Mar 30 '22 13:03 windily-cloud