add mouse support
This commit is contained in:
@@ -9,12 +9,13 @@
|
|||||||
- This plugin will not work on windows.
|
- This plugin will not work on windows.
|
||||||
|
|
||||||
## 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 `C-[`
|
||||||
- [x] Add / Rename / delete files
|
- [x] Add / Rename / delete files
|
||||||
- [x] Git integration
|
- [x] Git integration
|
||||||
|
- [x] Mouse support
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
- [ ] refresh tree (for git) on file save and update git status when needed
|
- [ ] refresh tree (for git) on file save and update git status when needed
|
||||||
@@ -28,5 +29,3 @@
|
|||||||
- [ ] handle symbolic links
|
- [ ] handle symbolic links
|
||||||
- [ ] quickly find file in the directory structure
|
- [ ] quickly find file in the directory structure
|
||||||
- [ ] update tree automatically on window change
|
- [ ] update tree automatically on window change
|
||||||
|
|
||||||
- [ ] mouse integration
|
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ local function set_mappings()
|
|||||||
|
|
||||||
local mappings = {
|
local mappings = {
|
||||||
['<CR>'] = 'open_file("edit")';
|
['<CR>'] = 'open_file("edit")';
|
||||||
|
['<2-LeftMouse>'] = 'open_file("edit")';
|
||||||
['<C-v>'] = 'open_file("vsplit")';
|
['<C-v>'] = 'open_file("vsplit")';
|
||||||
['<C-x>'] = 'open_file("split")';
|
['<C-x>'] = 'open_file("split")';
|
||||||
['<C-[>'] = 'open_file("chdir")';
|
['<C-[>'] = 'open_file("chdir")';
|
||||||
|
|||||||
Reference in New Issue
Block a user