mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2024-12-30 21:13:39 +00:00
Trash instead of delete
This commit is contained in:
parent
1eb5c7929b
commit
2886053c61
2 changed files with 9 additions and 0 deletions
|
@ -7,5 +7,13 @@ require("neo-tree").setup({
|
||||||
hide_dotfiles = false,
|
hide_dotfiles = false,
|
||||||
hide_gitignored = false,
|
hide_gitignored = false,
|
||||||
},
|
},
|
||||||
|
commands = {
|
||||||
|
-- Override delete to use trash instead of rm
|
||||||
|
delete = function(state)
|
||||||
|
local path = state.tree:get_node().path
|
||||||
|
print(vim.fn.system({ "trash", vim.fn.fnameescape(path) }))
|
||||||
|
require("neo-tree.sources.manager").refresh(state.name)
|
||||||
|
end,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
[deps]
|
[deps]
|
||||||
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
|
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
|
||||||
OhMyREPL = "5fb14364-9ced-5910-84b2-373655c76a03"
|
OhMyREPL = "5fb14364-9ced-5910-84b2-373655c76a03"
|
||||||
|
Pluto = "c3e4b0f8-55cb-11ea-2926-15256bba5781"
|
||||||
Revise = "295af30f-e4ad-537b-8983-00126c2a3abe"
|
Revise = "295af30f-e4ad-537b-8983-00126c2a3abe"
|
||||||
|
|
Loading…
Reference in a new issue