imgcat icon indicating copy to clipboard operation
imgcat copied to clipboard

doesn't work with tmux on MacOS

Open thomasd3 opened this issue 4 years ago • 6 comments

when invoked from a tmux window, the display seems to show a base64 version of the image file

thomasd3 avatar Mar 24 '20 14:03 thomasd3

Hi! Could you please list the versions of tmux and iTerm 2 you're using? Also, are you using regular tmux or tmux integration mode?

eddieantonio avatar Mar 24 '20 14:03 eddieantonio

I'm using iTerm2 version 3.3.9 and tmux 3.0a

I'm not using the integration mode because I didn't know what it was until I read your question :) now I will look into it! thanks!

thomasd3 avatar Mar 25 '20 10:03 thomasd3

Hi. I am having this issue to. I am using regular tmux in iTerm, but also have tried in Alacritty with tmux and still no images. This is tested using ranger, which works in a regular iTerm session, but not in tmux. Therefore, seems to be a problem between tmux and imgcat.

~
❯ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.15.7
BuildVersion:   19H15

~
❯ ranger --version
ranger version: ranger 1.9.3
Python version: 2.7.16 (default, Jun  5 2020, 22:59:21) [GCC 4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.29.20) (-macos10.15-objc-
Locale: None.None

~
❯ tmux -V
tmux 3.1c

~
❯ imgcat --version
imgcat 2.5.0

~
❯ alacritty -V
alacritty 0.5.0 (a6681e3)

iTerm2 Build 3.4.1

atanasj avatar Nov 25 '20 01:11 atanasj

@atanasj I'm seeing the same thing. imgcat works for me in an iTerm2 terminal, but not in a Tmux window.

mvolkmann avatar Mar 25 '21 21:03 mvolkmann

Note to self: this is a way of working with tmux:

https://github.com/wookayin/python-imgcat/blob/d77d57fd289dac1d486ee8ee22169844f62046bd/imgcat/iterm2.py

eddieantonio avatar Aug 25 '21 16:08 eddieantonio

@eddieantonio, that looks promising… How best to get this running inside tmux on alacritty I wonder…

atanasj avatar Aug 31 '21 07:08 atanasj