fix: remove selectable item edit

This commit is contained in:
Kristofers Solo 2025-04-28 18:57:12 +03:00
parent 3d1b0e17c9
commit 54ef22b31a
Signed by: kristoferssolo
GPG Key ID: 8687F2D3EEE6F0ED

View File

@ -1,19 +1,9 @@
--- @sync entry --- @sync entry
--- @since 25.2.7
return { return {
entry = function() entry = function()
local selected_items = cx.active.selected
if #selected_items >= 1 then
-- For selected files, pass them directly to vidir
local files = ""
for _, v in pairs(selected_items) do
files = files .. ya.quote(tostring(v)) .. " "
end
ya.manager_emit("shell", { "vidir " .. files, block = true, confirm = true })
else
-- If no selection, use current directory (.) -- If no selection, use current directory (.)
ya.manager_emit("shell", { "vidir .", block = true, confirm = true }) ya.manager_emit("shell", { "vidir .", block = true, confirm = true })
end
end, end,
} }