Closed ap closed 3 years ago
Would be cool if it would be possible to assign custom commands to mouse-buttons. For example the user could define in its vimrc that left-click on a buffer in the tabline would select it and right-click would close the buffer.
@ap I have a working (but hacky) solution for this in Neovim. Would you be interested in a PR?
I’m certainly interested in looking at it! Having a starting point always makes it easier to get going.
If you’re asking about getting it merged – that would require getting it cleaned up. But we can handle that however you prefer.
Yeah I'm definitely interested in making it PR-ready if the approach is right. I went through the neovim docs again, and it's not as much of a hack as I thought it was, so I think it should be okay. Shall I make a draft PR for you to review?
As I said, I’d love to.
Created a draft PR #77
Thanks to @anihm136, as of de099655114f636bbffcc9ad24b9933d7d591854, this is now implemented. Share and enjoy 🙂
This was added in NeoVim 0.1.2: