[feature] reveal in file explorer
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:
I think it would be useful to make this a right click menu option:
Not sure if there's a simple cross platform way to do this, perhaps VSCode codebase could be helpful in coming up with this?
Or "Show in folder" :-)
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.
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.
Added for Windows here: 7b267276af3f9923ca824a18cc4a5ff8535c0f92