Add a mode that allows edit without the picker (#873)
This commit is contained in:
committed by
GitHub
parent
1ac3502290
commit
14bdf134f9
@@ -579,6 +579,7 @@ Defaults to:
|
||||
lua <<EOF
|
||||
local list = {
|
||||
{ key = {"<CR>", "o", "<2-LeftMouse>"}, action = "edit" },
|
||||
{ key = {"O"}, action = tree_cb("edit_no_picker") },
|
||||
{ key = {"<2-RightMouse>", "<C-]>"}, action = "cd" },
|
||||
{ key = "<C-v>", action = "vsplit" },
|
||||
{ key = "<C-x>", action = "split" },
|
||||
@@ -621,11 +622,11 @@ The `list` option in `view.mappings.list` is a table of
|
||||
>
|
||||
lua <<EOF
|
||||
local tree_cb = require'nvim-tree.config'.nvim_tree_callback
|
||||
|
||||
|
||||
local function print_node_path(node) {
|
||||
print(node.absolute_path)
|
||||
}
|
||||
|
||||
|
||||
local list = {
|
||||
{ key = {"<CR>", "o" }, action = "edit", mode = "n"},
|
||||
{ key = "p", action = "print_path", action_cb = print_node_path },
|
||||
|
||||
Reference in New Issue
Block a user