shx-for-emacs icon indicating copy to clipboard operation
shx-for-emacs copied to clipboard

shx can't display remote image files

Open ricardog opened this issue 4 years ago • 5 comments

Thank you for developing shx. It really makes emacs shell buffers better.

When I open a remote shell, I can't use the :view command to display an image. I get the following error

ubuntu@vdc:~$ :view Snowflake.png 
convert: unable to open image `/ssh:ubuntu@vdc:/home/ubuntu/Snowflake.png': No such file or directory @ error/blob.c/OpenBlob/2924.
convert: no images defined `/tmp/tmp4vDiai.png' @ error/convert.c/ConvertImageCommand/3229.

Because shx is trying to run convert locally but passing it a tramp file name.

ricardog avatar Feb 22 '21 21:02 ricardog

Yeah, this is definitely something that can be improved. I've got my eyes on it. :)

riscy avatar Feb 27 '21 04:02 riscy

This one is taking a little longer to figure out. I'm not sure why, but running (insert-image (create-image "xyz.png")) in tramp/remote buffer seems to insert an empty square. Meanwhile C-x C-f xyz.png or :e xyz.png opens a buffer with the image correctly displayed.

riscy avatar Jun 06 '21 17:06 riscy

wonder if we're able to make progress on this? really need this feature in my workflow, thanks!

emacsbliss avatar Jun 06 '23 18:06 emacsbliss

Thank you for giving this a bump. I'll prioritize seeing if I can find a way around the the hurdle I encountered in the last attempt.

riscy avatar Jun 10 '23 17:06 riscy