Skip to content

Commit a61a05e

Browse files
Joe Lanesyl20bnr
Joe Lane
authored andcommitted
add copy key to neotree
CHANGES ------- Add new keybinding to neotree to allow the copying of nodes from the neotree buffer. Update documentation as well. WHY ------- There appear to be all other common file operations bound to the neotree buffer, however copying of a node is not.
1 parent 6d054e8 commit a61a05e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

doc/DOCUMENTATION.org

+1
Original file line numberDiff line numberDiff line change
@@ -2172,6 +2172,7 @@ open the file in a split window with ~|~ and ~-~:
21722172
|-------------+---------------------------------|
21732173
| ~TAB~ | toggle stretching of the buffer |
21742174
| ~c~ | create a node |
2175+
| ~C~ | copy a node |
21752176
| ~d~ | delete a node |
21762177
| ~gr~ | refresh |
21772178
| ~s~ | toggle showing of hidden files |

layers/+spacemacs/spacemacs-ui-visual/packages.el

+6-4
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@
184184
Navigation^^^^ Actions^^ Visual actions/config^^^
185185
───────^^^^─────────────── ───────^^──────── ───────^^^────────────────
186186
[_L_] next sibling^^ [_c_] create [_TAB_] shrink/enlarge
187-
[_H_] previous sibling^^ [_d_] delete [_|_] vertical split
188-
[_J_] goto child^^ [_r_] rename [_-_] horizonatal split
189-
[_K_] goto parent^^ [_R_] change root [_gr_] refresh^
190-
[_l_] open/expand^^ ^^ [_s_] hidden:^^^ %s(if neo-buffer--show-hidden-file-p \"on\" \"off\")
187+
[_H_] previous sibling^^ [_C_] copy [_|_] vertical split
188+
[_J_] goto child^^ [_d_] delete [_-_] horizonatal split
189+
[_K_] goto parent^^ [_r_] rename [_gr_] refresh^
190+
[_l_] open/expand^^ [_R_] change root [_s_] hidden:^^^ %s(if neo-buffer--show-hidden-file-p \"on\" \"off\")
191191
[_h_] up/collapse^^ ^^ ^^^
192192
[_j_] line down^^ ^^ ^^^
193193
[_k_] line up^^ ^^ ^^
@@ -200,6 +200,7 @@ Navigation^^^^ Actions^^ Visual actions/config^^^
200200
("-" neotree-enter-horizontal-split)
201201
("?" nil :exit t)
202202
("c" neotree-create-node)
203+
("C" neotree-copy-node)
203204
("d" neotree-delete-node)
204205
("gr" neotree-refresh)
205206
("h" spacemacs/neotree-collapse-or-up)
@@ -224,6 +225,7 @@ Navigation^^^^ Actions^^ Visual actions/config^^^
224225
(kbd "|") 'neotree-enter-vertical-split
225226
(kbd "-") 'neotree-enter-horizontal-split
226227
(kbd "c") 'neotree-create-node
228+
(kbd "C") 'neotree-copy-node
227229
(kbd "d") 'neotree-delete-node
228230
(kbd "gr") 'neotree-refresh
229231
(kbd "h") 'spacemacs/neotree-collapse-or-up

0 commit comments

Comments
 (0)