From 40b33b3309a0b33a7780ba64d5eed891b1ab3f74 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Mon, 19 Aug 2024 13:54:54 +0200 Subject: [PATCH] tree: fix xdg-open for paths with spaces --- 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 763eeb4..cc3d002 100644 --- a/lua/nxvim/plugins/neo-tree.lua +++ b/lua/nxvim/plugins/neo-tree.lua @@ -111,7 +111,7 @@ local config = { commands = { system_open = function(state) local node = state.tree:get_node() - vim.cmd("silent execute '!xdg-open " .. node.path .. "'") + vim.cmd("silent execute '!xdg-open \"" .. node.path .. "\"'") end, -- Overwrite default `delete` commands to use trash instead of rm delete = function(state)