canola.nvim/spec/manual_progress.lua
Barrett Ruth e6b42168c9
refactor: rename oil to canola across entire codebase
Problem: the codebase still used the upstream \`oil\` naming everywhere —
URL schemes, the \`:Oil\` command, highlight groups, user events, module
paths, filetypes, buffer/window variables, LuaCATS type annotations,
vimdoc help tags, syntax groups, and internal identifiers.

Solution: mechanical rename of every reference. URL schemes now use
\`canola://\` (plus \`canola-ssh://\`, \`canola-s3://\`, \`canola-sss://\`,
\`canola-trash://\`, \`canola-test://\`). The \`:Canola\` command replaces
\`:Oil\`. All highlight groups, user events, augroups, namespaces,
filetypes, require paths, type annotations, help tags, and identifiers
follow suit. The \`upstream\` remote to \`stevearc/oil.nvim\` has been
removed and the \`vim.g.oil\` deprecation shim dropped.
2026-03-05 14:49:25 -05:00

28 lines
557 B
Lua

-- Manual test for minimizing/restoring progress window
local Progress = require('canola.mutator.progress')
local progress = Progress.new()
progress:show({
cancel = function()
progress:close()
end,
})
for i = 1, 10, 1 do
vim.defer_fn(function()
progress:set_action({
type = 'create',
url = string.format('canola:///tmp/test_%d.txt', i),
entry_type = 'file',
}, i, 10)
end, (i - 1) * 1000)
end
vim.defer_fn(function()
progress:close()
end, 10000)
vim.keymap.set('n', 'R', function()
progress:restore()
end, {})