-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
wheel scrolling doesn't work in tmux / linux #174
Comments
Related: crossterm-rs/crossterm#401 |
fwiw this works around the issue: bind-key -n WheelUpPane {
if-shell -F '#{mouse_any_flag}' {
send-keys -M
} {
if-shell -F '#{alternate_on}' {
send-keys Up
} {
copy-mode -e
}
}
}
bind-key -n WheelDownPane {
if-shell -F '#{mouse_any_flag}' {
send-keys -M
} {
send-keys Down
}
} (see also tmux/tmux#3705) you can duplicate note that all of this only has an effect if |
strangely scrolling works fine in vim and helix. i wonder if crossterm isn't telling the terminal emulator it can accept mouse events ( |
ok yes - if i uncomment those cfgs, mouse scrolling works fine in tmux. the problem from #191 also appears; i suspect it is not actually platform specific and bacon needs to set some config that tells the terminal emulator to handle text selection itself. |
ok, i think i have figured out what's going on.
there are two independent bugs here, excluding anything bacon does.
i suspect @Adham-A has some broken environment. given all that, my suggestion is to revert #156, tell tmux users to use the workaround i posted above, and have Adham debug their environment further - i do not think capturing the mouse is a good tradeoff for bacon since it breaks click+drag for selecting text. |
oh - i think this is a bug in vscode. running |
Reported by @willhansen in #153 and confirmed.
The text was updated successfully, but these errors were encountered: