How to find the current active file from another app, ex: Alfred?
I have an Alfred workflow that I use along with PhpStorm to search my codebase from anywhere, and in that workflow, I'd like to highlight the file(s) that are open in tabs and the file that's active (the active tab).
How do I get this information from PhpStorm?
Please sign in to leave a comment.
Honestly, I am not sure if it is even possible.
In theory, an internal IDE Rest API could work here but it is badly documented or at least, I was not able to find a good documentation on all available methods. Here is an outdated doc to get the idea:
https://www.develar.org/idea-rest-api/
Also, I know that you may open specific settings with the `http://localhost:63342/api/settings?name=<setting>` and that's all I found so far.
Please bear in mind that you might need to install a separate plugin now to make it work:
https://plugins.jetbrains.com/plugin/19991-ide-remote-control
Not sure if it is something with my setup or with the plugin itself but for me, it is quite unstable and starts showing 404 after a query or two until I restart the IDE.