add <C-t> to open file in new tab
This commit is contained in:
parent
7ac26175f2
commit
363a7b82aa
@ -39,11 +39,12 @@ nnoremap <leader>n :LuaTreeFindFile<CR>
|
|||||||
- if the file is a symlink, `<CR>` will follow the symlink
|
- if the file is a symlink, `<CR>` will follow the symlink
|
||||||
- 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
|
||||||
|
- type `<C-t>` will open the file in a new tab
|
||||||
- Double left click acts like `<CR>`
|
- Double left click acts like `<CR>`
|
||||||
- Double right click acts like `.`
|
- 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>`, `<C-t>`)
|
||||||
- [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 `.`
|
- [x] Change directory with `.`
|
||||||
@ -66,7 +67,6 @@ nnoremap <leader>n :LuaTreeFindFile<CR>
|
|||||||
- sneak like cd command to find a file/directory
|
- sneak like cd command to find a file/directory
|
||||||
- better default colors (use default vim groups)
|
- better default colors (use default vim groups)
|
||||||
- create proper highlight groups or add highlight function to give the user ability to setup colors themselves
|
- 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
|
### Window Feature / Fixes
|
||||||
- opening help should open on the bottom
|
- opening help should open on the bottom
|
||||||
|
|||||||
@ -77,6 +77,7 @@ INFORMATIONS *nvim-tree-info*
|
|||||||
- if the file is a symlink, '<CR>' will follow the symlink
|
- if the file is a symlink, '<CR>' will follow the symlink
|
||||||
- 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
|
||||||
|
- type '<C-t>' will open the file in a new tab
|
||||||
|
|
||||||
- Double left click acts like '<CR>'
|
- Double left click acts like '<CR>'
|
||||||
- Double right click acts like '.'
|
- Double right click acts like '.'
|
||||||
|
|||||||
@ -127,6 +127,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-t>'] = 'open_file("tabnew")';
|
||||||
['.'] = 'open_file("chdir")';
|
['.'] = 'open_file("chdir")';
|
||||||
a = 'edit_file("create")';
|
a = 'edit_file("create")';
|
||||||
d = 'edit_file("remove")';
|
d = 'edit_file("remove")';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user