Skip to content

Add "View Raw" button next to all View buttons for files #1595

Closed

Description

@ahmetb

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.

image

Would it be cool to have a "View Raw" button via this extension?

Activity

  1. sindresorhus commented on Oct 21, 2018

    @sindresorhus
    Member

    Shouldn't it be Copy raw URL then?

  2. ahmetb commented on Oct 21, 2018

    @ahmetb
    Author

    "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.

  3. fregante commented on Oct 23, 2018

    @fregante
    Member

    Why are you curling PR files instead of gitting them?

  4. ahmetb commented on Oct 23, 2018

    @ahmetb
    Author

    I think sometimes you just need to. Like command <(curl https://...) or to wget.

  5. sindresorhus commented on Nov 7, 2018

    @sindresorhus
    Member

    @ahmetb Alright. A View raw button sounds useful to me. PR welcome :)

    Please also suggest the feature to GitHub: https://github.com/contact

  6. AlessandroFC15 commented on Nov 21, 2018

    @AlessandroFC15

    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?

  7. ahmetb commented on Nov 21, 2018

    @ahmetb
    Author

    @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.

  8. AlessandroFC15 commented on Nov 21, 2018

    @AlessandroFC15

    @ahmetb Alright then, thank you very much, appreciate the input.

  9. brettz9 commented on Dec 14, 2018

    @brettz9
  10. fregante commented on Dec 14, 2018

    @fregante
  11. added
    small
    on Dec 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedenhancementsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions