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

Better handling of screen width #13

Open
agateau opened this issue Jan 30, 2020 · 1 comment
Open

Better handling of screen width #13

agateau opened this issue Jan 30, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@agateau
Copy link

agateau commented Jan 30, 2020

My terminal is usually setup to use half of my screen width, so that I can have another window to its left or right. I just checked: right now my terminal is 113 chars wide. This is not enough to fit yogit lists, so they wrap around, not looking very nice.

There are several ways this can be improved:

  1. The simplest one would be to drop some columns if there isn't enough space, but that's meh.

  2. A nicer but more complicated one would be to make table rows use two lines. For example yogit pr list output could be formatted like this:

CREATED       URL                                                                              MERGEABLE
------------  -------------------------------------------------------------------------------  ---------
2 days ago    Do something about the format                                                    MERGEABLE
              https://github.com/G********e/g************b/pull/826
3 days ago    Implement some nice iprovements                                                  MERGEABLE
              https://github.com/G********e/g*******************p/pull/500
13 days ago   Develop a wonderfully broken helper tool                                         CONFLICTING
              https://github.com/G********e/g**************s/pull/2844
223 days ago  Fix memory leaks                                                                 CONFLICTING
              https://github.com/G********e/g*********************g/pull/123
223 days ago  Fix more memory leaks                                                            CONFLICTING
              https://github.com/G********e/g**************s/pull/2742
223 days ago  Fix even more memory leaks                                                       MERGEABLE
              https://github.com/G********e/g***************************************u/pull/55
Count: 6
  1. Some columns can be made thinner, for example you can replace CREATED with AGE, so that the cells can say 223 days instead of 223 days ago, or even 223 d in case the screen width is too small.
@hasboeuf hasboeuf added the enhancement New feature or request label Mar 5, 2020
@hasboeuf
Copy link
Owner

hasboeuf commented Mar 5, 2020

Thank you for your feedback, it's an interesting one! I will see what I could do.

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

No branches or pull requests

2 participants