giusgad / pets.nvim

Display pets in your editor šŸ±

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow pets to move to the left, especially when at the end of the window.

Kyle-Mendes opened this issue Ā· comments

It'd be great if the pets could turn and walk the other way when they wrap off the window instead of snapping back to the start of the pet area!

This should not be hard to implement, but I will need to flip the animation assets to have a walk_left and possibly some other animation. I think I will work on this in the next week or so.

This should not be hard to implement, but I will need to flip the animation assets to have a walk_left and possibly some other animation. I think I will work on this in the next week or so.

Would you be able to use the Kitty drawing API to flip the image instead of duplicating the image assets?

I do not think it's possible, or at least not with hologramā€¦ The same goes for having different pet sizes, the only viable solution seems to be changing the assets.

https://github.com/kovidgoyal/kitty/blob/00e2c66ea36d49f0e5b172c79f7a7dbae7663408/kittens/tui/images.py#L188

It looks to be supported directly from kitty, but maybe not exposed in hologram sadly.