From 62a2a229f1d28cd798d022707c361f6fded18899 Mon Sep 17 00:00:00 2001 From: agryphus Date: Wed, 15 Jul 2026 13:58:42 -0400 Subject: [PATCH] chore: bump yazi --- misc/.config/yazi/init.lua | 12 +++++++---- misc/.config/yazi/keymap.toml | 1 - misc/.config/yazi/plugins/easyjump.yazi | 1 - .../yazi/plugins/smart-enter.yazi/main.lua | 4 ++-- misc/.config/yazi/theme.toml | 20 +++++++++++-------- misc/.config/yazi/yazi.toml | 2 +- 6 files changed, 23 insertions(+), 17 deletions(-) delete mode 160000 misc/.config/yazi/plugins/easyjump.yazi diff --git a/misc/.config/yazi/init.lua b/misc/.config/yazi/init.lua index 1f3e0ec..4ba26a0 100644 --- a/misc/.config/yazi/init.lua +++ b/misc/.config/yazi/init.lua @@ -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 + diff --git a/misc/.config/yazi/keymap.toml b/misc/.config/yazi/keymap.toml index 460d73b..b67f9f3 100644 --- a/misc/.config/yazi/keymap.toml +++ b/misc/.config/yazi/keymap.toml @@ -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 diff --git a/misc/.config/yazi/plugins/easyjump.yazi b/misc/.config/yazi/plugins/easyjump.yazi deleted file mode 160000 index 6606fb1..0000000 --- a/misc/.config/yazi/plugins/easyjump.yazi +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6606fb1d56eea4c99809c056fd701e58890655be diff --git a/misc/.config/yazi/plugins/smart-enter.yazi/main.lua b/misc/.config/yazi/plugins/smart-enter.yazi/main.lua index 8fc5fb2..362ed16 100644 --- a/misc/.config/yazi/plugins/smart-enter.yazi/main.lua +++ b/misc/.config/yazi/plugins/smart-enter.yazi/main.lua @@ -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 diff --git a/misc/.config/yazi/theme.toml b/misc/.config/yazi/theme.toml index 6908c3a..e0eb918 100644 --- a/misc/.config/yazi/theme.toml +++ b/misc/.config/yazi/theme.toml @@ -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 = "" }, diff --git a/misc/.config/yazi/yazi.toml b/misc/.config/yazi/yazi.toml index be9f291..57b22d8 100644 --- a/misc/.config/yazi/yazi.toml +++ b/misc/.config/yazi/yazi.toml @@ -16,8 +16,8 @@ nothing = [ [open] rules = [ - { name = "*/", use = [ "nothing" ] }, { mime = "*", use = [ "open", "alt" ] }, + { url = "*/", use = [ "nothing" ] }, ] [plugin]