Skip to content

Commit

Permalink
tree: fix xdg-open for paths with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Aug 19, 2024
1 parent e629dd5 commit 40b33b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nxvim/plugins/neo-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 40b33b3

Please sign in to comment.