scripts: helpers.sh: use primary clipboard on wayland with mouse by nunojsa · Pull Request #168 · tmux-plugins/tmux-yank · GitHub
Skip to content

scripts: helpers.sh: use primary clipboard on wayland with mouse - #168

Open
nunojsa wants to merge 1 commit into
tmux-plugins:masterfrom
nunojsa:dev/wayland-mouse-clipboard
Open

nunojsa wants to merge 1 commit into
tmux-plugins:masterfrom
nunojsa:dev/wayland-mouse-clipboard

Conversation

@nunojsa

@nunojsa nunojsa commented Jun 7, 2023

Copy link
Copy Markdown

Follow the same logic as in X and use the primary clipboard for Wayland sessions when mouse support is on.

Note a new parameter (@yank_wayland_mouse), which is off by default, was introduced so that the old behavior is maintained. That means that users need to set the following in their tmux.conf:

set -g @yank_wayland_mouse 'true'

to enable the above behavior.

Follow the same logic as in X and use the primary clipboard for Wayland
sessions when mouse support is on.

Note a new parameter (@yank_wayland_mouse), which is off by default, was
introduced so that the old behavior is maintained. That means that users
need to set the following in their tmux.conf:

`set -g @yank_wayland_mouse 'true'`

to enable the above behavior.

Signed-off-by: Nuno Sa <noname.nuno@gmail.com>
@nunojsa

nunojsa commented Jul 13, 2023

Copy link
Copy Markdown
Author

@anakimluke

Copy link
Copy Markdown

Hey! Thanks for the PR!
Why have a yank_wayland_mouse option in addition to yank_selection_mouse? I guess your reasoning is to keep backwards compatibility? I think it'd ok not to have it. Only people that have yank_selection_mouse set AND don't use it AND are on wayland would encounter different behaviour, if I understood correctly.

@nunojsa

nunojsa commented Sep 7, 2023

Copy link
Copy Markdown
Author

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants