refactor: update for Yazi v25.2.26

This commit is contained in:
sxyazi
2025-03-02 22:34:26 +08:00
parent 5186af7984
commit 3d0c7c6be9
11 changed files with 31 additions and 31 deletions

View File

@@ -1,11 +1,11 @@
--- @since 25.2.7
--- @since 25.2.26
--- @sync entry
local function setup(self, opts) self.open_multi = opts.open_multi end
local function entry(self)
local h = cx.active.current.hovered
ya.manager_emit(h and h.cha.is_dir and "enter" or "open", { hovered = not self.open_multi })
ya.mgr_emit(h and h.cha.is_dir and "enter" or "open", { hovered = not self.open_multi })
end
return { entry = entry, setup = setup }