0

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.

asked Jan 11, 2025 at 17:56
1

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.