hpjansson / chafa

📺🗿 Terminal graphics for the 21st century.
https://hpjansson.org/chafa/
GNU Lesser General Public License v3.0
2.99k stars 63 forks source link

Interactive mode #25

Open evert-mouw opened 5 years ago

evert-mouw commented 5 years ago

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 ;-)

hpjansson commented 5 years ago

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.

drazil100 commented 2 years ago

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

hpjansson commented 2 years ago

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.

cdluminate commented 2 years ago

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.