fix: bump piper and vcs-files to the latest nightly

Adapt to https://github.com/sxyazi/yazi/pull/3170 for the unstable `Cha` API change
This commit is contained in:
sxyazi
2025-09-15 21:42:48 +08:00
parent d7588f6d29
commit 109b13df29
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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 }