Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hasecilu opened this issue Apr 13, 2024 · 3 comments
Open

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

hasecilu opened this issue Apr 13, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@hasecilu
Copy link

hasecilu commented Apr 13, 2024

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).

  • Ada: 
  • Arduino: 
  • Assembly: 
  • Bash: 󱆃 / 
  • C: 
  • Clojure: 
  • CoffeeScript: 
  • Coldfusion: 
  • C++: 
  • Crystal: 
  • Csharp: 󰌛
  • Css: 
  • Dart:  *ascii differs from logo
  • Docker: 
  • E-lisp: 
  • Elixir: 
  • Elm: 
  • Emojicode: 󰞅 *no logo?
  • Erlang: 
  • Fish: 
  • Fortran Legacy/modern: 󱈚
  • Fsharp: 
  • GdScript (godot): 
  • Go: 
  • Graphql: 󰡷
  • Groovy: 
  • Haskell: 
  • Haxe: 
  • HolyC: 
  • HTML: 
  • Java: 
  • JavaScript: 
  • Json: 
  • Julia: 
  • Kotlin: 
  • Lisp: 
  • Lua: 
  • Makefile: 
  • Markdown: 
  • Nim: 
  • Nix: 
  • ObjectiveC:  *Use C again?
  • Ocaml: 
  • Org: 
  • Perl: 
  • Perl6 (now raku): *need rename?
  • php:  /  / 
  • Powershell: 󰨊
  • Prolog: 
  • Purescript: 
  • Python: 
  • Qml: 
  • R: 
  • Ruby: 
  • Rust: 
  • Sass: 
  • Scala: 
  • Scheme: 
  • sh: 󱆃
  • Sql: 
  • Svelte: 
  • Svg: 󰜡
  • SystemVerilog:  *HDL
  • SWift: 
  • Tcl: 󰛓
  • Tex: 
  • TOML: 
  • Typescript: 
  • Twig: 
  • Verilog:  *HDL
  • VHDL:  *HDL
  • VimScript: 
  • Vue: 
  • Xaml: 󰙳
  • XML: 󰗀
  • YAML: 
  • Zig: 
  • zsh: 󱆃

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

@hasecilu hasecilu added the enhancement New feature or request label Apr 13, 2024
@spenserblack
Copy link
Collaborator

spenserblack commented Apr 13, 2024

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
Copy link
Author

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
Copy link
Collaborator

spenserblack commented Apr 13, 2024

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 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants