mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
feat: Add rules to [filetype]
This adds rules for empty files, links and executables. Coloring is based on [eza's default theme](https://github.com/eza-community/eza/blob/main/src/theme/default_theme.rs). This also seems to be a default across terminal file managers.
This commit is contained in:
parent
d01e18067c
commit
f57ea70784
1 changed files with 9 additions and 0 deletions
|
|
@ -182,6 +182,15 @@ rules = [
|
|||
# Documents
|
||||
{ mime = "application/{pdf,doc,rtf,vnd.*}", fg = "green" },
|
||||
|
||||
# Empty files
|
||||
{ mime = "inode/x-empty", fg = "red" },
|
||||
|
||||
# Is-rules
|
||||
{ name = "*" , is = "orphan", fg = "red" },
|
||||
{ name = "*" , is = "link" , fg = "cyan" },
|
||||
{ name = "*/", is = "link" , fg = "cyan" },
|
||||
{ name = "*" , is = "exec" , fg = "green" },
|
||||
|
||||
# Fallback
|
||||
# { name = "*", fg = "white" },
|
||||
{ name = "*/", fg = "blue" }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue