ogham / exa

A modern replacement for ‘ls’.
https://the.exa.website/
MIT License
23.53k stars 662 forks source link

--icons icon customization #535

Open lilyball opened 5 years ago

lilyball commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 4 years ago

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

Agreed.

ddelange commented 3 years ago

partial duplicate: #665

obvionaoe commented 2 years ago

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 commented 2 years ago

@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 commented 7 months ago

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 commented 7 months ago

Read the top of the repo README.md.

Ask at eza

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