tmux-plugins / tmux-urlview

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

tmux-urlview: it flashes empty for a second and then gone..any clue? #15

Open zeltak opened 8 years ago

zeltak commented 8 years ago

Hi

i have latest tmux and tmux-urlview on arch linux with perl-extract-url installed.

when i press prefix+u i see the bottom tmux-urlview buffer opening for a second and then gone..any clue?

best

Z

bennyty commented 7 years ago

Wanted to let you know I am having the same issue. Running iTerm2, tmux 2.3, latest tmux-urlview, and latest extract_url on OSX 10.11.4

jillesme commented 7 years ago

Me too :( @jbnicolai @raboof ?

sidzwans commented 7 years ago

Have you got Curses::UI installed? It needs to be installed in order for perl-extract-url to produce its Ncurses output. 'perl-curses-ui' in arch linux repo.

And, make sure to set the $BROWSER. If not, set the config in (~/.extract_urlview) minimum with command to be pass to the url, e.g. COMMAND firefox. Check extract_url.pl webpage for more info.

-Regards-

emanresusername commented 7 years ago

the above didn't work for me. i'm on elementaryos loki with linuxbrew installed perl and extract_url and tmux 2.4

sidzwans commented 7 years ago

I am also using tmux 2.4. No problem with that.

What happen when you do this in your terminal?

touch url.txt
echo www.github.com >> url.txt
extract_url url.txt

You should see a window open with that url to choose. If yes... then nothing wrong with your extract_url config. Should be something else.

thallada commented 7 years ago

Hopefully this will help someone else... I was having the same problem, so I tried to install Curses:UI like @sidzwans pointed out (thanks btw). But, I got a compilation error "ncurses.h: No such file or directory". I'm on Ubuntu 16.04, so I fixed it with sudo apt-get install libncurses5-dev and ran sudo cpan Curses:UI again.

perfectayush commented 5 years ago

I was facing this issue on macOS 10.14. After some debugging, I figured that I had this in my .tmux.conf

set -g default-terminal "tmux-256color"

This basically sets TERM env variable to this value. For some reason, urlview and extract_url, both fail with this value. Changing the variable to screen-256color fixed this issue. Check if TERM env var is set to some problematic value.

deybhayden commented 2 years ago

2 years - and I'm gonna post 😅 - I have this today with MacOS + Alacritty + Tmux. My $TERM value is xterm-256color and all other applications are working okay (needed for italics support on macOS 12.1). I can call urlview /tmp/tmux-buffer from a normal shell and everything works, but it fails with split-window. Any ideas denvercoder9?

deybhayden commented 2 years ago

Debugged this - used set remain-on-exit on and found it had the exit code of 127 and urlview couldn't be found (Homebrew install) by tmux. Used the full path and everything worked. In case anyone runs into this issue!

jessebye commented 1 year ago

I'm on MacOS + iTerm2 + tmux. In my case, I needed to create a ~/.urlview with the contents COMMAND open -a firefox %s before this would work.