-
Notifications
You must be signed in to change notification settings - Fork 28
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
Feature request: Mousewheeel support #49
Comments
Thanks for the idea! How is yazi mouse support for you without neovim? My experience has been less than optimal, but I have some trackpad and it may complicate things. I notice your implementation had some extra logic for tmux. Does this complicate things? |
@mikavilpas The main mouse feature is covered in the snippet above. Yazi still lack a few important mouse features I had back in ranger.
Personally I use a programmable keyboard with a trackball and this is x300 user experience for me. |
was this supposed to include a link? I'm curious to read more but don't know where to go 🙂 Anyway, I think this is a cool idea so I'll try to implement it, perhaps as optional at first so we can try it out. |
Ok it's a pretty straighforward copy paste. To be honest I would PR it myself, but I'm full for a few days. So whoever go it faster :3 |
Ok there's now a "soft launch" in the main branch. You need to opt in to this feature like this mikavilpas/dotfiles@f7aff2b Let me know how it works for you. |
I can confirm it works. Thank you so much for adding it so fast!! 🎉🎉 |
...from a yazi session. It seemed to close the window twice, which caused some issues (not sure why). Looks like this was accidentally broken when I added experimental support for scrolling in #49 Should be fixed now.
...from a yazi session. It seemed to close the window twice, which caused some issues (not sure why). Looks like this was accidentally broken when I added experimental support for scrolling in #49 Should be fixed now.
@Zeioth much better mouse support was merged into yazi an hour or so ago sxyazi/yazi#1038 If you're able to build from source (I use diff --git a/.config/nvim/lua/plugins/my-file-manager.lua b/.config/nvim/lua/plugins/my-file-manager.lua
index bb70be8..8d278c6 100644
--- a/.config/nvim/lua/plugins/my-file-manager.lua
+++ b/.config/nvim/lua/plugins/my-file-manager.lua
@@ -27,7 +27,6 @@ return {
---@type YaziConfig
opts = {
open_for_directories = true,
- enable_mouse_support = true,
-- log_level = vim.log.levels.DEBUG,
integrations = {
grep_in_directory = function(directory) |
Back in the day I implemented this in rnvimr and implementing the same feature here would be trivial.
You can check my PR as reference:
kevinhwang91/rnvimr#58 (comment)
The text was updated successfully, but these errors were encountered: