Open h0gar opened 10 years ago
Basically in project configuration the ability to specify any url with %F and %L needs to be specified. Then, thanks to custom protocol handler such links can be opened by locally installed programs.
For example this would set on Scrutinizer CI side per repository: phpstorm://open?file=%F&line=%L
.
Exactly what I had in mind, with a better explanation. Thanks.
This is an interesting idea, but I'm not sure it's feasible to implement. Links would need to depend on the user/machine that browses the website. Considering that GitHub or Bitbucket do not support this (as far as I'm aware), I'm not sure whether we can :)
Considering that GitHub or Bitbucket do not support this (as far as I'm aware), I'm not sure whether we can :)
GitHub supports opening file with local GitHub Client app.
Links would depend on the user, indeed, but that user could configure his links with the format Alexander mentionned. Like Symfony does: symfony.com/doc/current/reference/configuration/framework.html
2014-07-08 1:50 UTC+08:00, Alexander Obuhovich notifications@github.com:
Considering that GitHub or Bitbucket do not support this (as far as I'm aware), I'm not sure whether we can :)
GitHub supports opening file with local GitHub Client app.
Reply to this email directly or view it on GitHub: https://github.com/scrutinizer-ci/scrutinizer/issues/233#issuecomment-48212617
For instance, xdebug has a directive: xdebug.file_link_format = "netbeans://open/?f=%f:%l" Windows users need to register the protocol in the registry, like so: https://gist.github.com/leek/2065503
The trick here is the custom local protocol handler. In other words, the user has to take care that the protocol is known on his system and opens the desired application. Then he could set this to the scrutinizer config file in his repo.
It would be nice to be able to configure the links to be able to quickly open files locally.
Let's say there is an issue in Http/Core.php. Locally my project is stored in /var/www/project/. Also in order to open files with the appropriate application, I would for example add sublimetext:// in front of the url.
The url for Http/Core.php would then be sublimetext:///var/www/project/Http/Core.php. I clink on the link and the file opens locally.