New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
image preview feature not work in OSX #864
Comments
Have you tested running on |
Yes. Same results |
I found a way to make it work. Open iTerm and run this command :
Once this is done, open your
Let me know if it worked for you. |
It does not work for me. What version of python do you use? |
I use python 2.7.13. If you can try to use this version to see if it changes something. |
I followed your steps, with both the brew version and the master version with no results. :( |
All right we can try another thing, in your
Set it to |
Hey are you running ranger inside of tmux by any chance ? |
I try everything in and out of Tmux. |
Well then I don't know what to do, sorry |
Howdy. I'm using ranger in tmux and the image preview doesn't work. Works outside of tmux but I sure would like it if it worked inside of it. I followed the steps mentioned here but no luck #864 (comment) If anyone has any ideas as to why tmux might break this please let me know! |
@toonn I didn't get it to work... the problem persists. |
Could you remove your |
@toonn I don't have any scope.sh |
Did you comment out or remove the set preview_script line? And try running ranger with the |
I have image previews working for me in iterm2 both in and out of tmux, but if I am inside tmux I can only preview images that are under ~85k. Is there any setting I can add to make it work better in tmux? |
Not that I know of sadly. |
@BenBergman any chance you could share what your config looks like? I'm in tmux + iTerm as well. |
@toonn This is the entirety of my
And my
|
Update — the above does work in iTerm 2. It just doesn't work in tmux + iTerm 2. As said a few times in this issue, it's anticipated that image preview won't work in tmux. If anyone knows how to get it to work I'm all ears, but as far as I'm concerned this issue is resolved for me since it is working in iTerm 2 and has been explicitly stated that it won't work in tmux. |
@jsatk Here is my That file was either auto generated or I stole it from somewhere as I don't recall ever editing it before, at least not all of those lines. I also tossed in my In case it is relevant, I also use |
I'm closing this in the hope that #1601 fixed it. |
I meet the same problem. it works outside of tmux, but inside tmux, it cannot work. this issue has already fixed, or not ? |
Yes, but I doubt you're running 1.9.3 already? |
my ranger‘s version: 1.9.3 ➜ /Users/jack >ranger --version |
Then you're probably trying to preview "large" images. Tmux prevents images larger than a couple kB from being shown. Nothing we can do about that. |
Thank @Wes974. It works perfectly. However, it asked me permission to allow download of files by iterm2. Does this method download images somewhere? |
Maybe iTerm2 doesn't include the imgcat functionality necessary for the previews but is able to download it automatically? No idea though, never heard of this. |
ISSUE TYPE
RUNTIME ENVIRONMENT
Python 2.7.10 (default, Feb 6 2017, 23:53:20)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
EXPECTED BEHAVIOR
Preview images
CURRENT BEHAVIOR
No pictures are shown
CONTEXT
POSSIBLE SOLUTIONS
STEPS TO REPRODUCE
TRACEBACK
IMAGES / VIDEOS
The text was updated successfully, but these errors were encountered: