fix: trash.cmd defaults to 'trash' on macos and windows, document option (#2336)

* fix: trash.cmd defaults to 'trash' on macos

* fix: macOS and windows default trash commands, allow trash on all OS

* fix: windows default trash command doc

* fix: trash.cmd message
This commit is contained in:
Alexander Courtis
2023-08-13 12:18:06 +10:00
committed by GitHub
parent 904f95cd9d
commit 0a54dcb76b
3 changed files with 14 additions and 17 deletions

View File

@@ -1148,8 +1148,10 @@ Configuration options for trashing.
*nvim-tree.trash.cmd*
The command used to trash items (must be installed on your system).
The default is shipped with glib2 which is a common linux package.
Type: `string`, Default: `"gio trash"`
The default `"gio trash"` is shipped with glib2 which is a common 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"`
*nvim-tree.actions*
Configuration for various actions.
@@ -2291,7 +2293,6 @@ vim.keymap.set("n", "<leader>ms", require("nvim-tree.api").marks.navigate.select
10. OS SPECIFIC RESTRICTIONS *nvim-tree-os-specific*
macOS
- Trash is unavailable
- Rename to different case is not possible when using a case insensitive file
system.