Yazi makeover
This commit is contained in:
parent
49e4e79ed4
commit
8780604ade
4 changed files with 226 additions and 195 deletions
|
|
@ -40,27 +40,53 @@ function Manager:render(area)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Show user and hostname in top bar
|
-- Show user and hostname in top bar
|
||||||
-- function Header:host()
|
function Header:host()
|
||||||
-- return ui.Span(ya.user_name() .. "@" .. ya.host_name() .. ":"):fg("blue")
|
if ya.target_family() ~= "unix" then
|
||||||
-- end
|
return ui.Line {}
|
||||||
--
|
end
|
||||||
-- function Header:layout(area)
|
return ui.Line { ui.Span(ya.user_name() .. "@" .. ya.host_name()):fg("lightgreen"):bold(true), ui.Span(":") }
|
||||||
-- self.area = area
|
end
|
||||||
--
|
|
||||||
-- return ui.Layout()
|
function Header:render(area)
|
||||||
-- :direction(ui.Layout.HORIZONTAL)
|
self.area = area
|
||||||
-- :constraints({ ui.Constraint.Percentage(50), ui.Constraint.Percentage(50) })
|
|
||||||
-- :split(area)
|
local right = ui.Line { self:count(), self:tabs() }
|
||||||
-- end
|
local left = ui.Line {
|
||||||
--
|
self:host(),
|
||||||
-- function Header:render(area)
|
self:cwd(math.max(0, area.w - right:width())):fg("blue"),
|
||||||
-- local chunks = self:layout(area)
|
ui.Span("/"):fg("blue"):bold(true),
|
||||||
--
|
ui.Span(tostring(cx.active.current.hovered.name)):fg("white"):bold(true),
|
||||||
-- local left = ui.Line { self:host(), self:cwd() }
|
}
|
||||||
-- local right = ui.Line { self:tabs() }
|
return {
|
||||||
-- return {
|
ui.Paragraph(area, { left }),
|
||||||
-- ui.Paragraph(chunks[1], { left }),
|
ui.Paragraph(area, { right }):align(ui.Paragraph.RIGHT),
|
||||||
-- ui.Paragraph(chunks[2], { right }):align(ui.Paragraph.RIGHT),
|
}
|
||||||
-- }
|
end
|
||||||
-- end
|
|
||||||
--
|
-- Show symlink path in status bar
|
||||||
|
function Status:name()
|
||||||
|
local h = cx.active.current.hovered
|
||||||
|
if not h then
|
||||||
|
return ui.Span("")
|
||||||
|
end
|
||||||
|
|
||||||
|
local linked = ""
|
||||||
|
if h.link_to ~= nil then
|
||||||
|
linked = " -> " .. tostring(h.link_to)
|
||||||
|
end
|
||||||
|
return ui.Span(" " .. h.name .. linked)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Remove file size from status bar
|
||||||
|
function Status:render(area)
|
||||||
|
self.area = area
|
||||||
|
|
||||||
|
local left = ui.Line { self:mode(), self:name() }
|
||||||
|
local right = ui.Line { self:permissions(), self:position() }
|
||||||
|
return {
|
||||||
|
ui.Paragraph(area, { left }),
|
||||||
|
ui.Paragraph(area, { right }):align(ui.Paragraph.RIGHT),
|
||||||
|
table.unpack(Progress:render(area, right:width())),
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,12 @@
|
||||||
[manager]
|
[manager]
|
||||||
|
|
||||||
prepend_keymap = [
|
prepend_keymap = [
|
||||||
{ on = [ "l" ], exec = [ "plugin smart-enter --sync", "escape --visual --select" ], desc = "Enter the child directory, or open file." },
|
{ on = [ "j" ], run = [ "plugin --sync arrow --args=1"], desc = "Move selection downwards, or wrap." },
|
||||||
{ on = [ "L" ], exec = "plugin smart-enter --sync --args='detatch'", desc = "Open in new window." },
|
{ on = [ "k" ], run = [ "plugin --sync arrow --args=-1"], desc = "Move selection upwards, or wrap." },
|
||||||
{ on = [ "n" ], exec = "create", desc = "Create a file or directory (ends with / for directories)" },
|
{ on = [ "l" ], run = [ "plugin smart-enter --sync", "escape --visual --select" ], desc = "Enter the child directory, or open file." },
|
||||||
{ on = [ "=" ], exec = """
|
{ on = [ "L" ], run = "plugin smart-enter --sync --args='detatch'", desc = "Open in new window." },
|
||||||
|
{ on = [ "n" ], run = "create", desc = "Create a file or directory (ends with / for directories)" },
|
||||||
|
{ on = [ "=" ], run = """
|
||||||
shell 'printf "Mode Bits: "; read ans; chmod $ans "$@"' --block --confirm
|
shell 'printf "Mode Bits: "; read ans; chmod $ans "$@"' --block --confirm
|
||||||
""", desc = "chmod" },
|
""", desc = "chmod" },
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
cwd = { fg = "white", bold = true }
|
cwd = { fg = "white", bold = true }
|
||||||
|
|
||||||
# Hovered
|
# Hovered
|
||||||
hovered = { fg = "black", bg = "lightblue" }
|
hovered = { reversed = true }
|
||||||
preview_hovered = { underline = true }
|
preview_hovered = { underline = true }
|
||||||
|
|
||||||
# Find
|
# Find
|
||||||
|
|
@ -40,19 +40,19 @@ syntect_theme = ""
|
||||||
# : Status {{{
|
# : Status {{{
|
||||||
|
|
||||||
[status]
|
[status]
|
||||||
separator_open = ""
|
separator_open = ""
|
||||||
separator_close = ""
|
separator_close = ""
|
||||||
separator_style = { fg = "darkgray", bg = "darkgray" }
|
separator_style = { fg = "darkgray", bg = "darkgray" }
|
||||||
|
|
||||||
# Mode
|
# Mode
|
||||||
mode_normal = { fg = "black", bg = "lightblue", bold = true }
|
mode_normal = { fg = "black", bg = "lightblue", bold = false }
|
||||||
mode_select = { fg = "black", bg = "lightgreen", bold = true }
|
mode_select = { fg = "black", bg = "lightgreen", bold = false }
|
||||||
mode_unset = { fg = "black", bg = "lightmagenta", bold = true }
|
mode_unset = { fg = "black", bg = "lightmagenta", bold = false }
|
||||||
|
|
||||||
# Progress
|
# Progress
|
||||||
progress_label = { bold = true }
|
progress_label = { bold = true }
|
||||||
progress_normal = { fg = "blue", bg = "black" }
|
progress_normal = { fg = "blue", bg = "black" }
|
||||||
progress_error = { fg = "red", bg = "black" }
|
progress_error = { fg = "red", bg = "black" }
|
||||||
|
|
||||||
# Permissions
|
# Permissions
|
||||||
permissions_t = { fg = "lightgreen" }
|
permissions_t = { fg = "lightgreen" }
|
||||||
|
|
@ -141,84 +141,86 @@ footer = { fg = "black", bg = "white" }
|
||||||
[filetype]
|
[filetype]
|
||||||
|
|
||||||
rules = [
|
rules = [
|
||||||
# Images
|
# Images
|
||||||
{ mime = "image/*", fg = "magenta" },
|
{ mime = "image/*", fg = "magenta" },
|
||||||
|
|
||||||
# Videos
|
# Videos
|
||||||
{ mime = "video/*", fg = "green" },
|
{ mime = "video/*", fg = "green" },
|
||||||
{ mime = "audio/*", fg = "green" },
|
{ mime = "audio/*", fg = "green" },
|
||||||
|
|
||||||
# Archives
|
# Archives
|
||||||
{ mime = "application/zip", fg = "red" },
|
{ mime = "application/zip", fg = "red" },
|
||||||
{ mime = "application/gzip", fg = "red" },
|
{ mime = "application/gzip", fg = "red" },
|
||||||
{ mime = "application/x-tar", fg = "red" },
|
{ mime = "application/x-tar", fg = "red" },
|
||||||
{ mime = "application/x-bzip", fg = "red" },
|
{ mime = "application/x-bzip", fg = "red" },
|
||||||
{ mime = "application/x-bzip2", fg = "red" },
|
{ mime = "application/x-bzip2", fg = "red" },
|
||||||
{ mime = "application/x-7z-compressed", fg = "red" },
|
{ mime = "application/x-7z-compressed", fg = "red" },
|
||||||
{ mime = "application/x-rar", fg = "red" },
|
{ mime = "application/x-rar", fg = "red" },
|
||||||
{ mime = "application/xz", fg = "red" },
|
{ mime = "application/xz", fg = "red" },
|
||||||
|
|
||||||
# Documents
|
# Documents
|
||||||
# { mime = "application/doc", fg = "green" },
|
# { mime = "application/doc", fg = "green" },
|
||||||
{ mime = "application/pdf", fg = "magenta" },
|
{ mime = "application/pdf", fg = "magenta" },
|
||||||
# { mime = "application/rtf", fg = "green" },
|
# { mime = "application/rtf", fg = "green" },
|
||||||
# { mime = "application/vnd.*", fg = "green" },
|
# { mime = "application/vnd.*", fg = "green" },
|
||||||
|
|
||||||
# Fallback
|
# Fallback
|
||||||
# { name = "*", fg = "white" },
|
# { name = "*", fg = "white" },
|
||||||
{ name = "*", fg = "yellow", bold = true, is = "exec" },
|
{ name = "*", fg = "cyan", bold = true, is = "link" },
|
||||||
{ name = "*/", fg = "blue", bold = true }
|
{ name = "*", fg = "green", bold = true, is = "exec" },
|
||||||
|
{ name = "*/", fg = "cyan", bold = true, is = "link" },
|
||||||
|
{ name = "*/", fg = "blue", bold = true }
|
||||||
]
|
]
|
||||||
|
|
||||||
[icon]
|
[icon]
|
||||||
|
|
||||||
rules = [
|
rules = [
|
||||||
# Programming
|
# Programming
|
||||||
{ name = "*.cpp" , text = "", fg = "#519aba" },
|
{ name = "*.cpp" , text = "", fg = "#519aba" },
|
||||||
{ name = "*.css" , text = "", fg = "#42a5f5" },
|
{ name = "*.css" , text = "", fg = "#42a5f5" },
|
||||||
{ name = "*.c" , text = "", fg = "#599eff" },
|
{ name = "*.c" , text = "", fg = "#599eff" },
|
||||||
{ name = "*.fish" , text = "" },
|
{ name = "*.fish" , text = "" },
|
||||||
{ name = "*.go" , text = "", fg = "#519aba" },
|
{ name = "*.go" , text = "", fg = "#519aba" },
|
||||||
{ name = "*.hpp" , text = "", fg = "#a074c4" },
|
{ name = "*.hpp" , text = "", fg = "#a074c4" },
|
||||||
{ name = "*.h" , text = "", fg = "#a074c4" },
|
{ name = "*.h" , text = "", fg = "#a074c4" },
|
||||||
{ name = "*.htm" , text = "", fg = "#e44d26" },
|
{ name = "*.htm" , text = "", fg = "#e44d26" },
|
||||||
{ name = "*.html" , text = "", fg = "#e44d26" },
|
{ name = "*.html" , text = "", fg = "#e44d26" },
|
||||||
{ name = "*.java" , text = "", fg = "#cc3e44" },
|
{ name = "*.java" , text = "", fg = "#cc3e44" },
|
||||||
{ name = "*.js" , text = "", fg = "#F1F134" },
|
{ name = "*.js" , text = "", fg = "#F1F134" },
|
||||||
{ name = "*.jsx" , text = "", fg = "#20c2e3" },
|
{ name = "*.jsx" , text = "", fg = "#20c2e3" },
|
||||||
{ name = "*.lua" , text = "", fg = "#51a0cf" },
|
{ name = "*.lua" , text = "", fg = "#51a0cf" },
|
||||||
{ name = "*.nix" , text = "", fg = "#7ab1db" },
|
{ name = "*.nix" , text = "", fg = "#7ab1db" },
|
||||||
{ name = "*.php" , text = "" },
|
{ name = "*.php" , text = "" },
|
||||||
{ name = "*.rb" , text = "" },
|
{ name = "*.rb" , text = "" },
|
||||||
{ name = "*.rs" , text = "", fg = "#dea584" },
|
{ name = "*.rs" , text = "", fg = "#dea584" },
|
||||||
{ name = "*.scss" , text = "" },
|
{ name = "*.scss" , text = "" },
|
||||||
{ name = "*.sh" , text = "", fg = "#4d5a5e" },
|
{ name = "*.sh" , text = "", fg = "#4d5a5e" },
|
||||||
{ name = "*.swift", text = "" },
|
{ name = "*.swift", text = "" },
|
||||||
{ name = "*.ts" , text = "", fg = "#519aba" },
|
{ name = "*.ts" , text = "", fg = "#519aba" },
|
||||||
{ name = "*.tsx" , text = "" },
|
{ name = "*.tsx" , text = "" },
|
||||||
{ name = "*.vim" , text = "" },
|
{ name = "*.vim" , text = "" },
|
||||||
{ name = "*.vue" , text = "" },
|
{ name = "*.vue" , text = "" },
|
||||||
{ name = "*.py" , text = "", fg = "#ffbc03" },
|
{ name = "*.py" , text = "", fg = "#ffbc03" },
|
||||||
{ name = "*.pyc" , text = "", fg = "#ffe291" },
|
{ name = "*.pyc" , text = "", fg = "#ffe291" },
|
||||||
|
|
||||||
# Text
|
# Text
|
||||||
{ name = "*.txt" , text = "", fg = "#bbbbbb" },
|
{ name = "*.txt" , text = "", fg = "#bbbbbb" },
|
||||||
{ name = "*.csv" , text = "", fg = "#89e051" },
|
{ name = "*.csv" , text = "", fg = "#89e051" },
|
||||||
{ name = "*.json" , text = "", fg = "#cbcb41" },
|
{ name = "*.json" , text = "", fg = "#cbcb41" },
|
||||||
{ name = "*.conf" , text = "", fg = "#6d8086" }, # Configuration
|
{ name = "*.conf" , text = "", fg = "#6d8086" }, # Configuration
|
||||||
{ name = "*.ini" , text = "", fg = "#6d8086" },
|
{ name = "*.ini" , text = "", fg = "#6d8086" },
|
||||||
{ name = "*.yaml" , text = "", fg = "#6d8086" },
|
{ name = "*.yaml" , text = "", fg = "#6d8086" },
|
||||||
{ name = "*.yml" , text = "", fg = "#6d8086" },
|
{ name = "*.yml" , text = "", fg = "#6d8086" },
|
||||||
{ name = "*.toml" , text = "", fg = "#6d8086" },
|
{ name = "*.toml" , text = "", fg = "#6d8086" },
|
||||||
{ name = "*.org" , text = "", fg = "#77aa99" },
|
{ name = "*.org" , text = "", fg = "#77aa99" },
|
||||||
{ name = "*.tex" , text = "", fg = "#3d6117" }, # Plaintext typesetting
|
{ name = "*.tex" , text = "", fg = "#3d6117" }, # Plaintext typesetting
|
||||||
{ name = "*.typ" , text = "", fg = "#0e606a" },
|
{ name = "*.typ" , text = "", fg = "#0e606a" },
|
||||||
{ name = "*.markdown", text = "", fg = "#519aba" }, # Markdown
|
{ name = "*.markdown", text = "", fg = "#519aba" }, # Markdown
|
||||||
{ name = "*.md" , text = "", fg = "#519aba" },
|
{ name = "*.md" , text = "", fg = "#519aba" },
|
||||||
{ name = "*.mdx" , text = "", fg = "#519aba" },
|
{ name = "*.mdx" , text = "", fg = "#519aba" },
|
||||||
{ name = "*.rmd" , text = "", fg = "#519aba" },
|
{ name = "*.rmd" , text = "", fg = "#519aba" },
|
||||||
|
|
||||||
# Archives
|
# Archives
|
||||||
{ name = "*.7z" , text = "" },
|
{ name = "*.7z" , text = "" },
|
||||||
{ name = "*.ace" , text = "" },
|
{ name = "*.ace" , text = "" },
|
||||||
{ name = "*.alz" , text = "" },
|
{ name = "*.alz" , text = "" },
|
||||||
|
|
@ -266,7 +268,7 @@ rules = [
|
||||||
{ name = "*.zst" , text = "" },
|
{ name = "*.zst" , text = "" },
|
||||||
{ name = "*.z" , text = "" },
|
{ name = "*.z" , text = "" },
|
||||||
|
|
||||||
# Images
|
# Images
|
||||||
{ name = "*.bmp" , text = "" }, # Lossless
|
{ name = "*.bmp" , text = "" }, # Lossless
|
||||||
{ name = "*.gif" , text = "" },
|
{ name = "*.gif" , text = "" },
|
||||||
{ name = "*.png" , text = "" },
|
{ name = "*.png" , text = "" },
|
||||||
|
|
@ -288,7 +290,7 @@ rules = [
|
||||||
{ name = "*.xbm" , text = "" },
|
{ name = "*.xbm" , text = "" },
|
||||||
{ name = "*.xpm" , text = "" },
|
{ name = "*.xpm" , text = "" },
|
||||||
|
|
||||||
# Movies
|
# Movies
|
||||||
{ name = "*.asf" , text = "" },
|
{ name = "*.asf" , text = "" },
|
||||||
{ name = "*.avi" , text = "" },
|
{ name = "*.avi" , text = "" },
|
||||||
{ name = "*.cgm" , text = "" },
|
{ name = "*.cgm" , text = "" },
|
||||||
|
|
@ -320,78 +322,79 @@ rules = [
|
||||||
{ name = "*.xwd" , text = "" },
|
{ name = "*.xwd" , text = "" },
|
||||||
{ name = "*.yuv" , text = "" },
|
{ name = "*.yuv" , text = "" },
|
||||||
|
|
||||||
# Audio
|
# Audio
|
||||||
{ name = "*.aac" , text = "" },
|
{ name = "*.aac" , text = "" },
|
||||||
{ name = "*.au" , text = "" },
|
{ name = "*.au" , text = "" },
|
||||||
{ name = "*.flac", text = "" },
|
{ name = "*.flac", text = "" },
|
||||||
{ name = "*.m4a" , text = "" },
|
{ name = "*.m4a" , text = "" },
|
||||||
{ name = "*.mid" , text = "" },
|
{ name = "*.mid" , text = "" },
|
||||||
{ name = "*.midi", text = "" },
|
{ name = "*.midi", text = "" },
|
||||||
{ name = "*.mka" , text = "" },
|
{ name = "*.mka" , text = "" },
|
||||||
{ name = "*.mp3" , text = "" },
|
{ name = "*.mp3" , text = "" },
|
||||||
{ name = "*.mpc" , text = "" },
|
{ name = "*.mpc" , text = "" },
|
||||||
{ name = "*.oga" , text = "" },
|
{ name = "*.oga" , text = "" },
|
||||||
{ name = "*.ogg" , text = "" },
|
{ name = "*.ogg" , text = "" },
|
||||||
{ name = "*.opus", text = "" },
|
{ name = "*.opus", text = "" },
|
||||||
{ name = "*.ra" , text = "" },
|
{ name = "*.ra" , text = "" },
|
||||||
{ name = "*.spx" , text = "" },
|
{ name = "*.spx" , text = "" },
|
||||||
{ name = "*.wav" , text = "" },
|
{ name = "*.wav" , text = "" },
|
||||||
{ name = "*.xspf", text = "" },
|
{ name = "*.xspf", text = "" },
|
||||||
|
|
||||||
# Documents
|
# Documents
|
||||||
{ name = "*.pdf" , text = "", fg = "#b30b00" }, # Printable
|
{ name = "*.pdf" , text = "", fg = "#b30b00" }, # Printable
|
||||||
{ name = "*.doc" , text = "", fg = "#185abd" }, # Non plaintext docs
|
{ name = "*.doc" , text = "", fg = "#185abd" }, # Non plaintext docs
|
||||||
{ name = "*.doct", text = "", fg = "#185abd" },
|
{ name = "*.doct", text = "", fg = "#185abd" },
|
||||||
{ name = "*.docx", text = "", fg = "#185abd" },
|
{ name = "*.docx", text = "", fg = "#185abd" },
|
||||||
{ name = "*.dot" , text = "", fg = "#185abd" },
|
{ name = "*.dot" , text = "", fg = "#185abd" },
|
||||||
{ name = "*.pom" , text = "", fg = "#cb4a32" }, # Presentations
|
{ name = "*.pom" , text = "", fg = "#cb4a32" }, # Presentations
|
||||||
{ name = "*.pot" , text = "", fg = "#cb4a32" },
|
{ name = "*.pot" , text = "", fg = "#cb4a32" },
|
||||||
{ name = "*.potx", text = "", fg = "#cb4a32" },
|
{ name = "*.potx", text = "", fg = "#cb4a32" },
|
||||||
{ name = "*.ppm" , text = "", fg = "#cb4a32" },
|
{ name = "*.ppm" , text = "", fg = "#cb4a32" },
|
||||||
{ name = "*.ppmx", text = "", fg = "#cb4a32" },
|
{ name = "*.ppmx", text = "", fg = "#cb4a32" },
|
||||||
{ name = "*.pps" , text = "", fg = "#cb4a32" },
|
{ name = "*.pps" , text = "", fg = "#cb4a32" },
|
||||||
{ name = "*.ppsx", text = "", fg = "#cb4a32" },
|
{ name = "*.ppsx", text = "", fg = "#cb4a32" },
|
||||||
{ name = "*.ppt" , text = "", fg = "#cb4a32" },
|
{ name = "*.ppt" , text = "", fg = "#cb4a32" },
|
||||||
{ name = "*.pptx", text = "", fg = "#cb4a32" },
|
{ name = "*.pptx", text = "", fg = "#cb4a32" },
|
||||||
{ name = "*.xlc" , text = "" },
|
{ name = "*.xlc" , text = "" },
|
||||||
{ name = "*.xlm" , text = "" },
|
{ name = "*.xlm" , text = "" },
|
||||||
{ name = "*.xls" , text = "" },
|
{ name = "*.xls" , text = "" },
|
||||||
{ name = "*.xlsm", text = "" },
|
{ name = "*.xlsm", text = "" },
|
||||||
{ name = "*.xlsx", text = "" },
|
{ name = "*.xlsx", text = "" },
|
||||||
{ name = "*.xlt" , text = "" },
|
{ name = "*.xlt" , text = "" },
|
||||||
{ name = "*.ods" , text = "" },
|
{ name = "*.ods" , text = "" },
|
||||||
{ name = "*.ots" , text = "" },
|
{ name = "*.ots" , text = "" },
|
||||||
{ name = "*.odg" , text = "" },
|
{ name = "*.odg" , text = "" },
|
||||||
|
|
||||||
# Lockfiles
|
# Lockfiles
|
||||||
{ name = "*.lock", text = "", fg = "#bbbbbb" },
|
{ name = "*.lock", text = "", fg = "#bbbbbb" },
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
{ name = "*.bin", text = "" },
|
{ name = "*.bin", text = "" },
|
||||||
{ name = "*.exe", text = "" },
|
{ name = "*.exe", text = "" },
|
||||||
{ name = "*.pkg", text = "" },
|
{ name = "*.pkg", text = "" },
|
||||||
|
|
||||||
# Dotfiles
|
# Dotfiles
|
||||||
{ name = ".DS_Store" , text = "" },
|
{ name = ".DS_Store" , text = "" },
|
||||||
{ name = ".bashprofile" , text = "" },
|
{ name = ".bashprofile" , text = "" },
|
||||||
{ name = ".bashrc" , text = "" },
|
{ name = ".bashrc" , text = "" },
|
||||||
{ name = ".gitattributes", text = "" },
|
{ name = ".gitattributes", text = "" },
|
||||||
{ name = ".gitignore" , text = "" },
|
{ name = ".gitignore" , text = "" },
|
||||||
{ name = ".gitmodules" , text = "" },
|
{ name = ".gitmodules" , text = "" },
|
||||||
{ name = ".vimrc" , text = "" },
|
{ name = ".vimrc" , text = "" },
|
||||||
{ name = ".zprofile" , text = "" },
|
{ name = ".zprofile" , text = "" },
|
||||||
{ name = ".zshenv" , text = "" },
|
{ name = ".zshenv" , text = "" },
|
||||||
{ name = ".zshrc" , text = "" },
|
{ name = ".zshrc" , text = "" },
|
||||||
|
|
||||||
# Named files
|
# Named files
|
||||||
{ name = "COPYING" , text = "" },
|
{ name = "COPYING" , text = "" },
|
||||||
{ name = "Containerfile", text = "", fg = "#458ee6" },
|
{ name = "Containerfile", text = "", fg = "#458ee6" },
|
||||||
{ name = "Dockerfile" , text = "", fg = "#458ee6" },
|
{ name = "Dockerfile" , text = "", fg = "#458ee6" },
|
||||||
{ name = "LICENSE" , text = "", fg = "#d0bf41" },
|
{ name = "LICENSE" , text = "", fg = "#d0bf41" },
|
||||||
|
|
||||||
# Default
|
# Default
|
||||||
{ name = "*" , text = "" },
|
{ name = "*", text = "", is = "exec" },
|
||||||
{ name = "*/", text = "", fg = "yellow" },
|
{ name = "*" , text = "" },
|
||||||
|
{ name = "*/", text = "", fg = "yellow" },
|
||||||
]
|
]
|
||||||
|
|
||||||
# : }}}
|
# : }}}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ sort_reverse = false
|
||||||
sort_dir_first = true
|
sort_dir_first = true
|
||||||
linemode = "size"
|
linemode = "size"
|
||||||
show_hidden = true
|
show_hidden = true
|
||||||
show_symlink = true
|
show_symlink = false
|
||||||
|
|
||||||
[preview]
|
[preview]
|
||||||
tab_size = 2
|
tab_size = 2
|
||||||
|
|
@ -25,7 +25,7 @@ ueberzug_offset = [ 0, 0, 0, 0 ]
|
||||||
|
|
||||||
[opener]
|
[opener]
|
||||||
open = [
|
open = [
|
||||||
{ exec = 'opener "$@"', block = true, desc = "Open" },
|
{ run = 'opener "$@"', block = true, desc = "Open" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[open]
|
[open]
|
||||||
|
|
@ -46,42 +46,42 @@ suppress_preload = false
|
||||||
[plugin]
|
[plugin]
|
||||||
|
|
||||||
preloaders = [
|
preloaders = [
|
||||||
{ name = "*", cond = "!mime", exec = "mime", multi = true, prio = "high" },
|
{ name = "*", cond = "!mime", run = "mime", multi = true, prio = "high" },
|
||||||
# Image
|
# Image
|
||||||
{ mime = "image/vnd.djvu", exec = "noop" },
|
{ mime = "image/vnd.djvu", run = "noop" },
|
||||||
{ mime = "image/*", exec = "image" },
|
{ mime = "image/*", run = "image" },
|
||||||
# Video
|
# Video
|
||||||
{ mime = "video/*", exec = "video" },
|
{ mime = "video/*", run = "video" },
|
||||||
# PDF
|
# PDF
|
||||||
{ mime = "application/pdf", exec = "pdf" },
|
{ mime = "application/pdf", run = "pdf" },
|
||||||
]
|
]
|
||||||
previewers = [
|
previewers = [
|
||||||
{ name = "*/", exec = "folder", sync = true },
|
{ name = "*/", run = "folder", sync = true },
|
||||||
# Code
|
# Code
|
||||||
{ mime = "text/*", exec = "code" },
|
{ mime = "text/*", run = "code" },
|
||||||
{ mime = "*/xml", exec = "code" },
|
{ mime = "*/xml", run = "code" },
|
||||||
{ mime = "*/javascript", exec = "code" },
|
{ mime = "*/javascript", run = "code" },
|
||||||
{ mime = "*/x-wine-extension-ini", exec = "code" },
|
{ mime = "*/x-wine-extension-ini", run = "code" },
|
||||||
# JSON
|
# JSON
|
||||||
{ mime = "application/json", exec = "json" },
|
{ mime = "application/json", run = "json" },
|
||||||
# Image
|
# Image
|
||||||
{ mime = "image/vnd.djvu", exec = "noop" },
|
{ mime = "image/vnd.djvu", run = "noop" },
|
||||||
{ mime = "image/*", exec = "image" },
|
{ mime = "image/*", run = "image" },
|
||||||
# Video
|
# Video
|
||||||
{ mime = "video/*", exec = "video" },
|
{ mime = "video/*", run = "video" },
|
||||||
# PDF
|
# PDF
|
||||||
{ mime = "application/pdf", exec = "pdf" },
|
{ mime = "application/pdf", run = "pdf" },
|
||||||
# Archive
|
# Archive
|
||||||
{ mime = "application/zip", exec = "archive" },
|
{ mime = "application/zip", run = "archive" },
|
||||||
{ mime = "application/gzip", exec = "archive" },
|
{ mime = "application/gzip", run = "archive" },
|
||||||
{ mime = "application/x-tar", exec = "archive" },
|
{ mime = "application/x-tar", run = "archive" },
|
||||||
{ mime = "application/x-bzip", exec = "archive" },
|
{ mime = "application/x-bzip", run = "archive" },
|
||||||
{ mime = "application/x-bzip2", exec = "archive" },
|
{ mime = "application/x-bzip2", run = "archive" },
|
||||||
{ mime = "application/x-7z-compressed", exec = "archive" },
|
{ mime = "application/x-7z-compressed", run = "archive" },
|
||||||
{ mime = "application/x-rar", exec = "archive" },
|
{ mime = "application/x-rar", run = "archive" },
|
||||||
{ mime = "application/xz", exec = "archive" },
|
{ mime = "application/xz", run = "archive" },
|
||||||
# Fallback
|
# Fallback
|
||||||
{ name = "*", exec = "file" },
|
{ name = "*", run = "file" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[input]
|
[input]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue