Refined-github: Add support to fold the repository like github in mobile browser.

Created on 9 Jul 2017  路  3Comments  路  Source: sindresorhus/refined-github

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.

enhancement good first issue help wanted

Most helpful comment

Maybe make it an icon/button instead to stay in line with native folding (on PR files)
PR files toggle button

All 3 comments

I wouldn't mind toggling it on click:

list toggle

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)
PR files toggle button

There's also my hide-files-on-github extension which reduces this problem a little bit.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

durka picture durka  路  3Comments

montogeek picture montogeek  路  3Comments

MilesBHuff picture MilesBHuff  路  3Comments

vanniktech picture vanniktech  路  3Comments

hkdobrev picture hkdobrev  路  3Comments