riscy / shx-for-emacs

An Emacs shell-mode (and comint-mode) extension that enables displaying small plots and graphics and lets users write shell commands in Emacs Lisp.
GNU General Public License v3.0
218 stars 10 forks source link

shx can't display remote image files #28

Open ricardog opened 3 years ago

ricardog commented 3 years ago

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.

riscy commented 3 years ago

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

riscy commented 3 years ago

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.

emacsbliss commented 1 year ago

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

riscy commented 1 year ago

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.