【问题标题】:Tmux cannot switch panes wiht MouseTmux 无法使用鼠标切换窗格
【发布时间】:2016-02-16 22:21:14
【问题描述】:

我的.tmux.conf中有这些

#set -g mouse-utf8 on
set -g mouse on

# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left,     C-Right
#set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"

# Scroll History
set -g history-limit 30000

set -g set-titles on

set -g focus-events on

# but don't change tmux's own window titles
set -w -g automatic-rename off

set-option -g default-shell /bin/zsh

如果不使用快捷方式,我无法使用鼠标或将焦点更改到不同的窗格。如果不使用快捷方式,我也无法切换选项卡。我正在使用 tmux 2.1 。

【问题讨论】:

    标签: tmux tmuxinator


    【解决方案1】:

    要在会话中在窗格和窗口之间切换,请将以下内容添加到您的 .tmux.conf

    set -g mode-mouse on set -g mouse-select-pane on set -g mouse-select-window on

    作为额外的帮助,使用鼠标调整窗格大小也很有用,为此,请使用以下行: set -g mouse-resize-pane on

    【讨论】:

    • 感谢@liam_g,但这些不再是 tmux 2.1 中的选项
    猜你喜欢
    • 2020-05-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-04
    • 1970-01-01
    • 1970-01-01
    • 2019-12-02
    相关资源
    最近更新 更多