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

Is there a way to change icons colors only? #928

Closed
G2G2G2G opened this issue Sep 8, 2022 · 5 comments
Closed

Is there a way to change icons colors only? #928

G2G2G2G opened this issue Sep 8, 2022 · 5 comments

Comments

@G2G2G2G
Copy link

G2G2G2G commented Sep 8, 2022

like this
1
(nnn file manager)

also this is 30000000000x better (I did the math) than the nerdfont this wiki recommends for font patching
https://github.com/sebastiencs/icons-in-terminal

Also while we do that can we support more colors? The package you import in this script https://github.com/gokcehan/lf/blob/master/colors.go has tons of them as seen here:
https://github.com/gdamore/tcell/blob/master/color.go

can we perhaps just search the massive struct in that color.go of tcell and use those words instead of your hard coded bash ones that run through a switch? Line 845 has easy names.

Most terminals these days support many colors https://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html

or do I not understand your switch statement? IDK wtf is going on after the 40s, does it support RGB in the second if statement of the 48 case or something?

lmao

wow ok, I figured it out
foreground RGB:
38;2;10;206;255
background:
48;2;128;32;122

why is this not mentioned anywhere?
anyway back to original, can we color icons separately?

Please add this to the etc/color.example so dummies like me can see how stuff works, these are the languages logo colors

# code
*.go    38;2;121;212;253
*.php   38;2;120;124;181
*.js    38;2;255;217;58
*.html  38;2;241;100;40
*.css   38;2;46;170;222
*.md    0;31
*.json  38;2;155;155;155
*.py    38;2;255;212;59
*.xml   38;2;145;167;141
*.log   0;37
*.txt   0;37


*.pdf   0;31
@Joao-Queiroga
Copy link

I would like to do that too. The same way neovim-web-devicons do.

@ryanmsnyder
Copy link

I would also really like this feature.

@techeddie
Copy link

I am missing this feature as well, would be awesome to have it.. thanks

@limaceous-bushwhacker
Copy link

Would love to see this implemented in lf.

@joelim-work
Copy link
Collaborator

This is now officially supported by #1674

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

No branches or pull requests

6 participants