tmux-plugins / tmux-urlview

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

cannot open url to browser #14

Closed AdrienLemaire closed 8 years ago

AdrienLemaire commented 8 years ago

UrlView opens when I press Ctrl-b-u, then pressing Enter on a link prints it as URL: https://... at the bottom of the pane. But then, pressing Enter once more doesn't open the url in the browser. I currently need to to ctrl-b-[-space-b-o to select the url and open it from tmux-open.

I wish a simple Enter would do the same thing, and your gif suggests that this should be the default behavior. Any idea what might be broken ?


Arch Linux termite v11 tmux 2.1 UrlView 0.9

jbnicolai commented 8 years ago

This should definitely be the default behavior.

Could you try echoing a url to urlview outside tmux and see if that behaves as expected?

AdrienLemaire commented 8 years ago

hmm, you're right, it fails outside tmux, and in different terminal. Setting the env BROWSER doesn't help either.

s-kostyaev commented 8 years ago

you need fix /etc/urlview/system.urlview

AdrienLemaire commented 8 years ago

correct, replacing COMMAND url_handler.sh with COMMAND xdg-open fixed the issue.

Thanks!

sebdah commented 6 years ago

Just for anyone else stumbling into this, an alternative to changing /etc/urlview/system.urlview is to add ~/.urlview like this:

COMMAND firefox-developer-edition %s
jtuz commented 5 years ago

correct, replacing COMMAND url_handler.sh with COMMAND xdg-open fixed the issue.

Thanks!

you need fix /etc/urlview/system.urlview

It Work's!, thank you very much