chore: bump yazi

This commit is contained in:
agryphus 2026-07-15 13:58:42 -04:00
parent 3a23b4d1d9
commit 62a2a229f1
6 changed files with 23 additions and 17 deletions

View file

@ -10,7 +10,7 @@ Header:children_add(function()
if ya.target_family() ~= "unix" then
return ui.Line {}
end
return ui.Line { ui.Span(ya.user_name() .. "@" .. ya.host_name()):fg("lightgreen"):bold(true), ui.Span(":") }
return ui.Line { ui.Span(ya.user_name() .. "@" .. ya.host_name()):fg("lightgreen"):bold(), ui.Span(":") }
end, 500, Header.LEFT)
-- Show the path of the currently hovered file in the header
@ -26,9 +26,9 @@ function Header:cwd()
hovered = tostring(cx.active.current.hovered.name or "")
end
return ui.Line {
ui.Span(cwd):fg("blue"):bold(true),
ui.Span("/"):fg("blue"):bold(true),
ui.Span(hovered):fg("white"):bold(true),
ui.Span(cwd):fg("blue"):bold(),
ui.Span("/"):fg("blue"):bold(),
ui.Span(hovered):fg("white"):bold(),
}
end
@ -54,3 +54,7 @@ function Status:name()
return ui.Line(" " .. h.name .. linked)
end
-- Remove the indicator padding
function Entity:padding() return " " end
function Linemode:padding() return " " end

View file

@ -1,7 +1,6 @@
[mgr]
prepend_keymap = [
# Jump
{ on = [ "i" ], run = [ "plugin easyjump" ], desc = "easyjump" },
{ on = [ "f" ], run = [ "plugin jump-to-char" ], desc = "Jump to char" },
# Smart enter

@ -1 +0,0 @@
Subproject commit 6606fb1d56eea4c99809c056fd701e58890655be

View file

@ -6,12 +6,12 @@ local function setup(self, opts) self.open_multi = opts.open_multi end
local function entry(_, job)
local h = cx.active.current.hovered
if h and h.cha.is_dir then
ya.manager_emit("enter", {})
ya.emit("enter", {})
return
end
if #job.args == 0 then
ya.manager_emit("open", {})
ya.emit("open", {})
end
if job.args[1] == "detatch" then

View file

@ -1,4 +1,5 @@
[status]
overall = {}
sep_left = { open = "", close = "" }
sep_right = { open = "", close = "" }
@ -31,28 +32,31 @@ rules = [
{ mime = "{audio,video}/*", fg = "magenta" },
# Is link
{ name = "*", is = "link", fg = "cyan" },
{ name = "*/", is = "link", fg = "cyan", bold = true },
{ url = "*", is = "link", fg = "cyan" },
{ url = "*/", is = "link", fg = "cyan", bold = true },
# Can open
{ mime = "application/{,g}zip", fg = "blue" },
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "blue" },
{ name = "*/", fg = "blue", bold = true },
{ url = "*/", fg = "blue", bold = true },
# Can run
{ name = "*", is = "exec", fg = "green" },
{ url = "*", is = "exec", fg = "green" },
# Broken
{ name = "*", is = "orphan", bg = "red" },
{ name = "*", is = "dummy", bg = "red" },
{ name = "*/", is = "dummy", bg = "red" },
{ url = "*", is = "orphan", bg = "red" },
{ url = "*", is = "dummy", bg = "red" },
{ url = "*/", is = "dummy", bg = "red" },
]
[icon]
dirs = [
append_exts = [
{ name = "blend1", text = "󰂫", fg = "#ea7600" },
]
dirs = []
conds = [
# Special files
{ if = "orphan", text = "" },

View file

@ -16,8 +16,8 @@ nothing = [
[open]
rules = [
{ name = "*/", use = [ "nothing" ] },
{ mime = "*", use = [ "open", "alt" ] },
{ url = "*/", use = [ "nothing" ] },
]
[plugin]