change <c-[> to . to change directory path

This commit is contained in:
kyazdani42
2020-02-27 22:51:58 +01:00
parent 4c5c6816bd
commit a6f4ec6270
3 changed files with 7 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ nnoremap <leader>n :LuaTreeRefresh<CR>
- move around like in any vim buffer - move around like in any vim buffer
- `<CR>` on `..` will cd in the above directory - `<CR>` on `..` will cd in the above directory
- `<C-[>` will cd in the directory under the cursor - `.` will cd in the directory under the cursor
- type `a` to add a file - type `a` to add a file
- type `r` to rename a file - type `r` to rename a file
- type `d` to delete a file (will prompt for confirmation) - type `d` to delete a file (will prompt for confirmation)
@@ -37,13 +37,13 @@ nnoremap <leader>n :LuaTreeRefresh<CR>
- type `<C-v>` will open the file in a vertical split - type `<C-v>` will open the file in a vertical split
- type `<C-x>` will open the file in a horizontal split - type `<C-x>` will open the file in a horizontal split
- Double left click acts like `<CR>` - Double left click acts like `<CR>`
- Double right click acts like `<C-[>` - Double right click acts like `.`
## Features ## 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 (`<CR>`, `<C-v>`, `<C-x>`)
- [x] File icons with vim-devicons - [x] File icons with vim-devicons
- [x] Syntax highlighting ([exa](https://github.com/ogham/exa) like) - [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] Add / Rename / delete files
- [x] Git integration - [x] Git integration
- [x] Mouse support - [x] Mouse support

View File

@@ -52,7 +52,7 @@ INFORMATIONS *nvim-tree-info*
- move around like in any vim buffer - move around like in any vim buffer
- '<CR>' on '..' will cd in the above directory - '<CR>' on '..' will cd in the above directory
- '<C-[>' will cd in the directory under the cursor - typing '.' will cd in the directory under the cursor
- type 'a' to add a file - type 'a' to add a file
- type 'r' to rename a file - type 'r' to rename a file
@@ -65,7 +65,7 @@ INFORMATIONS *nvim-tree-info*
- type '<C-x>' will open the file in a horizontal split - type '<C-x>' will open the file in a horizontal split
- Double left click acts like '<CR>' - Double left click acts like '<CR>'
- Double right click acts like '<C-[>' - Double right click acts like '.'
|Features| *nvim-tree-features* |Features| *nvim-tree-features*

View File

@@ -112,7 +112,7 @@ local function set_mappings()
['<2-RightMouse>'] = 'open_file("chdir")'; ['<2-RightMouse>'] = 'open_file("chdir")';
['<C-v>'] = 'open_file("vsplit")'; ['<C-v>'] = 'open_file("vsplit")';
['<C-x>'] = 'open_file("split")'; ['<C-x>'] = 'open_file("split")';
['<C-[>'] = 'open_file("chdir")'; ['.'] = 'open_file("chdir")';
a = 'edit_file("create")'; a = 'edit_file("create")';
d = 'edit_file("remove")'; d = 'edit_file("remove")';
r = 'edit_file("rename")'; r = 'edit_file("rename")';