mirror of
https://github.com/kristoferssolo/vidir.yazi.git
synced 2025-10-21 20:10:39 +00:00
Initial commit
This commit is contained in:
commit
7e6217700c
14
main.lua
Normal file
14
main.lua
Normal file
@ -0,0 +1,14 @@
|
||||
return {
|
||||
entry = function()
|
||||
local selected_items = cx.active.selected
|
||||
if #selected_items >= 1 then
|
||||
local selected_urls = ""
|
||||
for _, v in pairs(selected_items) do
|
||||
selected_urls = selected_urls .. ya.quote(tostring(v))
|
||||
end
|
||||
ya.manager_emit("shell", { 'vidir "$@"', block = true, confirm = true })
|
||||
else
|
||||
ya.manager_emit("rename", { hovered = false, cursor = "before_ext" })
|
||||
end
|
||||
end,
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user