Sysmagine / SemanticDiff

Community support for SemanticDiff, the programming language aware diff for Visual Studio Code and GitHub.
https://semanticdiff.com
49 stars 0 forks source link

Easy navigation from GitHub PR URL #74

Open lptr opened 2 weeks ago

lptr commented 2 weeks ago

Is your feature request related to a problem? Please describe.

I'd love to start using SemanticDiff, but most of the time I work with GitHub PRs. It would be great to have an easy way to navigate from a GitHub PR URL to the corresponding app.semanticdiff.com URL.

Describe the solution you'd like

A Chrome / Firefox extension perhaps that would add a button to switch over?

lptr commented 2 weeks ago

Another option would be to add a search URL on app.semanticdiff.com that we could use with a GitHub URL. This way one could set up a "search engine" in their browser.

mmueller2012 commented 1 week ago

We just deployed an update that adds support for OpenSearch. It basically allows the browser to use the search functionality that was already available on app.semanticdiff.com. You can either enter a GitHub URL and be forwarded to the corresponding SemanticDiff page or search for pull requests. You need to be authenticated to use the search. If you are not authenticated yet, you will be forwarded to GitHub to login via OAuth.

To add the search provider, first go to any page on https://app.semanticdiff.com. Now the instructions differ a bit depending on the browser. In Firefox just focus the navigation bar and click on the SemanticDiff icon in the bottom row to add it as a search provider. In Chrome, you need to go to chrome://settings/searchEngines and scroll down to the list of inactive shortcuts. Look out for SemanticDiff and activate it. You may need to expand the list.

lptr commented 1 week ago

This is great, though I cannot yet get it to work in Chrome. I don't see anything related to SemanticDiff in the chrome://settings/searchEngines list. I tried expanding, reloading, nothing.

mmueller2012 commented 1 week ago

Did you check the last list "Inactive Shortcuts"? After expanding the list, I can find SemanticDiff:

image

@slackner Can you double check if it works for you?

slackner commented 1 week ago

It works fine for me with Google Chrome.

The exact steps are as follows:

@lptr Could you double check? If it doesn't work, which version of Chromium / Google Chrome are you using?