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

--icons icon customization #535

Open
lilyball opened this issue Jul 18, 2019 · 8 comments
Open

--icons icon customization #535

lilyball opened this issue Jul 18, 2019 · 8 comments

Comments

@lilyball
Copy link
Contributor

The new --icons flag hardcodes the list of known icons. There should be a means by which I can teach it about new icons to use, or override the existing ones.

I'd also suggest tweaking the default icon from '\u{f15b}' (filled document icon) to '\u{f016}' (outline document icon), as the filled style seems more emphatic than most of the other icons, and in particular compared to the folder icon. The default icon shouldn't overshadow the icons for more specific filetypes.

@lilyball
Copy link
Contributor Author

Also looking at the list right now, it's got definitions for .apple and .shell, which don't make much sense (both extensions are apparently associated with the Apple II operating system, which is extremely obsolete). And there's one for .android which isn't associated with any known file type at all.

The .shell one should probably match file extensions for known shells, such as .fish, .sh, .bash, .zsh, etc. The .apple one could match stuff like .xib, .nib, .xcodeproj, and .xcworkspace, if there's nothing better (nerdfonts.com is nonresponsive right now so I can't check if there's an icon better suited for Xcode-related extensions). I have no idea what extensions would be appropriate to use for .android.

@mimame
Copy link

mimame commented Aug 3, 2019

Also a lot of icons are missing compared for example with lsd see https://github.com/Peltoche/lsd/blob/master/src/icon.rs
And many special files like .vimrc, .zshrc, *.lock are included too in lsd

@danielbayley
Copy link
Contributor

I'd also suggest tweaking the default icon from '\u{f15b}' (filled document icon) to '\u{f016}' (outline document icon)

Agreed.

@ddelange
Copy link

partial duplicate: #665

@obvionaoe
Copy link

Where do the icon codes come from? I'd like to make some PRs to incorporate more icons such as the .tf file extension for Terraform files

@ddelange
Copy link

ddelange commented Feb 2, 2022

@obvionaoe in a search of the nerd-fonts repo this file is the only hit: https://github.com/ryanoasis/nerd-fonts/blob/v2.1.0/css/nerd-fonts-generated.css

@pgierz
Copy link

pgierz commented Jan 30, 2024

Has anyone had any experience here? I also would like to add (or override) some of the icons that show up for specific file types.

@eggbean
Copy link

eggbean commented Jan 30, 2024

Read the top of the repo README.md.

Ask at eza

https://github.com/eza-community/eza

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

7 participants