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

Always pretty print binary values in table #12294

Merged
merged 2 commits into from
Mar 26, 2024
Merged

Conversation

IanManske
Copy link
Member

@IanManske IanManske commented Mar 26, 2024

Description

Binary values passed to table may or may not be pretty formatted based on the output destination. This leads to weird behavior as documented in #12287. This PR changes table to always pretty print binary values. However, binary values passed to external commands will not be formatted (this is the existing behavior).

User-Facing Changes

This is a breaking change. E.g.:

0x[8989] | table | cat -

used to print raw bytes, but it will now print the pretty formatted bytes.

After Submitting

Add to 0.92.0 release notes and update documentation.

@IanManske IanManske added pr:breaking-change This PR implies a change affecting users and has to be noted in the release notes pr:bugfix This PR fixes some bug pr:commands This PR changes our commands in some way labels Mar 26, 2024
@IanManske IanManske linked an issue Mar 26, 2024 that may be closed by this pull request
@fdncred
Copy link
Collaborator

fdncred commented Mar 26, 2024

I was worried that this would break some of the open -r Cargo.toml | into binary | last/skip/take/first 100 functionality but it seems to all work fine. Thanks!

@fdncred fdncred merged commit b752fdb into nushell:main Mar 26, 2024
15 checks passed
@texastoland
Copy link
Contributor

Verified fixed in nushell/nushell.github.io#1312! @IanManske That was inhumanly fast you're a hero 🎖️

@hustcer hustcer added this to the v0.92.0 milestone Mar 27, 2024
@IanManske IanManske deleted the table-binary branch April 28, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:breaking-change This PR implies a change affecting users and has to be noted in the release notes pr:bugfix This PR fixes some bug pr:commands This PR changes our commands in some way
Projects
None yet
Development

Successfully merging this pull request may close these issues.

regression(0.91.1): binary | each { table }
4 participants