fix: adapt for Yazi v25.5.28
Closes https://github.com/yazi-rs/plugins/pull/116 Closes https://github.com/yazi-rs/plugins/pull/118 Closes https://github.com/yazi-rs/plugins/pull/121
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
--- @since 25.5.28
|
||||
--- @sync entry
|
||||
return {
|
||||
entry = function()
|
||||
local h = cx.active.current.hovered
|
||||
if h and h.cha.is_dir then
|
||||
ya.mgr_emit("enter", {})
|
||||
ya.mgr_emit("paste", {})
|
||||
ya.mgr_emit("leave", {})
|
||||
ya.emit("enter", {})
|
||||
ya.emit("paste", {})
|
||||
ya.emit("leave", {})
|
||||
else
|
||||
ya.mgr_emit("paste", {})
|
||||
ya.emit("paste", {})
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user