wtfutil / wtf

The personal information dashboard for your terminal
http://wtfutil.com
Mozilla Public License 2.0
15.85k stars 803 forks source link

Full-screen layout doesn't quite work as it should #573

Closed NSMyself closed 5 years ago

NSMyself commented 5 years ago

What's broken?

In macOS Mojave, the layout isn't displaying correctly when in fullscreen. Here's a screenshot I took when running wtfutil in iTerm (Zsh).

Screenshot 2019-08-30 at 10 31 43
v-braun commented 5 years ago

Hey @NSMyself, I have the same issue when I tried wtfutil the first time a few days ago. Maybe this is a new bug in the current version of tview.

I tried different cell layouts and find out that not specifying a grid works best for me. My current config looks like this:

  grid:
    # How _wide_ the columns are, in terminal characters. In this case we have
    # four columns, each of which are 35 characters wide.
    # columns: [50, ]
    # How _high_ the rows are, in terminal lines. In this case we have four rows
    # that support ten line of text and one of four.
    # rows: [50]

As long I not define column and rows it looks good in fullscreen for me.

NSMyself commented 5 years ago

Awesome @v-braun! Thanks for this

senorprogrammer commented 5 years ago

In that case it dynamically expands all widgets to equally fill the available screen space. Which is a good solution.

webdog commented 2 years ago

Perhaps this changed, I had to remove the entire grid: block from root-level of the yaml config, rather thank leaving grid: section empty, with the key still present as shown above.

Errors:

  grid:
    # How _wide_ the columns are, in terminal characters. In this case we have
    # four columns, each of which are 35 characters wide.
    #columns: [35, 35, 35, 35]
    # How _high_ the rows are, in terminal lines. In this case we have four rows
    # that support ten line of text and one of four.
    #rows: [10, 10, 10, 10, 4]
ERROR 'grid' config values are invalid. 'columns' and 'rows' cannot be empty.

This is invalid:

  grid:
    columns: []
    rows: []

Works:

  #grid:
    # How _wide_ the columns are, in terminal characters. In this case we have
    # four columns, each of which are 35 characters wide.
    #columns: [35, 35, 35, 35]
    # How _high_ the rows are, in terminal lines. In this case we have four rows
    # that support ten line of text and one of four.
    #rows: [10, 10, 10, 10, 4]