You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lua/nvim-tree/keymap.lua
+38-36Lines changed: 38 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -8,175 +8,176 @@ local DEFAULT_KEYMAPS = {
8
8
key= { "<CR>", "o", "<2-LeftMouse>" },
9
9
callback=Api.node.open.edit,
10
10
desc= {
11
-
long="open a file or folder; root will cd to the above directory",
11
+
long="Open a file or directory; root will cd to the above directory.",
12
12
short="Open",
13
13
},
14
14
},
15
15
{
16
16
key="<C-e>",
17
17
callback=Api.node.open.replace_tree_buffer,
18
18
desc= {
19
-
long="edit the file in place, effectively replacing the tree explorer",
19
+
long="Open file in place, effectively replacing the tree explorer.",
20
20
short="Open: In Place",
21
21
},
22
22
},
23
23
{
24
24
key="O",
25
25
callback=Api.node.open.no_window_picker,
26
26
desc= {
27
-
long="same as (edit) with no window picker",
27
+
long="Open file with no window picker.",
28
28
short="Open: No Window Picker",
29
29
},
30
30
},
31
31
{
32
32
key= { "<C-]>", "<2-RightMouse>" },
33
33
callback=Api.tree.change_root_to_node,
34
34
desc= {
35
-
long="cd in the directory under the cursor",
36
-
short="cd",
35
+
long="cd in the directory under the cursor.",
36
+
short="CD",
37
37
},
38
38
},
39
39
{
40
-
key="<C-v>",
40
+
-- key = "<C-v>",
41
+
key="<ctrL-v>",
41
42
callback=Api.node.open.vertical,
42
43
desc= {
43
-
long="open the file in a vertical split",
44
+
long="Open file in a vertical split.",
44
45
short="Open: Vertical Split",
45
46
},
46
47
},
47
48
{
48
49
key="<C-x>",
49
50
callback=Api.node.open.horizontal,
50
51
desc= {
51
-
long="open the file in a horizontal split",
52
+
long="Open file in a horizontal split.",
52
53
short="Open: Horizontal Split",
53
54
},
54
55
},
55
56
{
56
57
key="<C-t>",
57
58
callback=Api.node.open.tab,
58
59
desc= {
59
-
long="open the file in a new tab",
60
+
long="Open file in a new tab.",
60
61
short="Open: New Tab",
61
62
},
62
63
},
63
64
{
64
65
key="<",
65
66
callback=Api.node.navigate.sibling.prev,
66
67
desc= {
67
-
long="navigate to the previous sibling of current file/directory",
68
+
long="Navigate to the previous sibling.",
68
69
short="Previous Sibling",
69
70
},
70
71
},
71
72
{
72
73
key=">",
73
74
callback=Api.node.navigate.sibling.next,
74
75
desc= {
75
-
long="navigate to the next sibling of current file/directory",
76
+
long="Navigate to the next sibling",
76
77
short="Next Sibling",
77
78
},
78
79
},
79
80
{
80
81
key="P",
81
82
callback=Api.node.navigate.parent,
82
83
desc= {
83
-
long="move cursor to the parent directory",
84
+
long="Move cursor to the parent directory.",
84
85
short="Parent Directory",
85
86
},
86
87
},
87
88
{
88
89
key="<BS>",
89
90
callback=Api.node.navigate.parent_close,
90
91
desc= {
91
-
long="close current opened directory or parent",
92
-
short="Close Folder",
92
+
long="Close current opened directory or parent.",
93
+
short="Close Directory",
93
94
},
94
95
},
95
96
{
96
97
key="<Tab>",
97
98
callback=Api.node.open.preview,
98
99
desc= {
99
-
long="open the file as a preview (keeps the cursor in the tree)",
100
+
long="Open file as a preview (keeps the cursor in the tree).",
100
101
short="Open Preview",
101
102
},
102
103
},
103
104
{
104
105
key="K",
105
106
callback=Api.node.navigate.sibling.first,
106
107
desc= {
107
-
long="navigate to the first sibling of current file/directory",
108
+
long="Navigate to the first sibling.",
108
109
short="First Sibling",
109
110
},
110
111
},
111
112
{
112
113
key="J",
113
114
callback=Api.node.navigate.sibling.last,
114
115
desc= {
115
-
long="navigate to the last sibling of current file/directory",
116
+
long="Navigate to the last sibling.",
116
117
short="Last Sibling",
117
118
},
118
119
},
119
120
{
120
121
key="I",
121
122
callback=Api.tree.toggle_gitignore_filter,
122
123
desc= {
123
-
long="toggle visibility of files/folders hidden via |git.ignore| option",
124
+
long="Toggle visibility of files/directories hidden via |git.ignore| option.",
124
125
short="Toggle Git Ignore",
125
126
},
126
127
},
127
128
{
128
129
key="H",
129
130
callback=Api.tree.toggle_hidden_filter,
130
131
desc= {
131
-
long="toggle visibility of dotfiles via |filters.dotfiles| option",
132
+
long="Toggle visibility of dotfiles via |filters.dotfiles| option.",
132
133
short="Toggle Dotfiles",
133
134
},
134
135
},
135
136
{
136
137
key="U",
137
138
callback=Api.tree.toggle_custom_filter,
138
139
desc= {
139
-
long="toggle visibility of files/folders hidden via |filters.custom| option",
140
+
long="Toggle visibility of files/directories hidden via |filters.custom| option.",
140
141
short="Toggle Hidden",
141
142
},
142
143
},
143
144
{
144
145
key="R",
145
146
callback=Api.tree.reload,
146
147
desc= {
147
-
long="refresh the tree",
148
+
long="Refresh the tree.",
148
149
short="Refresh",
149
150
},
150
151
},
151
152
{
152
153
key="a",
153
154
callback=Api.fs.create,
154
155
desc= {
155
-
long="add a file; leaving a trailing `/` will add a directory",
156
+
long="Create a file; leaving a trailing `/` will add a directory.",
156
157
short="Create",
157
158
},
158
159
},
159
160
{
160
161
key="d",
161
162
callback=Api.fs.remove,
162
163
desc= {
163
-
long="delete a file (will prompt for confirmation)",
164
+
long="Delete a file, prompting for confirmation.",
164
165
short="Delete",
165
166
},
166
167
},
167
168
{
168
169
key="D",
169
170
callback=Api.fs.trash,
170
171
desc= {
171
-
long="trash a file via |trash| option",
172
+
long="Trash a file via |trash| option.",
172
173
short="Trash",
173
174
},
174
175
},
175
176
{
176
177
key="r",
177
178
callback=Api.fs.rename,
178
179
desc= {
179
-
long="rename a file",
180
+
long="Rename a file or directory.",
180
181
short="Rename",
181
182
},
182
183
},
@@ -280,87 +281,87 @@ local DEFAULT_KEYMAPS = {
280
281
key="s",
281
282
callback=Api.node.run.system,
282
283
desc= {
283
-
long="open a file with default system application or a folder with default file manager, using |system_open| option",
284
+
long="Open a file with default system application or a directory with default file manager, using |system_open| option.",
284
285
short="Run System",
285
286
},
286
287
},
287
288
{
288
289
key="f",
289
290
callback=Api.live_filter.start,
290
291
desc= {
291
-
long="live filter nodes dynamically based on regex matching.",
292
+
long="Live filter nodes dynamically based on regex matching.",
292
293
short="Filter",
293
294
},
294
295
},
295
296
{
296
297
key="F",
297
298
callback=Api.live_filter.clear,
298
299
desc= {
299
-
long="clear live filter",
300
+
long="Clear live filter.",
300
301
short="Clean Filter",
301
302
},
302
303
},
303
304
{
304
305
key="q",
305
306
callback=Api.tree.close,
306
307
desc= {
307
-
long="close tree window",
308
+
long="Close tree window.",
308
309
short="Close",
309
310
},
310
311
},
311
312
{
312
313
key="W",
313
314
callback=Api.tree.collapse_all,
314
315
desc= {
315
-
long="collapse the whole tree",
316
+
long="Collapse the whole tree.",
316
317
short="Collapse",
317
318
},
318
319
},
319
320
{
320
321
key="E",
321
322
callback=Api.tree.expand_all,
322
323
desc= {
323
-
long="expand the whole tree, stopping after expanding |callbacks.expand_all.max_folder_discovery| folders; this might hang neovim for a while if running on a big folder",
324
+
long="Expand the whole tree, stopping after expanding |callbacks.expand_all.max_folder_discovery| directories; this might hang neovim for a while if running on a big directory.",
324
325
short="Expand All",
325
326
},
326
327
},
327
328
{
328
329
key="S",
329
330
callback=Api.tree.search_node,
330
331
desc= {
331
-
long="prompt the user to enter a path and then expands the tree to match the path",
332
+
long="Prompt the user to enter a path and then expands the tree to match the path.",
332
333
short="Search",
333
334
},
334
335
},
335
336
{
336
337
key=".",
337
338
callback=Api.node.run.cmd,
338
339
desc= {
339
-
long="enter vim command mode with the file the cursor is on",
340
+
long="Enter vim command mode with the file the cursor is on.",
340
341
short="Run Command",
341
342
},
342
343
},
343
344
{
344
345
key="<C-k>",
345
346
callback=Api.node.show_info_popup,
346
347
desc= {
347
-
long="toggle a popup with file infos about the file under the cursor",
348
+
long="Toggle a popup with file info about the file under the cursor.",
0 commit comments