-
Notifications
You must be signed in to change notification settings - Fork 121
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
yank default action for TMUX > 2.4 + MouseDragEnd1Pane #104
Conversation
Your current implementation in this PR is against the Linux convention. When we press Lines 21 to 22 in feb9611
Lines 128 to 131 in feb9611
However selecting text with a mouse should only affect |
If I would remove the |
I have one more suggestion - set the default value of I'm not an official maintainer of this project, but besides these two comments it seems OK to me 👍 |
I removed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks!
This will make life much better. Please merge soon! |
@kaliberr44
Perhaps you could repackage what you did coupled with this as a |
What's the status of this PR? I guess lots of |
I've tried to set
But I still get kicked out from copy mode after I press |
Have you restarted tmux? It worked for me. |
@maximbaz what os/terminal/tmux do you use?
|
Try to reproduce also without using a mouse, enter copy mode, scroll up, select something and press As for preserving the scroll after mouse selection, I have this in my
Full config for reference: https://github.com/maximbaz/dotfiles/blob/master/.tmux.conf Note, I'm not using
|
Well, it kind of works when I use keyboard only. Also, your |
I hoped that |
Yes, that's exactly how it looks for me - selection stays and you are not scrolled back to the bottom. I guess it has to be a combination of |
@maximbaz thanks for help. I consider clearing selection and staying in copy mode very cool, so if anyone knows how to achieve this, please let us know. |
@maximbaz I've managed to bind keys like this:
I guess |
Added @yank_action for user to be able to choose copy-pipe or copy-pipe-and-cancel when yanking without put.
Also added MouseDragEnd1Pane so you don't have to press y after selecting with mouse.