mirror of
https://github.com/Ascyii/gpg.yazi.git
synced 2026-01-01 02:44:24 -05:00
22 lines
467 B
Lua
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,
|
|
}
|