feat: update types to include new Yazi APIs

This commit is contained in:
sxyazi
2025-12-31 15:59:41 +08:00
parent da5b69563c
commit 398796d88f
5 changed files with 287 additions and 100 deletions

View File

@@ -79,7 +79,7 @@ local function peek(_, job)
local tmp = os.tmpname()
-- stylua: ignore
local status, err = Command("magick"):arg {
tostring(url),
tostring(job.file.path or url), -- TODO: remove `or url`
"-auto-orient", "-strip",
"-sample", string.format("%dx%d", new_w, new_h),
"-quality", rt.preview.image_quality,