atanunq / viu

Terminal image viewer with native support for iTerm and Kitty
MIT License
2.53k stars 56 forks source link

Added --blocks flag to force block output #71

Closed joelakuhn closed 3 years ago

joelakuhn commented 3 years ago

I hope I'm not out of bounds with this baby pull request. This just adds a --blocks/-b flag that forces the use of the BlockPrinter. This is helpful because the iTerm png viewer is quite slow, so when displaying a whole directory of images, it's sometimes useful to view them in block mode instead.

atanunq commented 3 years ago

Thanks! I've been thinking of doing something like this for a while. Can you please update the README (at the end) with the new flag before we merge?

joelakuhn commented 3 years ago

Great, I updated it. I'm not sure why clap is putting that option at the top. Even above --help. Since it is though, I put it at the top in the README to match the irl ordering.

atanunq commented 3 years ago

Thanks again :)