mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
feat: add color to icons (#683)
This commit is contained in:
parent
b55c5dc9a1
commit
ebe0257180
1 changed files with 94 additions and 94 deletions
|
|
@ -173,40 +173,40 @@ rules = [
|
|||
|
||||
rules = [
|
||||
# Programming
|
||||
{ name = "*.c" , text = "" },
|
||||
{ name = "*.cpp" , text = "" },
|
||||
{ name = "*.css" , text = "" },
|
||||
{ name = "*.fish" , text = "" },
|
||||
{ name = "*.go" , text = "" },
|
||||
{ name = "*.h" , text = "" },
|
||||
{ name = "*.hpp" , text = "" },
|
||||
{ name = "*.html" , text = "" },
|
||||
{ name = "*.java" , text = "" },
|
||||
{ name = "*.js" , text = "" },
|
||||
{ name = "*.jsx" , text = "" },
|
||||
{ name = "*.lua" , text = "" },
|
||||
{ name = "*.nix" , text = "" },
|
||||
{ name = "*.php" , text = "" },
|
||||
{ name = "*.py" , text = "" },
|
||||
{ name = "*.rb" , text = "" },
|
||||
{ name = "*.rs" , text = "" },
|
||||
{ name = "*.scss" , text = "" },
|
||||
{ name = "*.sh" , text = "" },
|
||||
{ name = "*.swift", text = "" },
|
||||
{ name = "*.ts" , text = "" },
|
||||
{ name = "*.tsx" , text = "" },
|
||||
{ name = "*.vim" , text = "" },
|
||||
{ name = "*.vue" , text = "" },
|
||||
{ name = "*.c" , text = "", fg = "#599eff" },
|
||||
{ name = "*.cpp" , text = "", fg = "#519aba" },
|
||||
{ name = "*.css" , text = "", fg = "#42a5f5" },
|
||||
{ name = "*.fish" , text = "", fg = "#4d5a5e" },
|
||||
{ name = "*.go" , text = "", fg = "#519aba" },
|
||||
{ name = "*.h" , text = "", fg = "#a074c4" },
|
||||
{ name = "*.hpp" , text = "", fg = "#a074c4" },
|
||||
{ name = "*.html" , text = "", fg = "#e44d26" },
|
||||
{ name = "*.java" , text = "", fg = "#cc3e44" },
|
||||
{ name = "*.js" , text = "", fg = "#F1F134" },
|
||||
{ name = "*.jsx" , text = "", fg = "#20c2e3" },
|
||||
{ name = "*.lua" , text = "", fg = "#51a0cf" },
|
||||
{ name = "*.nix" , text = "", fg = "#7ebae4" },
|
||||
{ name = "*.php" , text = "", fg = "#a074c4" },
|
||||
{ name = "*.py" , text = "", fg = "#ffbc03" },
|
||||
{ name = "*.rb" , text = "", fg = "#701516" },
|
||||
{ name = "*.rs" , text = "", fg = "#dea584" },
|
||||
{ name = "*.scss" , text = "", fg = "#f55385" },
|
||||
{ name = "*.sh" , text = "", fg = "#4d5a5e" },
|
||||
{ name = "*.swift", text = "", fg = "#e37933" },
|
||||
{ name = "*.ts" , text = "", fg = "#519aba" },
|
||||
{ name = "*.tsx" , text = "", fg = "#1354bf" },
|
||||
{ name = "*.vim" , text = "", fg = "#019833" },
|
||||
{ name = "*.vue" , text = "", fg = "#8dc149" },
|
||||
|
||||
# Text
|
||||
{ name = "*.conf", text = "" },
|
||||
{ name = "*.ini" , text = "" },
|
||||
{ name = "*.json", text = "" },
|
||||
{ name = "*.md" , text = "" },
|
||||
{ name = "*.toml", text = "" },
|
||||
{ name = "*.txt", text = "" },
|
||||
{ name = "*.yaml", text = "" },
|
||||
{ name = "*.yml" , text = "" },
|
||||
{ name = "*.conf", text = "", fg = "#6d8086" },
|
||||
{ name = "*.ini" , text = "", fg = "#6d8086" },
|
||||
{ name = "*.json", text = "", fg = "#cbcb41" },
|
||||
{ name = "*.md" , text = "", fg = "#ffffff" },
|
||||
{ name = "*.toml", text = "", fg = "#ffffff" },
|
||||
{ name = "*.txt", text = "", fg = "#89e051" },
|
||||
{ name = "*.yaml", text = "", fg = "#6d8086" },
|
||||
{ name = "*.yml" , text = "", fg = "#6d8086" },
|
||||
|
||||
# Archives
|
||||
{ name = "*.7z" , text = "" },
|
||||
|
|
@ -218,82 +218,82 @@ rules = [
|
|||
{ name = "*.zip", text = "" },
|
||||
|
||||
# Images
|
||||
{ name = "*.HEIC", text = "" },
|
||||
{ name = "*.avif", text = "" },
|
||||
{ name = "*.bmp" , text = "" },
|
||||
{ name = "*.gif" , text = "" },
|
||||
{ name = "*.ico" , text = "" },
|
||||
{ name = "*.jpeg", text = "" },
|
||||
{ name = "*.jpg" , text = "" },
|
||||
{ name = "*.png" , text = "" },
|
||||
{ name = "*.svg" , text = "" },
|
||||
{ name = "*.webp", text = "" },
|
||||
{ name = "*.HEIC", text = "", fg = "#a074c4" },
|
||||
{ name = "*.avif", text = "", fg = "#a074c4" },
|
||||
{ name = "*.bmp" , text = "", fg = "#a074c4" },
|
||||
{ name = "*.gif" , text = "", fg = "#a074c4" },
|
||||
{ name = "*.ico" , text = "", fg = "#cbcb41" },
|
||||
{ name = "*.jpeg", text = "", fg = "#a074c4" },
|
||||
{ name = "*.jpg" , text = "", fg = "#a074c4" },
|
||||
{ name = "*.png" , text = "", fg = "#a074c4" },
|
||||
{ name = "*.svg" , text = "", fg = "#FFB13B" },
|
||||
{ name = "*.webp", text = "", fg = "#a074c4" },
|
||||
|
||||
# Movies
|
||||
{ name = "*.avi" , text = "" },
|
||||
{ name = "*.mkv" , text = "" },
|
||||
{ name = "*.mov" , text = "" },
|
||||
{ name = "*.mp4" , text = "" },
|
||||
{ name = "*.webm", text = "" },
|
||||
{ name = "*.avi" , text = "", fg = "#FD971F" },
|
||||
{ name = "*.mkv" , text = "", fg = "#FD971F" },
|
||||
{ name = "*.mov" , text = "", fg = "#FD971F" },
|
||||
{ name = "*.mp4" , text = "", fg = "#FD971F" },
|
||||
{ name = "*.webm", text = "", fg = "#FD971F" },
|
||||
|
||||
# Audio
|
||||
{ name = "*.aac" , text = "" },
|
||||
{ name = "*.flac", text = "" },
|
||||
{ name = "*.m4a" , text = "" },
|
||||
{ name = "*.mp3" , text = "" },
|
||||
{ name = "*.ogg" , text = "" },
|
||||
{ name = "*.wav" , text = "" },
|
||||
{ name = "*.aac" , text = "", fg = "#66D8EF" },
|
||||
{ name = "*.flac", text = "", fg = "#66D8EF" },
|
||||
{ name = "*.m4a" , text = "", fg = "#66D8EF" },
|
||||
{ name = "*.mp3" , text = "", fg = "#66D8EF" },
|
||||
{ name = "*.ogg" , text = "", fg = "#66D8EF" },
|
||||
{ name = "*.wav" , text = "", fg = "#66D8EF" },
|
||||
|
||||
# Documents
|
||||
{ name = "*.csv" , text = "" },
|
||||
{ name = "*.doc" , text = "" },
|
||||
{ name = "*.doct", text = "" },
|
||||
{ name = "*.docx", text = "" },
|
||||
{ name = "*.dot" , text = "" },
|
||||
{ name = "*.ods" , text = "" },
|
||||
{ name = "*.ots" , text = "" },
|
||||
{ name = "*.pdf" , text = "" },
|
||||
{ name = "*.pom" , text = "" },
|
||||
{ name = "*.pot" , text = "" },
|
||||
{ name = "*.potx", text = "" },
|
||||
{ name = "*.ppm" , text = "" },
|
||||
{ name = "*.ppmx", text = "" },
|
||||
{ name = "*.pps" , text = "" },
|
||||
{ name = "*.ppsx", text = "" },
|
||||
{ name = "*.ppt" , text = "" },
|
||||
{ name = "*.pptx", text = "" },
|
||||
{ name = "*.xlc" , text = "" },
|
||||
{ name = "*.xlm" , text = "" },
|
||||
{ name = "*.xls" , text = "" },
|
||||
{ name = "*.xlsm", text = "" },
|
||||
{ name = "*.xlsx", text = "" },
|
||||
{ name = "*.xlt" , text = "" },
|
||||
{ name = "*.csv" , text = "", fg = "#89e051" },
|
||||
{ name = "*.doc" , text = "", fg = "#185abd" },
|
||||
{ name = "*.doct", text = "", fg = "#185abd" },
|
||||
{ name = "*.docx", text = "", fg = "#185abd" },
|
||||
{ name = "*.dot" , text = "", fg = "#185abd" },
|
||||
{ name = "*.ods" , text = "", fg = "#207245" },
|
||||
{ name = "*.ots" , text = "", fg = "#207245" },
|
||||
{ name = "*.pdf" , text = "", fg = "#b30b00" },
|
||||
{ name = "*.pom" , text = "", fg = "#cc3e44" },
|
||||
{ name = "*.pot" , text = "", fg = "#cb4a32" },
|
||||
{ name = "*.potx", text = "", fg = "#cb4a32" },
|
||||
{ name = "*.ppm" , text = "", fg = "#a074c4" },
|
||||
{ name = "*.ppmx", text = "", fg = "#cb4a32" },
|
||||
{ name = "*.pps" , text = "", fg = "#cb4a32" },
|
||||
{ name = "*.ppsx", text = "", fg = "#cb4a32" },
|
||||
{ name = "*.ppt" , text = "", fg = "#cb4a32" },
|
||||
{ name = "*.pptx", text = "", fg = "#cb4a32" },
|
||||
{ name = "*.xlc" , text = "", fg = "#207245" },
|
||||
{ name = "*.xlm" , text = "", fg = "#207245" },
|
||||
{ name = "*.xls" , text = "", fg = "#207245" },
|
||||
{ name = "*.xlsm", text = "", fg = "#207245" },
|
||||
{ name = "*.xlsx", text = "", fg = "#207245" },
|
||||
{ name = "*.xlt" , text = "", fg = "#207245" },
|
||||
|
||||
# Lockfiles
|
||||
{ name = "*.lock", text = "" },
|
||||
{ name = "*.lock", text = "", fg = "#bbbbbb" },
|
||||
|
||||
# Misc
|
||||
{ name = "*.bin", text = "" },
|
||||
{ name = "*.exe", text = "" },
|
||||
{ name = "*.pkg", text = "" },
|
||||
{ name = "*.bin", text = "", fg = "#9F0500" },
|
||||
{ name = "*.exe", text = "", fg = "#9F0500" },
|
||||
{ name = "*.pkg", text = "", fg = "#9F0500" },
|
||||
|
||||
# Dotfiles
|
||||
{ name = ".DS_Store" , text = "" },
|
||||
{ name = ".bashprofile" , text = "" },
|
||||
{ name = ".bashrc" , text = "" },
|
||||
{ name = ".gitattributes", text = "" },
|
||||
{ name = ".gitignore" , text = "" },
|
||||
{ name = ".gitmodules" , text = "" },
|
||||
{ name = ".vimrc" , text = "" },
|
||||
{ name = ".zprofile" , text = "" },
|
||||
{ name = ".zshenv" , text = "" },
|
||||
{ name = ".zshrc" , text = "" },
|
||||
{ name = ".DS_Store" , text = "", fg = "#41535b" },
|
||||
{ name = ".bashprofile" , text = "", fg = "#89e051" },
|
||||
{ name = ".bashrc" , text = "", fg = "#89e051" },
|
||||
{ name = ".gitattributes", text = "", fg = "#41535b" },
|
||||
{ name = ".gitignore" , text = "", fg = "#41535b" },
|
||||
{ name = ".gitmodules" , text = "", fg = "#41535b" },
|
||||
{ name = ".vimrc" , text = "", fg = "#019833" },
|
||||
{ name = ".zprofile" , text = "", fg = "#89e051" },
|
||||
{ name = ".zshenv" , text = "", fg = "#89e051" },
|
||||
{ name = ".zshrc" , text = "", fg = "#89e051" },
|
||||
|
||||
# Named files
|
||||
{ name = "COPYING" , text = "" },
|
||||
{ name = "Containerfile", text = "" },
|
||||
{ name = "Dockerfile" , text = "" },
|
||||
{ name = "LICENSE" , text = "" },
|
||||
{ name = "COPYING" , text = "", fg = "#cbcb41" },
|
||||
{ name = "Containerfile", text = "", fg = "#458ee6" },
|
||||
{ name = "Dockerfile" , text = "", fg = "#458ee6" },
|
||||
{ name = "LICENSE" , text = "", fg = "#d0bf41" },
|
||||
|
||||
# Directories
|
||||
{ name = ".config/" , text = "" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue