Work on delete function
parent
44eb89f8ed
commit
f320855013
|
|
@ -50,15 +50,15 @@ end
|
||||||
|
|
||||||
function M.evt.RabbitEnter()
|
function M.evt.RabbitEnter()
|
||||||
get_buffers()
|
get_buffers()
|
||||||
-- vim.print(M.listing[0])
|
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param n integer
|
---@param n integer
|
||||||
function M.func.file_del(n)
|
function M.func.file_del(n)
|
||||||
local idx = set.index(M.listing[0], M.listing[0][n])
|
local idx = set.index(M.listing[0], M.listing[0][n])
|
||||||
vim.print(M.listing.bufnrs[idx])
|
vim.print(M.listing.bufnrs[idx])
|
||||||
-- vim.cmd("bd " .. tostring(M.listing.paths[n]))
|
vim.cmd("Bd " .. tostring(M.listing.paths[n]))
|
||||||
-- table.remove(M.listing, n)
|
table.remove(M.listing, n)
|
||||||
|
require("rabbit").Redraw()
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue