Skip to content

Feature suggestion for small language creators: keep .gitattributes linguist-language overrides with unknown name in languages bar #14528

Closed
@ell1e

Description

@ell1e
  • Gitea version (or commit ref): 1.14.0+dev-546-gdc66e4740
  • Git version: ???
  • Operating system: docker
  • Database (use [x]): should be irrelevant
  • Can you reproduce the bug at https://try.gitea.io: did not try, since it's not a bug
  • Log gist: not a bug

Description

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 language Horse64 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:
Screenshot from 2021-01-30 17-30-04
Mockup how this could look like with this feature:
Screenshot from 2021-01-30 17-30-04-2

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.type/upstreamThis is an issue in one of Gitea's dependencies and should be reported there

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions