mirror of
https://github.com/Ascyii/gpg.yazi.git
synced 2026-01-01 02:44:24 -05:00
Return test
This commit is contained in:
2
main.lua
2
main.lua
@@ -15,6 +15,8 @@ return {
|
|||||||
entry = function()
|
entry = function()
|
||||||
ya.emit("escape", { visual = true })
|
ya.emit("escape", { visual = true })
|
||||||
|
|
||||||
|
return ya.notify { title = "Gpg", content = "No file selected", level = "warn", timeout = 5 }
|
||||||
|
|
||||||
local urls = selected_or_hovered()
|
local urls = selected_or_hovered()
|
||||||
if #urls == 0 then
|
if #urls == 0 then
|
||||||
return ya.notify { title = "Gpg", content = "No file selected", level = "warn", timeout = 5 }
|
return ya.notify { title = "Gpg", content = "No file selected", level = "warn", timeout = 5 }
|
||||||
|
|||||||
Reference in New Issue
Block a user