Especially in pul request "Files changed" view, countless times I copied the link to "View" button and passed to curl, only to get a HTML page, because it wasn't the link to the raw file.
Would it be cool to have a "View Raw" button via this extension?
Shouldn't it be Copy raw URL then?
"View" right now takes you to a HTML page that nicely shows that file alone. You can right click and copy link to that page.
Similarly if there was a "View Raw", I could (1) save one click because I don't have to click "View" and navigate to that page first (2) I could directly right click to this button and get copy the url to raw file.
Does this make sense? I think it should be possible to both copy link (via native Chrome right-click menu) as well as click it to view in the browser.
Why are you curling PR files instead of gitting them?
I think sometimes you just need to. Like command <(curl https://...) or to wget.
@ahmetb Alright. A View raw button sounds useful to me. PR welcome :)
Please also suggest the feature to GitHub: https://github.com/contact
Hi, @sindresorhus,
I've recently discovered this project and I really enjoyed it.
I would really like to start contributing. Can I tackle this issue?
Also I have a question regarding the implementation. Should View raw button have target="_blank" or it isn't necessary?
@AlessandroFC15 please take it over, I won't be able to send a patch anytime soon. IMO it's not necessary to have a target=_blank, most people know how to open links in a new tab.
@ahmetb Alright then, thank you very much, appreciate the input.
I filed #1668 to be able to link where the headers are properly set like https://raw.githack.com , not the raw URLs on Github which is what I understood this issue to be about...
@brettz9 my bad, I meant to link you to https://github.com/sindresorhus/refined-github/issues/1096