![tmux - 針對 osx 和 Ubuntu 的第 22 條“未知金鑰:WheelUpPane”](https://rvso.com/image/83680/tmux%20-%20%E9%87%9D%E5%B0%8D%20osx%20%E5%92%8C%20Ubuntu%20%E7%9A%84%E7%AC%AC%2022%20%E6%A2%9D%E2%80%9C%E6%9C%AA%E7%9F%A5%E9%87%91%E9%91%B0%EF%BC%9AWheelUpPane%E2%80%9D.png)
最近 tmux 改變了很多滑鼠的東西,變得更好。
但我有點卡住了,因為我需要
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
為了能夠在 OSX 中上下滾動
然而,在 Ubuntu 中我的 .tmux.conf (我喜歡在作業系統之間共用)中包含這些行會導致
/home/durrantm/.tmux.conf:75: unknown key: WheelUpPane [0/0]
/home/durrantm/.tmux.conf:76: unknown key: WheelDownPane
如果我刪除它們,那麼當我應用更改時,我將無法在 OSX 中滾動
tmux source-file ~/.tmux.conf