Refined-github: What happened to the preview of line links?

Created on 19 Oct 2017  Â·  8Comments  Â·  Source: sindresorhus/refined-github

Hey there :wave: Using this extension, still – from the beginning.

Before few days i just notice in few times that when link to a line is posted in issue/pr it was automatically shown/rendered. It was like embedded gist (almost).

Don't know. I don't think it was from another extension, cuz i don't have much for GitHub stuff.

All 8 comments

Yep still works. Maybe you have to link directly to a commit, not a branch. This is what I used earlier:

https://github.com/sindresorhus/refined-github/blob/36dfa3bddae209492c083738e12043aafa2cb736/src/content.js#L28

Hm. Yea. Okey, thanks!

But in any way it would be great to work for branches too.

(random line)

https://github.com/sindresorhus/refined-github/blob/master/src/content.js#L6

The probably didn't implement that because branches change and for that reason those links will become wrong at some point. In short they're encouraging you to get the permalink

permalink

A reminder here that with Refined GitHub pressing y would also add the permalink to your clipboard.

y is a keyboard shortcut from GitHub itself ;)

@jdreesen GitHub's shortcut will open the permalink; Refined GitHub will also _copy_ its URL.

Oh wow, I didn't know that, that's very nice :)

Was this page helpful?
0 / 5 - 0 ratings