nixos-config/modules/home/yazi/plugins/smart-tab.yazi/main.lua

7 lines
175 B
Lua

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