lusingander / stu

TUI explorer application for Amazon S3 (AWS S3) 🪣
https://lusingander.github.io/stu/
MIT License
245 stars 8 forks source link

Navigate up/down by display line in object preview #32

Open augustwester opened 2 months ago

augustwester commented 2 months ago

It is currently not possible to move up/down in an object preview, either using k/j or g/G. This would be very nice to have when inspecting the contents of larger files.

As a sidenote, it would also be nice to be able to enter "preview mode" by pressing p while an object is highlighted, instead of having to press Enter and then p.

lusingander commented 2 months ago

It is currently not possible to move up/down in an object preview, either using k/j or g/G. This would be very nice to have when inspecting the contents of larger files.

It seems to be working fine, but could you tell me more about the problem?

As a sidenote, it would also be nice to be able to enter "preview mode" by pressing p while an object is highlighted, instead of having to press Enter and then p.

This might be useful.

augustwester commented 2 months ago

Ah, this might be because I previewed a long JSON file without newlines. The line is wrapped and overflows the preview window, but I am unable to go to the end of the line by scrolling down.

lusingander commented 2 months ago

I see, I understand now. It's true that currently only physical line-by-line scrolling is implemented.

It would certainly be nice to be able to scroll down by each displayed line. There are many things to consider and it becomes complicated, so it is not currently implemented.