From d6ab59fd5acb7c71b1a10ace5a522a720460ad6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zi=E8=8E=B1=E5=8D=B7?= Date: Fri, 21 May 2021 14:32:48 +0800 Subject: [PATCH] feat: Support copy name and path (#385) --- README.md | 6 ++++++ lua/nvim-tree.lua | 3 +++ lua/nvim-tree/fs.lua | 23 +++++++++++++++++++++++ lua/nvim-tree/view.lua | 3 +++ 4 files changed, 35 insertions(+) diff --git a/README.md b/README.md index edd13421..e809d710 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,9 @@ highlight NvimTreeFolderIcon guibg=blue - type `` to rename a file and omit the filename on input - type `x` to add/remove file/directory to cut clipboard - type `c` to add/remove file/directory to copy clipboard +- type `y` will copy name to system clipboard +- type `Y` will copy relative path to system clipboard +- type `gy` will copy absolute path to system clipboard - type `p` to paste from clipboard. Cut clipboard has precedence over copy (will prompt for confirmation) - type `d` to delete a file (will prompt for confirmation) - type `]c` to go to next git item @@ -162,6 +165,9 @@ lua <