Ignore certain directory or file in Language Status Bar #9454

Closed
opened 2025-11-02 08:39:25 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @ddddavid-he on GitHub (Aug 23, 2022).

Feature Description

2022-08-23

When I have some repos of LaTeX project with a lot of .eps figures or something like that inside, the Language Status Bar will be occupied by the language PostScript (as is shown above), which is quite misleading.

I wounder if it is possible to have some options to ignore certain directories or language
in language detection process in the future versions.

Screenshots

No response

Originally created by @ddddavid-he on GitHub (Aug 23, 2022). ### Feature Description ![2022-08-23](https://user-images.githubusercontent.com/58453183/186186608-cdb5363f-8db5-4a6d-ae23-d26468ee24df.png) When I have some repos of LaTeX project with a lot of `.eps` figures or something like that inside, the Language Status Bar will be occupied by the language PostScript (as is shown above), which is quite misleading. I wounder if it is possible to have some options to ignore certain directories or language in language detection process in the future versions. ### Screenshots _No response_
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 08:39:25 -06:00
Author
Owner

@delvh commented on GitHub (Aug 23, 2022):

I think something like this should already be possible by supplying your own .gitattributes.
But don't ask me how.

@delvh commented on GitHub (Aug 23, 2022): I think something like this should already be possible by supplying your own `.gitattributes`. But don't ask me _how_.
Author
Owner

@ddddavid-he commented on GitHub (Aug 23, 2022):

It's exactly what I want. Thanks for your tips.
Adding **/figures/* linguist-vendored in .gitattributes do prevent language detection.

@ddddavid-he commented on GitHub (Aug 23, 2022): It's exactly what I want. Thanks for your tips. Adding `**/figures/* linguist-vendored` in `.gitattributes` do prevent language detection.
Author
Owner

@raforg commented on GitHub (Oct 3, 2022):

Does gitea support linguist-detectable=false as well? It doesn't seem so. Putting this in .gitattributes affects github's display of the main language, but it doesn't affect codeberg.

@raforg commented on GitHub (Oct 3, 2022): Does gitea support linguist-detectable=false as well? It doesn't seem so. Putting this in .gitattributes affects github's display of the main language, but it doesn't affect codeberg.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9454