-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Feature suggestion for small language creators: keep .gitattributes linguist-language overrides with unknown name in languages bar #14528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Currently Gitea does not support reading gitattributes file |
And the language bar is not branch special. |
Ah interesting. I'm actually not sure if it changes on GitHub for each branch or even commit you're looking at, but so far I would have assumed it probably does...? I never really paid attention to this detail though. If this was just based on the main branch I still think it'd work sufficiently well for most projects though. |
@alexanderadam no, this is a general problem of quirky side languages, this just doesn't scale. So just "getting it added to {library that is meant for serious syntax highlighting/lang identification}" is usually not in anybody's interest. Nobody wants that filled up with small hobby languages that might be discontinued, yet these hobby languages have a real use in having their repos not completely wrongly annotated in statistics if they can help it via manual |
Is this on the roadmap to support some time? I couldn't find an issue about it. |
fixed by #16773 |
[x]
): should be irrelevantDescription
I have a feature suggestion for small language creators: keep .gitattributes linguist-language overrides with unknown name in languages bar. This has also been suggested for the original linguist and GitHub here, but GitHub seems to query language names from a central database and isn't interested in adding extra code to allow repo-only entries indirectly created by
.gitattributes
entries.Basically, when
.gitattributes
contains a line like this:*.h64 linguist-language=Horse64
, and the languageHorse64
isn't known to gitea / go-enry, then it would be cool if it still showed up with the name "Horse64" and any random color choice in the languages bar. I checked this on my own gitea instance (running 1.14.0) and right now this isn't the case, same as on GitHub the unknown language classification is just plain ignored and omitted.Screenshots
Project with


*.h64 linguist-language=Horse64
line and some.h64
files looks like this:Mockup how this could look like with this feature:
The text was updated successfully, but these errors were encountered: