yazi/plugins/smart-enter.yazi/init.lua
2024-11-11 14:54:20 +01:00

7 lines
171 B
Lua

--- @sync entry
return {
entry = function()
local h = cx.active.current.hovered
ya.manager_emit(h and h.cha.is_dir and "enter" or "open", { hovered = true })
end,
}