mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
feat: add document mime-types, extensions and icons
This commit is contained in:
parent
74bdc07479
commit
907d5c3e6a
1 changed files with 32 additions and 0 deletions
|
|
@ -157,6 +157,12 @@ rules = [
|
|||
{ mime = "application/x-rar", fg = "magenta" },
|
||||
{ mime = "application/xz", fg = "magenta" },
|
||||
|
||||
# Documents
|
||||
{ mime = "application/doc", fg = "green"},
|
||||
{ mime = "application/pdf", fg = "green"},
|
||||
{ mime = "application/rtf", fg = "green"},
|
||||
{ mime = "application/vnd.*", fg = "green"},
|
||||
|
||||
# Fallback
|
||||
# { name = "*", fg = "white" },
|
||||
{ name = "*/", fg = "blue" }
|
||||
|
|
@ -203,6 +209,32 @@ rules = [
|
|||
"*.bz2" = ""
|
||||
"*.xz" = ""
|
||||
|
||||
# Documents
|
||||
"*.csv" = ""
|
||||
"*.doc" = ""
|
||||
"*.doct" = ""
|
||||
"*.docx" = ""
|
||||
"*.dot" = ""
|
||||
"*.ods" = ""
|
||||
"*.ots" = ""
|
||||
"*.pdf" = ""
|
||||
"*.pom" = ""
|
||||
"*.pot" = ""
|
||||
"*.ppm" = ""
|
||||
"*.pps" = ""
|
||||
"*.ppt" = ""
|
||||
"*.potx" = ""
|
||||
"*.ppmx" = ""
|
||||
"*.ppmx" = ""
|
||||
"*.ppsx" = ""
|
||||
"*.pptx" = ""
|
||||
"*.xlc" = ""
|
||||
"*.xlm" = ""
|
||||
"*.xls" = ""
|
||||
"*.xlt" = ""
|
||||
"*.xlsm" = ""
|
||||
"*.xlsx" = ""
|
||||
|
||||
# Audio
|
||||
"*.mp3" = ""
|
||||
"*.flac" = ""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue