Discussion:
Run copy-pipe command when leaving selection
Patrick Oscity
2015-01-19 11:01:07 UTC
Permalink
Hi,

First of all I’d like to say that I have used Tmux every single day for a few
months now and love it. Thanks for your work!

I am using copy-pipe to wire up Tmux with my system clipboard on OS X, but it
somehow feels too complicated, because it requires an extra step to get the
copied text into the system clipboard. As far as I know, there are two options
(some key bindings might be specific to my configuration but you get the idea):

a) Use mouse to drag selection
Hit Prefix-Y to write to system clipboard

b) Hit Prefix-V to go into selection mode
Use hjkl to move
Use v to start selection
Use hjkl to move
Hit Y to copy
Hit Prefix-Y to write to system clipboard

Case (a) feels awkward, because it requires an extra switch from the keyboard to
the mouse, even if you plan on using the mouse to paste the text to another
window afterwards.

In case (b) there are already quite a number of keystrokes involved, so it would
be nice if we were able to remove the last step.

I think this problem could be solved by adding an option that would enable users
to run the copy-pipe command directly after exiting the selection, i. e.
simultaneously to or directly after the text is copied to the tmux internal
clipboard. Please let me know what you think about this.

Thanks for your time and your consideration!
Patrick



PS: If you want more detail about my Tmux configuration, you can view it here
https://raw.githubusercontent.com/padde/dotfiles/b91a1d85b23e54e0ef65b6f55d817a4892df7a13/tmux.conf
Nicholas Marriott
2015-01-19 11:12:01 UTC
Permalink
copy-pipe always copies AND pipes.
Hi,
First of all I???d like to say that I have used Tmux every single day for a few
months now and love it. Thanks for your work!
I am using copy-pipe to wire up Tmux with my system clipboard on OS X, but it
somehow feels too complicated, because it requires an extra step to get the
copied text into the system clipboard. As far as I know, there are two options
a) Use mouse to drag selection
Hit Prefix-Y to write to system clipboard
b) Hit Prefix-V to go into selection mode
Use hjkl to move
Use v to start selection
Use hjkl to move
Hit Y to copy
Hit Prefix-Y to write to system clipboard
Case (a) feels awkward, because it requires an extra switch from the keyboard to
the mouse, even if you plan on using the mouse to paste the text to another
window afterwards.
In case (b) there are already quite a number of keystrokes involved, so it would
be nice if we were able to remove the last step.
I think this problem could be solved by adding an option that would enable users
to run the copy-pipe command directly after exiting the selection, i. e.
simultaneously to or directly after the text is copied to the tmux internal
clipboard. Please let me know what you think about this.
Thanks for your time and your consideration!
Patrick
PS: If you want more detail about my Tmux configuration, you can view it here
https://raw.githubusercontent.com/padde/dotfiles/b91a1d85b23e54e0ef65b6f55d817a4892df7a13/tmux.conf
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Loading...