My tmux version is 3.5a, and terminal is iterm2 3.5.11, os is macOS.
tmux config is
set -g mouse on
setw -g mode-keys vi
set -sg escape-time 0
set -g renumber-windows on
# Setting the prefix from C-b to C-a
set -g prefix C-a
bind C-a send-prefix
unbind C-b
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe "x reattach-to-user-namespace pbcopy"
bind-key s setw synchronize-panes
set -g base-index 1
set -g pane-base-index 1
set -g window-status-current-style fg=green,bold
set -ga terminal-overrides ',*:RGB'
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind r source-file ~/.tmux.conf \; display-message "Config reloaded.."
I want to use mouse in tmux, and set set -g mouse on.
When I cat a file in the terminal, and use mouse to select some text. It exited selected mode quickly. It's alright, but there are nothing text when I press command + v.
I want to know is there anything changed in tmux or iterm2, and how could I config to copy the mouse selected text.
-
Have you tried the solutions from here? stackoverflow.com/questions/12287432/…haridsv– haridsv2025年02月02日 13:40:47 +00:00Commented Feb 2, 2025 at 13:40