mirror of
https://github.com/kristoferssolo/vidir.yazi.git
synced 2025-10-21 20:10:39 +00:00
fix: remove selectable item edit
This commit is contained in:
parent
3d1b0e17c9
commit
54ef22b31a
12
main.lua
12
main.lua
@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user