-
Notifications
You must be signed in to change notification settings - Fork 27
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
emulate-scroll-for-no-mouse-alternate-buffer not working? #40
Comments
Hmm, let's start with some small questions: which version of tmux do you have? |
Unfortunately, tmux on OpenBSD has no version, as it’s a part of the operating system itself :-) The version, I suppose, is tmux as of OpenBSD 6.3.
… Nathan Daly wrote:
Hmm, let's start with some small questions: which version of tmux do you have?
|
I have the same issue, here are all my deets: relevant bits from
Hopefully I'm just doing something dumb |
Solution!OS: Linux Mint 19.x I found the solution (at least for myself on Linux Mint 19.x). I was using an older version of less and was using the following option in my LESS environment variable (set in zshrc):
I was doing this for a good reason (that I can't quite remember now), but it made it so less was not sent to an alternate buffer (alternate_on didn't register less as a valid alt process). Luckily, the latest version of less has mouse support! You just need to do the following:
I'll let you figure out 1 for yourself. For LESS, here's my config: LESS="--ignore-case --status-column --LONG-PROMPT --RAW-CONTROL-CHARS"
LESS="$LESS --HILITE-UNREAD --tabs=4 --quit-if-one-screen"
export LESS
export LESS_TERMCAP_mb=$'\E[1;31m' # begin bold
export LESS_TERMCAP_md=$'\E[1;36m' # begin blink
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
export PAGER=less For tmux, here's the relevant config (assuming you've already configured your mouse correctly) # Options for: nhdaly/tmux-better-mouse-mode
set -g @scroll-down-exit-copy-mode "on"
set -g @scroll-without-changing-pane "on"
set -g @scroll-in-moused-over-pane "on"
set -g @scroll-speed-num-lines-per-scroll "3"
set -g @emulate-scroll-for-no-mouse-alternate-buffer "on"
set -g @plugin 'nhdaly/tmux-better-mouse-mode' |
this broke tmux scrolling support NHDaly/tmux-better-mouse-mode#40 (comment)
Hi!
I installed this plugin today, but unfortunately, the option
@emulate-scroll-for-no-mouse-alternate-buffer
is not working properly for me. Here is my configuration:I'd like to be able to scroll in
less
using my mouse wheel, but it doesn't work.Here's the output of
tmux list-keys -T root
:Have I missed something? I'm running OpenBSD 6.3.
The text was updated successfully, but these errors were encountered: