Better layout resizing
Describe the solution you'd like Better handling of window resizing
Is your feature request related to a problem? Please describe. Space is unused when window size is above a certain threshold. Conversely, information gets crammed when size is below a threshold as well.
Describe alternatives you've considered NA
Additional context Originally posted in https://github.com/dhth/hours/issues/10
Yup that would fill the need for hours or omm as they only have few columns.
I have a few ideas to consider in case you happen to be interested in experimenting. I'll use prs as an example since it has more information to display. Also because I realized I seem to have some pretty ancient open PR's that are perfect to higlight the issues/ideas. 🙂
I'll let my MS Paint style annotations speak for themselves....
Originally posted by @ristomatti in https://github.com/dhth/hours/issues/10#issuecomment-2267189681
Other suggestions that might be more work to implement:
- Wrap long PR tittles instead of truncating
- On small windows(*), display the fields as a list instead of columns
Originally posted by @ristomatti in https://github.com/dhth/hours/issues/10#issuecomment-2267194081
One more suggestion. It might be preferable to to just refuse to render at some point instead of trying to fit everything when the terminal size shrinks past a specified limit:
Here's a screenshot of btop doing just that:
Another example from ticker:
Originally posted by @ristomatti in https://github.com/dhth/hours/issues/10#issuecomment-2267202149