tmux-plugins / tmux-urlview

Quickly open any url on your terminal window!
MIT License
262 stars 32 forks source link

How to use this in a remote tmux session? #26

Open fent opened 5 years ago

fent commented 5 years ago

So this issue isn't directly related to tmux-urlview, but wondering if anyone else out there has this workflow.

I'm running a remote tmux session that I'm ssh'ing into. I have panes in this session that include urls, if I use urlview from a local tmux, the urls might be cut off, because the local tmux doesn't know about the panes from the remote tmux.

But if I were to use urlview from the remote tmux, it can't open my browser that I'm running on my computer, because it's running on a different server somewhere else. The best I can do is to use xclip to yank these urls in the remote session, and then on my computer, paste the url into my browser. Is there a better way? Like a x-open or x-open-url?

yjyao commented 4 years ago

Have you figured out a solution yet? I've been wondering the same thing too.

fent commented 4 years ago

I haven't. but I suppose now I need this less since my workflow has changed a bit.

still, it would be nice to have. some solutions could be

it would print

hello
world
----
   1 2 3 4
   5 6 7 8
----
the quick fox jumped
over the lazy

which could then be given to urlview. it wouldn't be perfect, a url could end, right at the end, making it difficult to know if the characters from the next line are part of the url or not.