chafa icon indicating copy to clipboard operation
chafa copied to clipboard

Interactive mode

Open evert-mouw opened this issue 6 years ago • 4 comments

Chafa gave me a lot of fun already. Pretty amazing. I'm still hoping for more Sixel support on mainstream terminals, but the tricks employed by chafa are fun to show in a command line emailer like mutt :-) Now I have a feature request... it would be cool to be able to press + for zooming, and then '-' of course to go back a zoomlevel. Also when zoomed in, it would be nice to move around with the arrow keys. In that way, one could zoom in to see details. E.g. you could suddenly read some text when zooming in. But I don't know if it is hard to implement. It is mostly for fun anyway. It would be cool though ;-)

evert-mouw avatar Jan 16 '19 16:01 evert-mouw

Thanks for filing the issue! It's not too hard to do, it just requires an interactive mode similar to what's been discussed in issue #23.

hpjansson avatar Jan 16 '19 18:01 hpjansson

+1 for interactive mode! Would be really nice to be able to zoom in and out.

drazil100 avatar Apr 28 '22 01:04 drazil100

This is definitely happening. I just need to lay some more of the groundwork first: The idea is to add a couple of classes to the library backend that can integrate with the GLib main loop and push incremental updates and such, and then in the frontend add an -i or --interactive switch that activates a UI-driven mode using the new functionality. Then we can do all kinds of fun stuff.

hpjansson avatar May 09 '22 17:05 hpjansson

awesome! I'd request for vim-style keybinding for the interactive mode. up, down, left, right are also mapped to h, j, k, l zoom in / out (+/-) are also mapped to page up/ down, as well as ctrl+u, ctrl+d.

cdluminate avatar May 09 '22 17:05 cdluminate