"Open containing folder" feature

asked 2019-04-24 21:16:27 +0200

bariumbitmap gravatar image

updated 2019-04-25 15:10:53 +0200

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

edit retag flag offensive close merge delete

Comments

2

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
Opaque gravatar imageOpaque ( 2019-04-25 12:13:14 +0200 )edit

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. :-(

bariumbitmap gravatar imagebariumbitmap ( 2019-04-25 14:50:53 +0200 )edit