From 14f83b3891936dc4b86529397cf01238109a9d95 Mon Sep 17 00:00:00 2001 From: kyazdani42 Date: Wed, 19 Feb 2020 14:01:40 +0100 Subject: [PATCH] add mouse support --- README.md | 9 ++++----- lua/lib/winutils.lua | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 324d40e7..68f72799 100644 --- a/README.md +++ b/README.md @@ -9,12 +9,13 @@ - This plugin will not work on windows. ## Features -- [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] syntax highlighting ([exa](https://github.com/ogham/exa) like) +- [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] Syntax highlighting ([exa](https://github.com/ogham/exa) like) - [x] Change directory with `C-[` - [x] Add / Rename / delete files - [x] Git integration +- [x] Mouse support ## TODO - [ ] refresh tree (for git) on file save and update git status when needed @@ -28,5 +29,3 @@ - [ ] handle symbolic links - [ ] quickly find file in the directory structure - [ ] update tree automatically on window change - -- [ ] mouse integration diff --git a/lua/lib/winutils.lua b/lua/lib/winutils.lua index 734d629a..22377301 100644 --- a/lua/lib/winutils.lua +++ b/lua/lib/winutils.lua @@ -100,6 +100,7 @@ local function set_mappings() local mappings = { [''] = 'open_file("edit")'; + ['<2-LeftMouse>'] = 'open_file("edit")'; [''] = 'open_file("vsplit")'; [''] = 'open_file("split")'; [''] = 'open_file("chdir")';