o2sh / onefetch

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

Include a flag to replace the "circle" with a glyph from Nerd Fonts #1308

Open hasecilu opened 2 months ago

hasecilu commented 2 months ago

Summary ๐Ÿ’ก

Currently in the languages section a circle using the "chip" color is printed along the programming language name, it would be more attractive to the eye to have the colored logo of the programming language instead of the circle.

Motivation ๐Ÿ”ฆ

In the Nerd Fonts project there are a lot of glyphs directly related to a lot of programming languages (see non extensive list below, to be updated later).

If a new entry in the config file is added, users could include the glyph if it exists and onefetch could replace the circle with that.

            let circle = "\u{25CF}".color(*circle_color);
    glyph: "\uf34b" # ๏‹

Example:

onefetch --icons

image

spenserblack commented 2 months ago

So you're proposing using the main language's logo as the "chip" for each language? TBH If we supported something like this I'd want to go a step further and show each language's nerdfont icon.

hasecilu commented 2 months ago

Yes, I mean to assign their corresponding icons to each language, in the picture I just used the Rust icon because it was an easy change, I'm not really good at rust so I don't know how to implement the proposed change.

spenserblack commented 2 months ago

I'm not really good at rust so I don't know how to implement the proposed change.

No problem. Let's give this issue some time for discussion before you make any contributions . In case we close this as "not planned" I wouldn't want you to do work unnecessarily. But even just updating languages.yaml would be a huge help ๐Ÿ™‚

o2sh commented 2 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.