"Trash.cmd not executable"
Closed this issue · 3 comments
Description
IDK why but I cannot use trash on windows 11
Neovim version
NVIM v0.11.0-dev-1633+g851137f679
Build type: RelWithDebInfo
LuaJIT 2.1.1736781742
Operating system and version
Windows 11
Windows variant
Powershell, Windows Terminal
nvim-tree version
Commit: 857c5ac632080dba10aae49dba902ce3abf91b35
Clean room replication
return {
trash = {
cmd = "del /h",
},
}Steps to reproduce
- Open Nvim (Nvchad)
- Open nvimtree (using )
- select a file
- use the D key to go to trash
Expected behavior
File go to trash
Actual behavior
Trash is not registered as executable
Misc
Please don't ignore minimal reproducible template. Please follow it and don't use any distributions for replicating issues to ensure issue is actually with nvim-tree.
Please don't ignore minimal reproducible template. Please follow it and don't use any distributions for replicating issues to ensure issue is actually with nvim-tree.
ok im just using windows which seems to be the problem here because gio trash cmd is not available even if i used where gio trash or something other. It may be caused by my system not having gio trash installed on my computer
:help nvim-tree-opts-trash indicates that trash-cli might be the best option:
==============================================================================
5.14 OPTS: TRASH *nvim-tree-opts-trash*
*nvim-tree.trash.cmd*
The command used to trash items (must be installed on your system).
Default `"gio trash"` from glib2 is a commonly shipped linux package.
macOS default `"trash"` requires the homebrew package `trash`
Windows default `"trash"` requires `trash-cli` or similar
Type: `string`, Default: `"gio trash"` or `"trash"`
