sidebar.nvim icon indicating copy to clipboard operation
sidebar.nvim copied to clipboard

[Bug]: File Trash

Open aspeddro opened this issue 3 years ago • 4 comments

Deleting files throws an error because trash directory does not exist.

I saw that fs.rename is used instead of fs_unlink like nvim-tree.lua.

aspeddro avatar Jan 18 '22 13:01 aspeddro

Which operating system are you using?

davysson avatar Jan 18 '22 15:01 davysson

arch

aspeddro avatar Jan 18 '22 15:01 aspeddro

I have the same problem on macOS 12.2.1. Can we add a setting to choose whether we want to move things to the trash, or delete them directly?

joeymarylander avatar Apr 06 '22 00:04 joeymarylander

if trash of folder don't exist, create trash of folder, then delete file? Why don't you fix the code like this?

coti-z avatar Oct 01 '22 14:10 coti-z