o2sh / onefetch

Command-line Git information tool
https://onefetch.dev
MIT License
10.39k stars 281 forks source link

Improve Nerd Font Icon Support. #1408

Open Localghost385 opened 2 months ago

Localghost385 commented 2 months ago

An issue tracking which languages can display a custom nerd font icon in the chip.

eg.

358289176-cecf466b-ebda-4944-b331-35c2802d23cd

The Icons can be viewed here.

or you can use an extension that allows for custom css like stylus, and create a rule to use a nerd font for this github issue.

@import url("https://www.nerdfonts.com/assets/css/webfont.css");

.task-list-item {
    font-family: 'NerdFontsSymbols Nerd Font' !important;
}

Languages that have icons

Languages that are missing icons

Localghost385 commented 2 months ago

@o2sh I don't think I can add labels to this or pin it. Should it be marked with upstream and enhancement?

o2sh commented 2 months ago

Done 👍

spenserblack commented 2 months ago

To preview the icons in the browser you can use an extension that allows for custom css

We might want to have the a Nerd Font asset on the preview site and implement that CSS there.

Localghost385 commented 2 months ago

@spenserblack I created a pr #1411, I'll update the issue when its merged.

hasecilu commented 1 week ago

Hi, new version has been released: https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.3.0

Localghost385 commented 1 week ago

How long do these things take to get updated in package managers? It might be a good idea to wait a while before updating?

I'll look through the changes for missing icons now though.

spenserblack commented 1 week ago

If you want to you're more than welcome, but IMO it might be a bit overwhelming to check for new icons for every release. Consider that many users might not be using the most up-to-date version, either (Personally I just download fonts from the site rather than use a package manager). I think we only need to look things over when there's a breaking change. Otherwise, it could be left up to the community to make a PR to add a Nerd Font icon for their favorite language.