Skip to content

Add collapse all files on PR - Files Changed tab #226

Closed

Description

@hneiva

Pretty self-explanatory, when the PR touches a large amount of files, it would be nice to collapse all files.
(I'm a bit new to the extension, but my guess is this wouldn't be very hard to accomplish)

Activity

  1. hneiva commented on May 20, 2016

    @hneiva
    Author

    Btw, for anyone that also wants this feature, this is what I'm using to accomplish it manually
    On the console:

    $$('.file-header').forEach(function(element){element.click()})
  2. paulmolluzzo commented on May 20, 2016

    @paulmolluzzo
    Contributor

    There used to be a collapse/expand all button, but it was removed. I don't know if we want to bring it back or what.

  3. DrewML commented on Jun 24, 2016

    @DrewML
    Contributor

    There used to be a collapse/expand all button, but it was removed.

    @paulmolluzzo Used to be in this extension, or in GitHub's UI itself?

    Would love to see this implemented. Have wanted it a few times recently.

  4. paulmolluzzo commented on Jun 24, 2016

    @paulmolluzzo
    Contributor

    @DrewML In the extension.

  5. DrewML commented on Jul 4, 2016

    @DrewML
    Contributor

    @sindresorhus Have any problems with this feature being added back? Specifically, a button that allows collapsing (and probably re-expanding) all files in a diff? We'd still keep the default behavior of everything being expanded on page load.

    This is something I'd use frequently @ work.

  6. sindresorhus commented on Jul 7, 2016

    @sindresorhus
    Member

    It was removed in #85 (comment).

    when the PR touches a large amount of files, it would be nice to collapse all files.

    Why? What's the use-case?

  7. mfpinhal commented on Oct 19, 2016

    @mfpinhal

    👍 for bringing this feature back. Thanks @hneiva for the "hack".

    @sindresorhus:
    My use-case is that I just want to skip some files and dig into a few down the list.

  8. hneiva commented on Oct 19, 2016

    @hneiva
    Author

    @sindresorhus use case:

    • PR contains front and back end changes (ie.: Java and JS+HTML+CSS)
    • More than one developer will code review said PR, likely to a specific platform
    • Now developer has to scroll through unwanted files
  9. sindresorhus commented on Oct 20, 2016

    @sindresorhus
    Member

    See: #308 Happy to add it back if someone commits to maintaining it.

  10. mfpinhal commented on Oct 21, 2016

    @mfpinhal

    See: #308 Happy to add it back if someone commits to maintaining it.

    I checked #308. I would like to commit to maintaining it, in what concerns specifically to this feature, for now at least. I will try to submit a PR soon about this when I have an opportunity.

  11. added 2 commits that reference this issue on Jan 8, 2017
    28fc802
    f152302
  12. fregante commented on May 30, 2017

    @fregante
    Member

    Is this needed? You can already skip all files by using this dropdown

    screen shot 2017-05-30 at 22 13 16

  13. 11 remaining items

  14. andrewbrntt commented on Jun 4, 2018

    @andrewbrntt
    Contributor

    Those commands seem to expand all the files. Why would it do that?

  15. IslamAzab commented on Jun 11, 2018

    @IslamAzab

    Those commands seem to expand all the files. Why would it do that?

    @andrewbrntt and collapse all files too

  16. lukehefson commented on Aug 17, 2018

    @lukehefson

    Just wanted to let you all know that we just shipped this 'natively' within GitHub as part of our Papercuts initiative 🎉

  17. aunu53 commented on Sep 25, 2018

    @aunu53

    @lukehefson could you clarify that this feature exists? I have no idea where this "collapse all" button is :(

  18. fregante commented on Sep 25, 2018

    @fregante
    Member

    Alt+click on the “minimize file” button

  19. lukehefson commented on Sep 26, 2018

    @lukehefson

    lukehefson could you clarify that this feature exists? I have no idea where this "collapse all" button is :(

    Alt+click on the “minimize file” button

    That's right – thanks @bfred-it!

    @auni53 There's also a more detailed explanation in our changelog if that helps!

  20. aunu53 commented on Sep 26, 2018

    @aunu53

    Thanks, it works great! Hopefully future people will be able to Google to find that information.

  21. benfreke commented on Sep 27, 2018

    @benfreke

    Hopefully the interface on the page will surface that information, instead of relying on people googling for it! The feature may as well not exist if it's not documented, and it is a fantastic quality of life improvement.

  22. fregante commented on Sep 27, 2018

    @fregante
    Member

    Refined GitHub used to show this info in a tooltip, maybe GitHub should do the same

  23. queeniema commented on Feb 8, 2019

    @queeniema

    @lukehefson This doesn't seem to work in GitHub Enterprise?

  24. busches commented on Feb 9, 2019

    @busches
    Member

    @queeniema please open an issue with more details, including behavior not working, any console errors, and what version of GHE you're using.

  25. fregante commented on Feb 9, 2019

    @fregante
    Member

    @queeniema GitHub added this feature natively so it was removed from Refined GitHub. If you're on an old version of GHE that doesn't have it, try the last version of Refined GitHub that has it: bebc684 or 2018.9.11

  26. qburst-sreeragh commented on Apr 5, 2019

    @qburst-sreeragh

    Alt + click seems to be not working for me.

    to collapse all files, I appended this to the url,
    ?file-filters%5B%5D=

    Making this
    https://github.com/organisation/my-repo/pull/151/files

    to this

    https://github.com/organisation/my-repo/pull/151/files?file-filters%5B%5D=

    worked for me

  27. locked as resolved and limited conversation to collaborators on Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions