feat(piper): supports remote VFS (#162)

This commit is contained in:
boydaihungst
2025-12-04 22:17:50 +07:00
committed by GitHub
parent eaf6920b74
commit 19dc890e33

View File

@@ -6,7 +6,7 @@ local function fail(job, s) ya.preview_widget(job, ui.Text.parse(s):area(job.are
function M:peek(job)
local child, err = Command("sh")
:arg({ "-c", job.args[1], "sh", tostring(job.file.url) })
:arg({ "-c", job.args[1], "sh", tostring(job.file.cache or job.file.url) })
:env("w", job.area.w)
:env("h", job.area.h)
:stdout(Command.PIPED)