Added keybinds for options for Yazi opener
This commit is contained in:
parent
e42cb28ffc
commit
fb16f8aa70
5 changed files with 106 additions and 42 deletions
|
|
@ -169,35 +169,31 @@ icon_error = ""
|
|||
[filetype]
|
||||
|
||||
rules = [
|
||||
# Images
|
||||
{ mime = "image/*", fg = "yellow" },
|
||||
# Sections correspond to different colors and their meaning
|
||||
|
||||
# Media
|
||||
# Can see and not hear
|
||||
{ mime = "image/*", fg = "yellow" },
|
||||
{ mime = "application/{epub*,pdf,doc,rtf,vnd.*}", fg = "yellow" },
|
||||
|
||||
# Can hear
|
||||
{ mime = "{audio,video}/*", fg = "magenta" },
|
||||
|
||||
# Archives
|
||||
{ mime = "application/{,g}zip", fg = "red" },
|
||||
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "red" },
|
||||
# Is link
|
||||
{ name = "*", is = "link", fg = "cyan" },
|
||||
{ name = "*/", is = "link", fg = "cyan", bold = true },
|
||||
|
||||
# Documents
|
||||
{ mime = "application/{pdf,doc,rtf,vnd.*}", fg = "cyan" },
|
||||
# Can open
|
||||
{ mime = "application/{,g}zip", fg = "blue" },
|
||||
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "blue" },
|
||||
{ name = "*/", fg = "blue", bold = true },
|
||||
|
||||
# Empty files
|
||||
# { mime = "inode/x-empty", fg = "red" },
|
||||
# Can run
|
||||
{ name = "*", is = "exec", fg = "green" },
|
||||
|
||||
# Special files
|
||||
# Broken
|
||||
{ name = "*", is = "orphan", bg = "red" },
|
||||
{ name = "*", is = "exec" , fg = "green" },
|
||||
|
||||
# Dummy files
|
||||
{ name = "*", is = "dummy", bg = "red" },
|
||||
{ name = "*/", is = "dummy", bg = "red" },
|
||||
|
||||
# Fallback
|
||||
# { name = "*", fg = "white" },
|
||||
{ name = "*/", is = "link", fg = "cyan", bold = true },
|
||||
{ name = "*", is = "link", fg = "cyan", bold = true },
|
||||
{ name = "*/", fg = "blue", bold = true },
|
||||
]
|
||||
|
||||
[icon]
|
||||
|
|
@ -757,10 +753,6 @@ exts = [
|
|||
{ name = "zip", text = "", fg_dark = "#eca517", fg_light = "#76520c" },
|
||||
{ name = "zsh", text = "", fg_dark = "#89e051", fg_light = "#447028" },
|
||||
{ name = "zst", text = "", fg_dark = "#eca517", fg_light = "#76520c" },
|
||||
|
||||
{ name = "*", text = "", is = "exec" },
|
||||
{ name = "*" , text = "" },
|
||||
{ name = "*/", text = "", fg = "yellow" },
|
||||
]
|
||||
conds = [
|
||||
# Special files
|
||||
|
|
@ -774,7 +766,7 @@ conds = [
|
|||
|
||||
# Fallback
|
||||
{ if = "dir", text = "", fg_dark = "yellow" },
|
||||
{ if = "exec", text = "" },
|
||||
{ if = "exec", text = "", fg_dark = "yellow" },
|
||||
{ if = "!dir", text = "" },
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue