diff --git a/piper.yazi/main.lua b/piper.yazi/main.lua index aef08eb..9be4e21 100644 --- a/piper.yazi/main.lua +++ b/piper.yazi/main.lua @@ -1,4 +1,4 @@ ---- @since 25.5.31 +--- @since 25.9.15 local M = {} @@ -57,7 +57,7 @@ function M.format(job, lines) local icon = File({ url = Url(lines[i]), - cha = Cha { kind = lines[i]:sub(-1) == "/" and 1 or 0 }, + cha = Cha { mode = tonumber(lines[i]:sub(-1) == "/" and "40700" or "100644", 8) }, }):icon() if icon then diff --git a/vcs-files.yazi/main.lua b/vcs-files.yazi/main.lua index f16c883..913c7c8 100644 --- a/vcs-files.yazi/main.lua +++ b/vcs-files.yazi/main.lua @@ -1,4 +1,4 @@ ---- @since 25.5.31 +--- @since 25.9.15 local root = ya.sync(function() return cx.active.current.cwd end) @@ -27,7 +27,7 @@ local function entry() end end ya.emit("update_files", { op = fs.op("part", { id = id, url = Url(cwd), files = files }) }) - ya.emit("update_files", { op = fs.op("done", { id = id, url = cwd, cha = Cha { kind = 16 } }) }) + ya.emit("update_files", { op = fs.op("done", { id = id, url = cwd, cha = Cha { mode = tonumber("100644", 8) } }) }) end return { entry = entry }