npkill
npkill copied to clipboard
Allow moving folders to trash rather than completely deleting them
Instead of rm
-ing the folders when a delete is triggered, it would be helpful to have an option that trashes them instead such as --trash
. This is much safer and reversible.
Nice idea!
Maybe even a key combination with Del to send them there. The only problem we see is that, as far as we know, the recycling bin is a graphic environment functionality. Therefore, does the recycling bin exist in servers? How would this be managed?
We raise these questions in case anyone reading this has a broader knowledge on the subject.
trash
works already on servers.
I'll take a look at integrating these two things together
The Trash project is using some ESModule formatting which is making it infeasible to simply integrate this code. A lot of the library logic is relatively straightforward, but the dependencies themselves are ESModules so I got a bit stuck.
Okay I think after reviewing a developer help guide and an open ts-node issue I'm on the right track. It does require some refactoring in this project, but I hope to have a PR ready soon.