Bug 163501 - When linkifying text which is itself URL-like, suggest the relevant URL as the link target
Summary: When linkifying text which is itself URL-like, suggest the relevant URL as th...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.8.2.1 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Hyperlink
  Show dependency treegraph
 
Reported: 2024-10-17 21:22 UTC by Eyal Rozenberg
Modified: 2024-10-18 08:24 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2024-10-17 21:22:15 UTC
Currently, when I select a piece of text and linkify it with Ctrl+K or Insert > Hyperlink on the menu, the default link target is the text that's in the clipboard. This is not so bad for arbitrary text, but - when the text selected for linkification is itself a URL (e.g. "https://www.libreoffice.org"), or URL-like (e.g. "www.libreoffice.org") , I believe the better default suggestion would be either the link text itself, or perhaps the "completed" link text, with the https:// or other appropriate prefix.

I would specifically like to see this for email addresses, which typically don't get auto-linkified. So, if I select "foo@bar.com" and linkify that, the suggested URL should be "mailto:foo@bar.com"
Comment 1 Heiko Tietze 2024-10-18 08:08:38 UTC
Sounds desirable.

IIRC, Andreas made some changes on this hyperlink thingy (bug 146576).