Bug 146576 - Use clipboard content when inserting a hyperlink
Summary: Use clipboard content when inserting a hyperlink
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Andreas Heinisch
Whiteboard: target:24.2.0
Depends on:
Blocks: Hyperlink-Dialog
  Show dependency treegraph
Reported: 2022-01-04 23:19 UTC by andreas_k
Modified: 2023-11-23 23:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description andreas_k 2022-01-04 23:19:02 UTC
In Typora a markdown editor you can select a text and add a hyperlink with strg + k. Which is the same than in LibreOffice, but in Typora the content from the clipboard was automatically used for the hyperlink. So you don't have to go to past the content from the clipboard to the hyperlink dialog.

This is a tiny change, but it's a really good idea to fasten your workflow.

how it should work:
1. select an url with strg + c
2. select a text
3. insert hyperlink strg + k
4. Url field should be by default pasted the hyperlink
   - maybe it can be defined that auto past was done only if it's an url (www, http, mailto, ...)
   - Url field will be selected, so with del you can remove the auto past content
5. click enter and the hyperlink was done.
Comment 1 Heiko Tietze 2022-01-05 06:54:25 UTC
Sounds like a good idea.
Comment 2 Commit Notification 2023-07-27 07:02:17 UTC
Andreas Heinisch committed a patch related to this issue.
It has been pushed to "master":


tdf#146576 - Propose clipboard content when inserting a hyperlink

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:

Affected users are encouraged to test the fix and report feedback.
Comment 3 Andreas Heinisch 2023-07-27 07:05:38 UTC
There is still room for improvement here for a follow-up report, e.g., when the clipboard contains a mail address, or a document link, the dialog could automatically prefill the corresponding fields.