Skip to content

Fix table expand wrap in case no header is there - #7605

Merged
fdncred merged 5 commits into
nushell:mainfrom
zhiburt:fix-table-expand-wrap-in-some-cases
Dec 27, 2022
Merged

fdncred merged 5 commits into
nushell:mainfrom
zhiburt:fix-table-expand-wrap-in-some-cases

Conversation

@zhiburt

@zhiburt zhiburt commented Dec 26, 2022

Copy link
Copy Markdown
Contributor

ref #7598

To be honest I was not able to obtain such results in basic mode as you @rgwood.
But I've got it in table -e.

So this must fix the table -e wrapping.

Could you verify if it got fixed?

@zhiburt zhiburt changed the title Fix table expand wrap in some cases Fix table expand wrap in case no header is there Dec 26, 2022
@fdncred

fdncred commented Dec 26, 2022 •

Copy link
Copy Markdown
Contributor

I just realized that if Reilly is using the default config, the problem he showed with 2022 could have been using table -e because of this in the default_config.nu. I'm interested if this PR fixed Reilly's problem too.

    display_output: {
      if (term size).columns >= 100 { table -e } else { table }
    }

@rgwood

rgwood commented Dec 26, 2022

Copy link
Copy Markdown
Contributor

Yep, I'm using the default config.

Before this PR:
image
After:
image

Looks good, thanks for the quick fix @zhiburt!

@fdncred

fdncred commented Dec 27, 2022

Copy link
Copy Markdown
Contributor

let's go! thanks for the fix!

@fdncred
fdncred merged commit 4f812a7 into nushell:main Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants