prs icon indicating copy to clipboard operation
prs copied to clipboard

Better layout resizing

Open dhth opened this issue 1 year ago • 3 comments

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

dhth avatar Aug 04 '24 08:08 dhth

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....

image

Originally posted by @ristomatti in https://github.com/dhth/hours/issues/10#issuecomment-2267189681

dhth avatar Aug 04 '24 08:08 dhth

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

dhth avatar Aug 04 '24 08:08 dhth

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:

image

Here's a screenshot of btop doing just that:

image

Another example from ticker:

image

Originally posted by @ristomatti in https://github.com/dhth/hours/issues/10#issuecomment-2267202149

dhth avatar Aug 04 '24 08:08 dhth