feat: add trashing (#749)

This commit is contained in:
Raafat Turki
2021-11-28 17:26:24 +03:00
committed by GitHub
parent 6488075d6a
commit e842f08884
5 changed files with 97 additions and 0 deletions

View File

@@ -120,6 +120,10 @@ function.
filters = {
dotfiles = false,
custom = {}
},
trash = {
cmd = "trash",
require_confirm = true,
}
}
<
@@ -321,6 +325,16 @@ Here is a list of the options available in the setup call:
type: `{string}`
default: `{}`
*nvim-tree.trash*
|trash|: configuration options for trashing
- |trash.cmd|: the command used to trash items (must be installed on your system)
type: `string`
default: `"trash"`
- |trash.require_confirm|: show a prompt before trashing takes place.
type: `boolean`
default: `true`
==============================================================================
OPTIONS *nvim-tree-options*
@@ -562,6 +576,7 @@ Defaults to:
{ key = "R", cb = tree_cb("refresh") },
{ key = "a", cb = tree_cb("create") },
{ key = "d", cb = tree_cb("remove") },
{ key = "D", cb = tree_cb("trash") },
{ key = "r", cb = tree_cb("rename") },
{ key = "<C-r>", cb = tree_cb("full_rename") },
{ key = "x", cb = tree_cb("cut") },