XAMPPRocky/tokei_rs

Feature request: customize badge label

Aperta

#3 aperta il 2 gen 2018

 (7 commenti) (1 reazione) (0 assegnatari)Rust (11 fork)auto 404
enhancementhelp wanted

Metriche repository

Star
 (67 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

(moved from https://github.com/Aaronepower/tokei/issues/139)

In tldr-pages/tldr we're using the file count badge as a proxy to the number of pages in the collection. Ideally we'd want to only count files in the pages directory (requested at #2), but even with the current count, which is already a good approximation, we'd want to change the label from "Files" to "pages". A feature to provide a custom label for the badge would enable us to do that.

On a related (but independent) note, I think the label should be lowercased to match the majority of default badge labels (see e.g. https://shields.io)

Guida contributor