jarun / nnn

n³ The unorthodox terminal file manager
BSD 2-Clause "Simplified" License
18.51k stars 743 forks source link

Support more trash utility #1831

Closed rennsax closed 4 months ago

rennsax commented 4 months ago

This PR add more options for the environment variable NNN_TRASH.

Currently, NNN_TRASH only support two external utilities: 1 for trash-put in andreafrancia/trash-cli, 2 for gio trash. These two doesn't seem to act perfectly in macOS.

In macOS, there are trash utilities like sindresorhus/macos-trash and trash, which just move files/folders to the native trash bin. The two utilities can be installed with:

brew install macos-trash
brew install trash

These two both provide the command interface trash. They are useful when an user prefer to use the native trash folder.

Thanks for your review.

rennsax commented 4 months ago

You're right. Thanks and I'll close the PR.