Closed LittleHendrix closed 1 month ago
Mouse wheel works fine for me with
kitty --config NONE nvim --clean
nvim version 0.10.1
I didnt bother trying with tmux.
kitty --config NONE nvim --clean
Hi @kovidgoyal, thank you for testing this out. However, I've tried the exact command above (no tmux, no nvim plugins) and mouse wheel scrolling still not working for some reason. In your opinion (or, educated guess) would there be any other potential causes that may prevent the mouse wheel from working? I presume there's nothing that stands out in the kitty config that I posted above? I use kitty daily as my dev terminal, would really like to get this working as it did before. Any suggestion would be greatly appreciated!
These are my neovim version details:
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1720049189
Oh, one more thing to add, which I (literally just) accidentally discovered that, when kitty is in focus, the mouse scrolling isn't working; however, when I move focus to another application, and then hover mouse cursor over kitty terminal and scroll, it works!?! I know that on MacOS you can scroll on window that isn't in focus, as long as the mouse cursor is over it. But I have no idea why it works when out of focus but stops working when in focus 🤷♂️
Make sure you dont have secure text input turned on and you can run kitty using --debug-input to see what input related events it is receiving from the OS.
@kovidgoyal turning off Secure Keyboard Entry
has fixed the issue. 👍
I must have enabled it by clicking the keybind combo by mistake and switched it on without realizing. Thank you for helping to troubleshoot!
*Describe the bug
I have had issue with this when I first installed Kitty a while back. After search on the internet I stumbled across a post where someone suggested adding
set -as terminal-overrides 'screen*:kmous=\E[M'
to~/.tmux.conf
. And after I had added that line, the mouse wheel started working, and continue to work for about a year. However, it has stopped working recently after I ran a brew update & upgrade. I ran another brew update and there was a new update available, I then upgraded to that version. But the mouse wheel still isn't working after the upgrade.I thought it may have something to do with the tmux.conf or even the neovim config. However, I tried loading neovim (in tmux session) in iTerm and the default MacOS terminal, and the mouse wheel worked in both. I was able to scroll through the neovim buffer both inside tmux and directly in those terminal emulators. I then though maybe it was my kitty config, so I tried running it in kitty --config NONE, still no luck.
To Reproduce Steps to reproduce the behavior:
set -g mouse on
Screenshots If applicable, add screenshots to help explain your problem.
Environment details
Additional context Try to reproduce the problem with
kitty --config NONE
if you cannot then post a minimal kitty.conf that reproduces the problem. If the problem involves interaction with some other terminal program post a minimal config for that program to reproduce the problem as well.