Nearly all the large repo have a lot of files, so it will be better to fold these lots of file. In case I don't convey my thought well. Following it the email I sent to GitHub support, and got a friendly reply to mention the feature to the github developing team.
When we open a project in github, such as youtube-dl, is it better to let the website collapse most of the files or folders by default, SO we can see the project description and the readme file at one sight. Because every time when I visit a project, the first thing I'm doing is srolling down to the readme to see what the project exactly do. I guess maybe there are many guys do the same thing. SO I send this feedback, great thank for the github.com.
I wouldn't mind toggling it on click:
It's pretty easy:
const list = select('.files');
select('.commit-tease').addEventListener('click', e => {
if (e.currentTarget === e.target) {
list.hidden = !list.hidden
}
});
Maybe make it an icon/button instead to stay in line with native folding (on PR files)
There's also my hide-files-on-github extension which reduces this problem a little bit.
Most helpful comment
Maybe make it an icon/button instead to stay in line with native folding (on PR files)
