Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open file/directory with a single click #48

Closed
astier opened this issue Aug 10, 2020 · 1 comment
Closed

Open file/directory with a single click #48

astier opened this issue Aug 10, 2020 · 1 comment

Comments

@astier
Copy link

astier commented Aug 10, 2020

I would like to open a file/directory with a single <leftmouse> click. I tried configuring it as you can see in the following vimc:

set runtimepath+=~/.local/share/nvim/plugins/chadtree
set mouse=a
lua vim.api.nvim_set_var("chadtree_settings", { keymap = { primary = {"<leftmouse>"} }})

However, this doesn't work properly. Instead of moving the cursor to the file/dir which I clicked on and opening the respective file/dir, the cursor doesn't move and opens instead the file/dir which it was placed on before clicking on another file/dir.

@ms-jpq
Copy link
Owner

ms-jpq commented Jan 21, 2021

don't think this is actually possible imo.

I need to capture the event for mouse click, but if I do, vim doesn't. So it can't position the mouse on the right row

@ms-jpq ms-jpq closed this as completed Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants