feat: can restore Oil progress window when minimized

This commit is contained in:
Steven Arcangeli 2024-04-19 14:16:23 -04:00
parent 78aeb665e2
commit fa3820ebf1
4 changed files with 92 additions and 21 deletions

View file

@ -955,6 +955,14 @@ M.setup = function(opts)
elseif v == "--trash" then
trash = true
table.remove(args.fargs, i)
elseif v == "--progress" then
local mutator = require("oil.mutator")
if mutator.is_mutating() then
mutator.show_progress()
else
vim.notify("No mutation in progress", vim.log.levels.WARN)
end
return
else
i = i + 1
end