aalok05 / CodeHub

A UWP GitHub Client
MIT License
177 stars 35 forks source link

[Question/Feature Request] URL Schemes? #85

Closed justadaniel closed 7 years ago

justadaniel commented 7 years ago

Hi,

I was wondering if there were any URL schemes for CodeHub? I like to change the URL's in edge to have them open the apps I have installed instead.

aalok05 commented 7 years ago

So this can be done where if you visit a repo in your browser, you can open the repo in CodeHub, and so on. I haven't implemented this but it's a good idea.

https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-default-app https://docs.microsoft.com/en-us/windows/uwp/launch-resume/handle-uri-activation

aalok05 commented 7 years ago

It turns out, to launch repo view in CodeHub when someone navigates to a github repository in edge, I need to own the github website. Other than that there is no custom uri for CodeHub and I cannot think of any use case for it.

justadaniel commented 7 years ago

Really? When I worked on iOS apps, we would just create a custom url scheme that replaces https:// with appname:// and parse the url to do what we want. So codehub://github.com/<author>/<reponame> or you could even remove the github.com/ all together. Then that would take you to the repo.

aalok05 commented 7 years ago

ok got it. This can be done. I'm on it.

aalok05 commented 7 years ago

87 Here you go.

aalok05 commented 7 years ago

I'll update readme for this feature when it is complete

justadaniel commented 7 years ago

Alright awesome, thanks!

aalok05 commented 7 years ago

This feature has been merged in dev branch. Examples: