Bug 169909 - Provide ability to copy to clipboard the URL path from the File -> Properties... dialog "Location:" field
Summary: Provide ability to copy to clipboard the URL path from the File -> Properties...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
25.2.7.2 release
Hardware: All All
: medium enhancement
Assignee: Heiko Tietze
URL:
Whiteboard: target:26.8.0 target:26.2.0.0.beta2
Keywords:
Depends on:
Blocks: Clipboard
  Show dependency treegraph
 
Reported: 2025-12-09 14:33 UTC by csongor
Modified: 2025-12-13 13:12 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 csongor 2025-12-09 14:33:54 UTC
Description:
Use case: I want to make a note for myself to remember which folder and which file name I used for an important document, so that I can find it quickly even several years later, when the File -> Recent Documents already contains a lot of newer files. 

If I want to put to the full path of the current file into a notes.txt file then I need to put it together in a quite cumbersome way:

- go to File -> Properties -> General tab in Writer
- click the link of the Location (I cannot copy it with the mouse, so it opens a File Explorer window)
- click the directory bar
- press Ctrl+C 
- close the File Explorer
- paste the directory in my notes.txt (Ctrl+V)
- triple click at the top of the General tab to copy the filename to the clipboard
- paste it into notes.txt

Instead of these many clicks, I would like to have a [Copy Full Path to Clipboard] button just after the Location value. Clicking it should put the full path to the clipboard, which I could paste into my notes.txt easily. 

Note: there is a similar button at the Help -> About -> Version Information label but it copies version info, not the file name.

Steps to Reproduce:
See in the description

Actual Results:
no such feature yet

Expected Results:
I want to get the full path on the clipboard


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.2.7.2 (X86_64) / LibreOffice Community
Build ID: 5cbfd1ab6520636bb5f7b99185aa69bd7456825d
CPU threads: 12; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-US
Calc: CL threaded
Comment 1 V Stuart Foote 2025-12-09 17:21:18 UTC
Both the MRU and the thumbnail views on the Start Center already show tooltip with full path to the document. But instead of just copying that full file path would suggest do something more general

Because of its global utility, would prefer to implement some means to directly copy text of any tooltip (like the full path of the MRU) directly to system clipboard.

Assign some accelerator/global shortcut that would grab text run of the tooltip popup and copy directly to clipboard.
Comment 2 Heiko Tietze 2025-12-10 10:14:50 UTC
I think it's pretty simple and straight-forward to show the information as text that can be copied and have a button next to it that opens the location. IOW, replace the current hyperlink with text and a button.
Comment 3 csongor 2025-12-10 12:59:57 UTC
(In reply to V Stuart Foote from comment #1)
> Both the MRU and the thumbnail views on the Start Center already show
> tooltip with full path to the document. But instead of just copying that
> full file path would suggest do something more general
> 
> Because of its global utility, would prefer to implement some means to
> directly copy text of any tooltip (like the full path of the MRU) directly
> to system clipboard.
> 
> Assign some accelerator/global shortcut that would grab text run of the
> tooltip popup and copy directly to clipboard.

I understand the usefullness of this feature but I can imagine only a hotkey for this purpose. The problem with a hotkey is that it is not obvious from the UI what the hotkey is, or if it is available at all at a certain place. 

Therefore, I would go with the simpler solution, which is a button that places the full path to the clipboard.
Comment 4 V Stuart Foote 2025-12-10 15:05:18 UTC
(In reply to Heiko Tietze from comment #2)
> I think it's pretty simple and straight-forward to show the information as
> text that can be copied and have a button next to it that opens the
> location. IOW, replace the current hyperlink with text and a button.

Tooltips are pretty generic, and more often than not are not a URI. 

Would prefer something more generic and not implemented just for handling the path of the MRU tooltips. Something available on *all* tooltip popups, maybe a simple "Copy" action that would send text of any tooltip to clipboard. But no more function than that.
Comment 5 Commit Notification 2025-12-10 17:04:12 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/ea37a0ab8f25b3946429d7f3ac3ebefa33da7a4b

Resolves tdf#169909 - Make file URL copyable in document properties

It will be available in 26.8.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:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 Commit Notification 2025-12-11 09:05:01 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "libreoffice-26-2":

https://git.libreoffice.org/core/commit/2bed6c66107382c2f139fd7ea0a3ea39bbd242d8

Resolves tdf#169909 - Make file URL copyable in document properties

It will be available in 26.2.0.0.beta2.

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:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 V Stuart Foote 2025-12-12 23:37:03 UTC
@Heiko, could you give us a screen clip of where you've added a copy button.

https://gerrit.libreoffice.org/c/core/+/195373

Checked the 2025-12-12 nightly and not seeing anything along these lines. Certainly nothing for entries on the MRU File -> Recent documents nor the Start Center thumbnails. 

=-testing-=
2025-12-12 TB103 nightly
Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: 680(Build:0)
CPU threads: 28; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 8 Heiko Tietze 2025-12-13 07:38:11 UTC
(In reply to Heiko Tietze from comment #2)
> ...show the information as text that can be copied and have a button
> next to it that opens the location.
You can select and copy the location text now. I disagree with some dedicated command or "heavy" interaction and this seems lightweight and usable to me.
Comment 9 V Stuart Foote 2025-12-13 11:56:43 UTC
(In reply to Heiko Tietze from comment #8)
> (In reply to Heiko Tietze from comment #2)
> > ...show the information as text that can be copied and have a button
> > next to it that opens the location.
> You can select and copy the location text now. I disagree with some
> dedicated command or "heavy" interaction and this seems lightweight and
> usable to me.

OK, but where did you add it? Could use a screen clip showing where in the UI we can grab the text.

Thus far it does not work, tooltip text is not copyable, from mouseover of the File -> Recent documents menu list, nor on mouse over of a thumbnail on the Start Center's backing window.
Comment 10 V Stuart Foote 2025-12-13 13:06:17 UTC
(In reply to V Stuart Foote from comment #9)

OK, never mind. /me got sidetracked. 

Found the change on the File -> Properties field 'Location'

That can be copied now, without triggering the file manager opening to the location. Exactly what the OP requested.

Adjusting the issue summary back to what is actually resolved.

Also, note that for an open document the standard toolbar has a listbox field (hidden) 'LoadURL' that holds the full path, including file name for the current document.

Will open a new BZ issue for handling content of tooltips.
Comment 11 V Stuart Foote 2025-12-13 13:12:31 UTC
(In reply to V Stuart Foote from comment #10)
> Will open a new BZ issue for handling content of tooltips.

Opened as enhancement bug 169961