add <C-t> to open file in new tab

This commit is contained in:
kyazdani42 2020-03-01 15:07:29 +01:00
parent 7ac26175f2
commit 363a7b82aa
3 changed files with 4 additions and 2 deletions

View File

@ -39,11 +39,12 @@ nnoremap <leader>n :LuaTreeFindFile<CR>
- if the file is a symlink, `<CR>` will follow the symlink
- type `<C-v>` will open the file in a vertical split
- type `<C-x>` will open the file in a horizontal split
- type `<C-t>` will open the file in a new tab
- Double left click acts like `<CR>`
- 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 (`<CR>`, `<C-v>`, `<C-x>`, `<C-t>`)
- [x] File icons with vim-devicons
- [x] Syntax highlighting ([exa](https://github.com/ogham/exa) like)
- [x] Change directory with `.`
@ -66,7 +67,6 @@ nnoremap <leader>n :LuaTreeFindFile<CR>
- sneak like cd command to find a file/directory
- better default colors (use default vim groups)
- create proper highlight groups or add highlight function to give the user ability to setup colors themselves
- add `<C-t>` to open buffer in new tab
### Window Feature / Fixes
- opening help should open on the bottom

View File

@ -77,6 +77,7 @@ INFORMATIONS *nvim-tree-info*
- if the file is a symlink, '<CR>' will follow the symlink
- type '<C-v>' will open the file in a vertical split
- type '<C-x>' will open the file in a horizontal split
- type '<C-t>' will open the file in a new tab
- Double left click acts like '<CR>'
- Double right click acts like '.'

View File

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