Comment

Comment by williamcotton

If you're on MacOS an imgcat tool pairs well with an imgpbcopy tool like this:

https://github.com/williamcotton/dotfiles/blob/master/bin/im...

Then create a shell function like:

  imgc() {
    tee >(imgcat "$@") >(impbcopy -) > /dev/null
  }
So you can:

  cat image.png | imgc
Which will then show the image in the console, and if you switch over to another app you can simply paste in the image. And if you create a new file in Preview it will be the image in the paste buffer!

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton