search icon indicating copy to clipboard operation
search copied to clipboard

[feature] reveal in file explorer

Open Mattwmaster58 opened this issue 10 months ago • 4 comments

A somewhat common feature in IDE is to reveal a given file in the OS'es file explorer. eg VSCode, VS, Inttelij based IDEs all have this feature:

Image

Image

I think it would be useful to make this a right click menu option:

Image

Not sure if there's a simple cross platform way to do this, perhaps VSCode codebase could be helpful in coming up with this?

Mattwmaster58 avatar Apr 17 '25 14:04 Mattwmaster58

Or "Show in folder" :-)

Frenzie avatar Apr 17 '25 14:04 Frenzie

That's a good idea, not sure either about cross-platform, but shouldn't be too hard.

It's worth noting that it usually (at least on Windows) not only open the folder, but also directly select the correct file.

ldufr avatar Apr 18 '25 11:04 ldufr

Same on Linux. It works to this general effect.

dbus-send --print-reply --dest=org.freedesktop.FileManager1 /org/freedesktop/FileManager1 org.freedesktop.FileManager1.ShowItems array:string:"file://home/etc." string:""[1]

xdg-open can only open a path afaik, but perhaps it's different for for start and/or open on Win/Mac.

Frenzie avatar Apr 18 '25 11:04 Frenzie

Added for Windows here: 7b267276af3f9923ca824a18cc4a5ff8535c0f92

ldufr avatar Apr 18 '25 12:04 ldufr