This commit is contained in:
agryphus 2024-02-20 21:09:46 -05:00
parent e01d953656
commit 52f41ba6e7
6 changed files with 748 additions and 0 deletions

View file

@ -0,0 +1,19 @@
---@diagnostic disable: undefined-global
return {
entry = function(self, args)
local h = cx.active.current.hovered
if h and h.cha.is_dir then
ya.manager_emit("enter", {})
return
end
if #args > 0 and args[1] == "detatch" then
os.execute(string.format("opener detatch \"%s\"", h.url))
else
ya.manager_emit("open", {})
-- os.execute(string.format("opener \"%s\"", h.url))
end
end,
}