"Open containing folder" feature

I would like to be able to open the folder
containing the active file in LibreOffice.
(This is also called
Open Containing Folder”,
Open Parent document/folder”,
Open enclosing folder”,
Show File”,
Show in File Manager”,
Show in Finder”,
Show in file browser”,
Show in folder”,
or “View in Explorer”.)

I know that sometimes there is no meaningful associated folder,
such as when working with remote files
or an untitled document that hasn’t been saved yet.
I am also aware that I can add the
Load URL
widget to the toolbar or navigate to the document properties
and copy the “Location” field.
However, the added convenience of a single button or menu entry
to open the containing folder would be helpful to me.

I have not been able to find a
LibreOffice extension
that provides this functionality.
Should I file a feature request on the
LibreOffice bug tracker?

Edit: bug report filed here:

https://bugs.documentfoundation.org/show_bug.cgi?id=124955

1 Like

Should I file a feature request on the LibreOffice bug tracker?

yes, that’s the way to go for enhancement requests. But may be a short macro and an assignment to a toolbar is sufficient for that. This one works for me (but I’m on Linux, so it may not work for you).

Sub OpenCurrentFileDir
 
GlobalScope.BasicLibraries.loadLibrary("Tools")
Shell("/usr/bin/dolphin" & " " & Tools.Strings.DirectoryNameoutofPath(ThisComponent.getURL(),"/"))

End Sub

I am also on Linux and KDE, so this works great! I will probably also file a feature request since getting this to work cross-platform would be finicky. I wish I could upvote you, but I only have 1 karma and I need 5. :frowning: