diff --git a/README.md b/README.md index 7a3ecae0..d5a7364f 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ nnoremap n :LuaTreeRefresh - move around like in any vim buffer - `` on `..` will cd in the above directory -- `` will cd in the directory under the cursor +- `.` will cd in the directory under the cursor - type `a` to add a file - type `r` to rename a file - type `d` to delete a file (will prompt for confirmation) @@ -37,13 +37,13 @@ nnoremap n :LuaTreeRefresh - type `` will open the file in a vertical split - type `` will open the file in a horizontal split - Double left click acts like `` -- Double right click acts like `` +- Double right click acts like `.` ## Features -- [x] Open file in current buffer or in split with FzF like bindings (`CR`, `C-v`, `C-x`) +- [x] Open file in current buffer or in split with FzF like bindings (``, ``, ``) - [x] File icons with vim-devicons - [x] Syntax highlighting ([exa](https://github.com/ogham/exa) like) -- [x] Change directory with `C-[` +- [x] Change directory with `.` - [x] Add / Rename / delete files - [x] Git integration - [x] Mouse support diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index 0b84fcf8..ee04774d 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -52,7 +52,7 @@ INFORMATIONS *nvim-tree-info* - move around like in any vim buffer - '' on '..' will cd in the above directory -- '' will cd in the directory under the cursor +- typing '.' will cd in the directory under the cursor - type 'a' to add a file - type 'r' to rename a file @@ -65,7 +65,7 @@ INFORMATIONS *nvim-tree-info* - type '' will open the file in a horizontal split - Double left click acts like '' -- Double right click acts like '' +- Double right click acts like '.' |Features| *nvim-tree-features* diff --git a/lua/lib/winutils.lua b/lua/lib/winutils.lua index 40931be9..7ab9a7e9 100644 --- a/lua/lib/winutils.lua +++ b/lua/lib/winutils.lua @@ -112,7 +112,7 @@ local function set_mappings() ['<2-RightMouse>'] = 'open_file("chdir")'; [''] = 'open_file("vsplit")'; [''] = 'open_file("split")'; - [''] = 'open_file("chdir")'; + ['.'] = 'open_file("chdir")'; a = 'edit_file("create")'; d = 'edit_file("remove")'; r = 'edit_file("rename")';