--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/acf636b2-324a-48da-aa43-2a561f1f4dc8n%40googlegroups.com.
I did. That was where I found all the references to binding keys
for xsel.
However, I looked at it again, and found the section where it said that xterm supported OSC 52. So I configured the required:
XTerm*disallowedWindowOps: 20,21,SetXprop
I'm trying to simply highlight the text with the mouse -- which does highlight, and then use the "Copy ..." contexts menu that comes up to copy to the system clipboard. This works fine on my Mac -- just not on Linux.
I've also tried entering copy mode, selecting the start and end
via keyboard -- and that also doesn't work.
-- Eric
Have you tried setting up the tmux-yank plugin? That is what I am
using to copy to the clipboard, together with xsel.
--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/a762d782-bc3b-71f8-e721-c1f41167694d%40swenson.org.
No I haven't. I'll look for that plugin and try it. Thanks.
I'm wondering, however, whether my issue has something to do with SSH (remote access). I just tried an experiment:
From xterm on my Ubuntu 22.04 LTS system, I proved to myself that X windows copy/paste worked fine. Then I started up tmux, and tried selecting with mouse and pasting in the tmux window. That worked fine too. Then I exited tmux, and SSH'ed to my VPS. I tried X windows style copy/paste, and this worked fine (not running tmux remotely yet). Then I started up tmux (the use case that I need to get working) from my SSH session on the VPS. Now, copy/paste dosn't work any more. tmux enters copy mode when I use the mouse, highlights the text when I select it with the mouse, gives me a popup menu that offers to copy the line, and when I select that menu item and release the mouse, and try to paste the result, I get nothing.
So it is the combination of SSH and tmux that prevents tmux from letting me copy/paste. Does that suggest anything?
-- Eric
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/758f6195-9faf-e618-b9bc-aa319354cf9e%40gmail.com.
So I tried this again after verifying that I was accessing my VPS
from an xterm window, with "ssh -X", and that my tmux on the VPS
had the proper set-clipboard setting (external), that "tmux info |
grep Ms" showed the proper string, I bound copy-mode C-w as such:
bind -Tcopy-mode MouseDragEnd1Pane send -X copy-pipe-and-cancel 'xsel -i'
and things are acting differently -- although not yet what
I want. First of all, when I'm running irssi in the tmux
session, I can select a URL (the use case I want to work) with
the mouse, and have it immediately get copied. I can then
immediately paste it with a middle-mouse click in tmux. I can
also (much more importantly) go to a Terminal window on my local
Ubuntu machine, and use the middle-mouse button to paste it in
the shell. However, what I really want to be able to do is to
paste that URL into a browser address bar. That doesn't work. A
yucky workaround is to paste the URL into a terminal shell, and
then use Control-Shift-C to copy it to the *real* system
clipboard, and then I can paste it into the address bar of the
browser.
But it shouldn't be this difficult. On macOS, I can simply
select the URL (in the irssi/tmux/ssh remote session) and paste
it directly into my browser's address bar.
Given that I am now managing to get the string copied such
that I can paste it in a terminal shell (didn't use to be able
to do that, so progress), why can X paste it into the GNOME
Terminal, but not make it to whatever system clipboard is
necessary to allow me to paste it into a browser (Brave, like
Chrome) browser?
-- Eric
I forgot to send this before the last message I sent to the list:
Ah. There is some interference here. The use case I was *really* trying to get working was copying text from an irssi client running within a tmux session on a remote host accessed with ssh.
It would appear that the popup is coming from irssi. If I use
another tmux window (not running irssi), I can select text with a
mouse, and have it immediately "copied" (somewhere) when I
release. However, it still never makes it to my system clipboard
(local system).
Let me re-check everything in my tmux configuration on the remote
system. I'd really not like to be required to use xterm and X (as
well as X forwarding over SSH), but I will do that if necessary.
<I've done the above and sent the results in my previous message to the list>
-- Eric
--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/3720337d-f987-aae6-999e-a9419f34a2e1%40swenson.org.
On Jun 6, 2023, at 19:58, Scott Rochford <annihi...@gmail.com> wrote:
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/4ca40301-f150-d32a-ded7-eebb4f3e5fba%40swenson.org.
If would appear that all my issues were due to my using "set -g mouse on" in my .tmux.conf on the remote computer. Turning off mouse mode allows me (now) to copy URLs and other text from my irssi tmux session and paste them in the command line or in the browser with no issues.
Thanks all for your help on this matter. I will learn to deal
without mouse mode!
-- Eric