feat: support Yazi 0.4 for lsar and mactag, https://github.com/sxyazi/yazi/pull/1966

This commit is contained in:
sxyazi
2024-11-29 22:08:27 +08:00
parent d85bfd6f31
commit a53d544048
2 changed files with 23 additions and 13 deletions

View File

@@ -75,7 +75,10 @@ local cands = ya.sync(function(st)
return t
end)
local function entry(self, args)
local function entry(self, job)
-- TODO: remove this once Yazi 0.4 is released
local args = job.args or job
assert(args[1] == "add" or args[1] == "remove", "Invalid action")
ya.manager_emit("escape", { visual = true })