sindresorhus/refined-github



The issue has been closed
Improve `expand-all-collapsed-code` #3472
Coder-256 posted onGitHub
<img width="1387" alt="Screen Shot 2020-08-17 at 2 41 17 PM" src="https://user-images.githubusercontent.com/10134823/90431960-ccdde880-e097-11ea-98f9-0a4c79112cdb.png">
The way this currently works is that if you alt-click on any expand button, the whole file expands. There are a few ways I believe this could be improved:
- Add a dedicated "Expand all" button somewhere in the file header (possibly under the ellipsis, but I think it deserves a dedicated space, even as just an icon)
- Change the default behavior to only, yet fully, expand the bar you click on when holding alt. Often it is very tedious to fully expand the space between two parts of a file 20 lines at a time (in the link/screenshot, it takes 4 clicks for lines 43-114). The new alt-click behavior would be to fully expand just those lines, rather than the whole file.
- Make it work properly with
extend-diff-expander