You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add "View Raw" button next to all View buttons for files #1595
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?
"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.
@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.
Activity
sindresorhus commentedon Oct 21, 2018
Shouldn't it be
Copy raw URLthen?ahmetb commentedon Oct 21, 2018
"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.
fregante commentedon Oct 23, 2018
Why are you
curling PR files instead ofgitting them?ahmetb commentedon Oct 23, 2018
I think sometimes you just need to. Like
command <(curl https://...)or towget.sindresorhus commentedon Nov 7, 2018
@ahmetb Alright. A
View rawbutton sounds useful to me. PR welcome :)Please also suggest the feature to GitHub: https://github.com/contact
AlessandroFC15 commentedon Nov 21, 2018
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 rawbutton havetarget="_blank"or it isn't necessary?ahmetb commentedon Nov 21, 2018
@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.
AlessandroFC15 commentedon Nov 21, 2018
@ahmetb Alright then, thank you very much, appreciate the input.
brettz9 commentedon Dec 14, 2018
fregante commentedon Dec 14, 2018