github-readme-stats icon indicating copy to clipboard operation
github-readme-stats copied to clipboard

Show 'langs_count' languages even when 'hide' is set

Open CaptainDario opened this issue 5 years ago • 6 comments

When I set the top languages card to show 10 languages but hide G-Code it does not show 10 languages anymore. It shows 9 languages.

It would be nice to have a way that int this case, the next most used language is shown.

I set my most used langauges card to show 10 languages and hide "GCode", "Jupyter" and "tex". Now I only have 7 languages shown.

Capture

CaptainDario avatar Feb 25 '21 10:02 CaptainDario

I have the same issue. When &langs_count=10 alone is specified, the languages card has exactly 10 entries, like so

image

when &langs_count=10&hide=Jupyter,html,Roff is specified, it looks like this

image

I'm hiding three languages here, two of them are in the top 10's list so they consumed two langs_count even when they are hidden, the other one is not in the top 10's list so it did not consume langs_count, as a result now I have eight effective language slots so only eight languages are shown.

This won't be a problem if the hidden languages fall out of the list so I guess I just need to commit more visible code...

I agree that it'd be nice to not include hidden languages in the langs_count, but I think it's better to just increase the langs_count=10 limit since many people need more than 10.

neo-mashiro avatar Mar 02 '21 12:03 neo-mashiro

Why can we only have 10 languages while &card_height can be as long as 1000? This appears weird to me.....

I see that Wakatime Stats can have more than 12 languages, shouldn't their layouts be the same?

neo-mashiro avatar Mar 02 '21 13:03 neo-mashiro

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 01 '21 15:04 stale[bot]

I would still like to have this option.

CaptainDario avatar Apr 01 '21 16:04 CaptainDario

Yes I think this option is quite useful. Perhaps it's just low-priority at the moment.

neo-mashiro avatar Apr 01 '21 21:04 neo-mashiro

@neo-mashiro Is correct. This feature request makes a lot of sense, but we are currently working on higher priority feature requests and bug reports. Feel free to create a PR for this feature!

rickstaa avatar Feb 24 '22 08:02 rickstaa

Closing this since I can not reproduce the issue anymore.

[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats)

Top Langs

[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra](https://github.com/anuraghazra/github-readme-stats)

Top Langs

[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html&langs_count=10)](https://github.com/anuraghazra/github-readme-stats)

Top Langs

[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&langs_count=10](https://github.com/anuraghazra/github-readme-stats)

Top Langs

Feel free to comment with more information if this still is a problem

rickstaa avatar Oct 16 '22 10:10 rickstaa