cleanup: remove deprecated trash_command

This commit is contained in:
Steven Arcangeli 2026-01-01 00:22:21 -05:00
parent 78ed0cf7d9
commit 81b8a91735
4 changed files with 2 additions and 62 deletions

View file

@ -6,7 +6,6 @@ local fs = require("oil.fs")
local git = require("oil.git")
local log = require("oil.log")
local permissions = require("oil.adapters.files.permissions")
local trash = require("oil.adapters.files.trash")
local util = require("oil.util")
local uv = vim.uv or vim.loop
@ -620,15 +619,7 @@ M.perform_action = function(action, cb)
end
if config.delete_to_trash then
if config.trash_command then
vim.notify_once(
"Oil now has native support for trash. Remove the `trash_command` from your config to try it out!",
vim.log.levels.WARN
)
trash.recursive_delete(path, cb)
else
require("oil.adapters.trash").delete_to_trash(path, cb)
end
require("oil.adapters.trash").delete_to_trash(path, cb)
else
fs.recursive_delete(action.entry_type, path, cb)
end