From 1a056a55f78e10baa664b5b0e2a9aba399c5a283 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sat, 25 May 2024 17:43:53 +0200 Subject: [PATCH] tree: use plain path for trash command for dirs same as f2cebd9 for single files files --- lua/nxvim/plugins/neo-tree.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nxvim/plugins/neo-tree.lua b/lua/nxvim/plugins/neo-tree.lua index 2197123..856cbd2 100644 --- a/lua/nxvim/plugins/neo-tree.lua +++ b/lua/nxvim/plugins/neo-tree.lua @@ -131,7 +131,7 @@ local config = { inputs.confirm(msg, function(confirmed) if not confirmed then return end for _, node in ipairs(selected_nodes) do - vim.fn.system({ "trash", vim.fn.fnameescape(node.path) }) + vim.fn.system({ "trash", path }) end require("neo-tree.sources.manager").refresh(state.name) end)