Skip to content

Use the 'textEnd' parameter for shorter URLs #22

@AntonioRedondo

Description

@AntonioRedondo

Thank you for this great extension, ichaoX! 💖

I'll suggest a small new feature:

It would be great if the add-on would have a second option in the context menu (something like Copy Link to Selected Text (Short URL)) to use the textEnd parameter of the Text fragments standard so that text could be highlighted with less text.

This would be specially beneficial the longer the text selected is, as we'd get the same text selected with a much shorter URL.

How much initial and final text would be copied to the URL is open to debate. But I reckon with 2-3 initial and final words of the full selection would be long enough to avoid multiple results.

Maybe a regex could be run to get the shortest URL that matches only a single result. This regex would be increasing the number of initial and final characters, if with the previous shorter amount the regex was yielding more than a result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions