nixers
ranger + images + tmux - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Operating Systems & Administration (https://nixers.net/Forum-Operating-Systems-Administration)
+--- Forum: GNU/Linux (https://nixers.net/Forum-GNU-Linux)
+--- Thread: ranger + images + tmux (/Thread-ranger-images-tmux)


ranger + images + tmux - xero - 17-12-2014

so i got ranger and w3m setup for image previews. but it doesn't work with tmux (which these days 99% of my term action happens there). i see lots of ranger love in nixer's scrots and wondered if any of you had hacks to make it work. there's a pr on github to make it "work" but people reported it misaligned and when i tried to compile it it crashed tmux for me.

anybody have it working?


RE: ranger + images + tmux - pvtmert - 21-12-2014

are you using framebuffer? then you can use some trick i think z3bra or somebody else from here found...


RE: ranger + images + tmux - xero - 22-12-2014

no. i'd love some more info about it...


RE: ranger + images + tmux - rwzy - 22-12-2014

pvtmert, are you referring to http://blog.z3bra.org/2014/01/images-in-terminal.html?


RE: ranger + images + tmux - xero - 23-12-2014

if so, i have already read that article. w3m is the engine that ranger uses to draw image previews.


RE: ranger + images + tmux - rwzy - 24-12-2014

yeah i wanted pvtmert to clarify, in case z3bra found a new trick or something


RE: ranger + images + tmux - angelicsedition - 09-03-2015

It may be a bit late to mention this, but image preview has been working with tmux since February 2014. Whatever PR you are referring to is probably old. The newest ranger "version" is very old (one in any official repos), but if you've installed the latest ranger on github (manually, from the aur, etc.), there should be no problem displaying images in tmux.


RE: ranger + images + tmux - b4dtR1p - 20-03-2015

many many tnks angelicsedition!


RE: ranger + images + tmux - xero - 20-03-2015

@angelicsedition

THANX!!!! the ranger-git package from the aur worked perfectly!


RE: ranger + images + tmux - zr0 - 21-03-2015

OK now Ranger image preview works ok on TMUX but why does not respect the borders, and if i comment the ( set preview_images true ) the ascii works fine and respect the borders. I want image to respect borders and resize perfect inside Ranger borders. I think im asking to much :(

Tmux + Ranger - ASCII
[Image: wRTt2m0.png]

Tmux + Ranger - W3M Image Preview :(
[Image: 7FO3NjF.png]



RE: ranger + images + tmux - xero - 23-03-2015

yup zr0, same thing here. in a single tmux pane it seems to be ok. but as soon as you split it, things get weird. we're getting there, better than nothing IMHO!


RE: ranger + images + tmux - actionless - 25-01-2016

also, i tested with `xterm`, `urxvt` and `st` and it seems like it's working only in `xterm`


RE: ranger + images + tmux - XcelQ - 25-01-2016

i use tmux in xfce4-terminal. it works for my needs.


RE: ranger + images + tmux - stephant - 02-06-2016

Doesn't work w3imagedisplay on Gentoo with latest ranger-git, but ASCII images showed in terminal.
Tested under python 2.7 & 3.4.


RE: ranger + images + tmux - venam - 02-06-2016

(02-06-2016, 04:23 AM)stephant Wrote: Doesn't work w3imagedisplay on Gentoo with latest ranger-git, but ASCII images showed in terminal.
Tested under python 2.7 & 3.4.
You'll have to give more information than just "it doesn't work".
Try to join the support IRC for w3m if there is any.


RE: ranger + images + tmux - stephant - 02-06-2016

I mean the image not showed, probably i don't updated the old config file and thinkable the preview not work.