Files
gpg.yazi/main.lua
2025-11-03 12:14:32 +01:00

22 lines
467 B
Lua

--- @since 25.5.31
local selected_or_hovered = ya.sync(function()
local tab, paths = cx.active, {}
for _, u in pairs(tab.selected) do
paths[#paths + 1] = tostring(u)
end
if #paths == 0 and tab.current.hovered then
paths[1] = tostring(tab.current.hovered.url)
end
return paths
end)
return {
entry = function()
ya.emit("escape", { visual = true })
return ya.notify { title = "Gpg", content = "No file selected", level = "warn", timeout = 5 }
end,
}