tmux 滚动缓慢,scroll-speed-num-lines-per-scroll 似乎不起作用

dai*_*isy 5 tmux

我试图让 tmux 滚动得和 iTerm2 一样快,

%> tmux -V
tmux 2.3
%> cat ~/.tmux.conf
set-option -g mouse on
set -g @scroll-speed-num-lines-per-scroll 5
Run Code Online (Sandbox Code Playgroud)

但是我的配置好像不行,我可以看到行号变化很慢,所以这肯定行不通

在此处输入图片说明

有任何想法吗?

小智 1

我能够使用 tmux 插件来完成这项工作。

首先,我安装了TPM

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

然后我配置@scroll-speed-num-lines-per-scroll并将tmux-better-mouse-modeTPM 添加到我的~/.tmux.conf

set -g @scroll-speed-num-lines-per-scroll 1  # change to the speed you'd like

set -g @plugin 'nhdaly/tmux-better-mouse-mode'

run -b '~/.tmux/plugins/tpm/tpm'
Run Code Online (Sandbox Code Playgroud)

重新加载我的 tmux conf 后,我跑去prefix+I安装插件,滚动速度响应了@scroll-speed-num-lines-per-scroll设置。