kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.15k stars 972 forks source link

kitty @ kitten icat/diff not working #2012

Closed MrBobot closed 5 years ago

MrBobot commented 5 years ago

Hi

I tried displaying an image into a secondary window using the syntax kitty @ kitten -m title:Title icat filename. The image displays just fine using kitty +kitten icat filename syntax.

Also tried kitty @ new-window --match title:ImageViewer kitty +kitten icat filename, what i see really quickly is a new window open and message ImageMagick is required to process image

Also tried kitty @ kitten -m title:Title diff file1 file2 and it also didn't display the diff in the secondary window but in the one I typed the command in. Perhaps I've misunderstood the use of the kitty @ kitten syntax ?

This is on Mac OS Mojave 10.14.5

kovidgoyal commented 5 years ago

You want

kitty @ new-window bash -c "kitty +kitten icat whatever; read"

The icat kitten exits after displaying the image so you cant run it directly in a new window, or the ne window will close immediately.

MrBobot commented 5 years ago

Thanks for the prompt response, however I still get the message ImageMagick is required to process images

kovidgoyal commented 5 years ago

Then make sure imagemagick is in your system-wide path or run the shell with the --login argument to make sure it reads your rc files.

MrBobot commented 5 years ago

Awesome that did the trick ! Thanks very much.