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

Scrolling with Mousewheel AND copy-paste text without any shortcut #43

Open
francwalter opened this issue Mar 11, 2021 · 0 comments
Open

Comments

@francwalter
Copy link

francwalter commented Mar 11, 2021

Hello

One thing I hate since the beginning in tmux is that I have to switch the mouse on/off if I either want to scroll up/down or if I either want to copy text with the mouse (by just selecting it) and paste it by mouse rightclick. So normally I have mouse off (set-option -g mouse off).

I just found this plugin and thought with this I could solve this issue but I don't get it.
Is this ever possible?

E.g.: In tmux I have a logfile opened with vim and want to scroll down the text with the mouse (mouse on). Now I want to copy some lines and want to paste them at another spot.
Not possible, need mouse off for that.

Better example: I have in a tmux window some folder with a lot of files. I do some ls -al to show them all. With mouse on I can scroll the list up, because the actual window only shows the last ones, but I cannot select and copy anything in the list. With mouse off I can select and copy only the visible part of the list, if I want to copy text from the not visible files I need to switch mouse on, scroll, switch mouse off, select-copy. Very unhandy.
If I scroll with mouse off I scroll in the terminal history but not in the ls- al list.
Here screenshot from what I mean:

After the command ls -al:
grafik

Scrolling up with mouse off doesnt scroll the file list:
grafik

Scrolling up with mouse on scrolls the file list but now I cannot select-copy:
grafik

Another example, which I have very often is some output or file I want to copy. I cannot copy and scroll together in tmux, only without tmux.

I dont understand why I cannot have both in tmux like in normal terminal.

Can I use this plugin to do that or is that just impossible?

Thanks.
frank

tmux 2.6 on Ubuntu 18.04

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

1 participant