Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy, cutting and pasting do not work #50

Open
wilhem opened this issue Aug 2, 2024 · 1 comment
Open

Copy, cutting and pasting do not work #50

wilhem opened this issue Aug 2, 2024 · 1 comment

Comments

@wilhem
Copy link

wilhem commented Aug 2, 2024

I have the last version.
Everything works as expected, but when in a terminal I highlight a test or a line with the cursor to copy or cut it, then it loses the selection and nothing is copied into the memory buffer.
By right clicking with the mouse over a selected text does not open any menu for copying, cutting or pasting.
Even the middle wheel of the mouse does not copied the selected text.

By the way: without using Catmux, everything works perfectly in the terminal.
I'm using bash

@fmauch
Copy link
Owner

fmauch commented Aug 4, 2024

Text selection and copying is a bit different in tmux. You basically have a couple of options:

  • Press shift while doing mouse selections. This will be piped to your terminal emulator ignoring that there is a tmux session running. Hence, it will go over to other tmux splits. With this, you can copy&paste using the normal CTRL-Shift-C and CTRL-Shift-V combinations.
  • Use the primary clipboard directly (see e.g. the Arch Wiki for different clipboard types). When you select a text with the mouse, the selection will disappear, but the selected text is in your primary clipboard already. You can paste that text somewhere else using the middle button of your mouse.
  • Use the tmux copy command y. Select your text, keep holding your mouse button and press y. Now, the text will be in your secondary clipboard. You can paste that somewhere else just as usual.

I might want to change the default tmux config, but honestly I haven't found a solution that seems fully intuitively replacing the default shell behavior.

I hope, that helps?

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

No branches or pull requests

2 participants