Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying long images starting from the top instead of the bottom #99

Open
sweetbbak opened this issue Jan 24, 2023 · 1 comment
Open

Comments

@sweetbbak
Copy link

sweetbbak commented Jan 24, 2023

Hey, I love your work with timg! I primarily use kitty and timg to view images and I was wondering if you possibly had a solution for really long images displaying starting from the bottom. Opening a long image in the terminal (around 1000px) will display the image starting at the bottom of the image and the content Im trying to view is meant to be read from top to bottom so I have to scroll to the top and then scroll back down and repeat this for each image.

Then I noticed that using timg's scroll flag, it will open the image at the top of the image and scroll from left to right. So I was wondering if there was a way to force the image to be loaded starting at the top or if maybe there was some kind of workaround that I could implement to achieve this?

The vertical delta scroll is amazing btw, this solves an issue with a project that I have been working on for some time now. I appreciate timg a ton.

Thank you!

@hzeller
Copy link
Owner

hzeller commented Jul 1, 2023

I don't think it is possible to load an image that is longer than the terminal and then jump back the scrollbar to the point where the image starts. At least I am not aware if terminals allow for that control via escape codes.

So the best bet is indeed using the scroll mode with delta that scrolls up --delta-move=0:1 --scroll (or, use negative number to scroll up).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants