Suggestion for "Show in Explorer" feature for Windows

Answered

I think that this suggestion will work for every Jetbrains IDE.

Some people has installed Windows Explorer replacements for browsing and working with files (i.e.: Windows Commander, Directory Opus, Xplorer and so on)

The "Show in explorer" feature always opens a (maybe "hardcoded") Explorer.exe executable.

 

I think that, in java, the IDE is doing something like:

      Runtime.getRuntime().exec("explorer", null, new File(CURRENT_PATH)))

rather than:

  Desktop.getDesktop().open(new File(CURRENT_PATH))

The first one will open the explorer.exe executable at the current path.
The second one will ask Windows to show this path in the current registered explorer.

 

Please JetBrain's team, can you try to modify this feature or at least make it available in Preferences as an "ON or OFF" functionality?

I have a workaround with external tools and a custom shortcut but I think that the IDE could just do it straight away.

 

Thank you in advance,

Hini

 

 

 

2
1 comment

See https://github.com/JetBrains/intellij-community/blob/7d08c23f607f270facab17238ade971a70d5141a/platform/platform-impl/src/com/intellij/ide/actions/ShowFilePathAction.java#L283-L283.

IDE passes special arguments to open the specified directory and to also highlight/select a file in this directory. I don't think it's possible with the API you are suggesting and implementing it for every possible file manager would be tedious.

You are welcome to implement it as a plug-in.

0

Please sign in to leave a comment.