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

table -e doesn't respect truncating setting #7369

Open
kurokirasama opened this issue Dec 6, 2022 · 0 comments
Open

table -e doesn't respect truncating setting #7369

kurokirasama opened this issue Dec 6, 2022 · 0 comments
Labels
tabled Issues about our new table renderer (tabled)

Comments

@kurokirasama
Copy link

Describe the bug

hey @zhiburt, I was told to tag you.

The new display_output hook:

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

doesn't respect truncating settings. Is that by design?
For instance, using the default (>=100) I got this:
Screenshot from 2022-12-04 20-07-27
and a custom (>=160) since my term.size is 159 I got:
Screenshot from 2022-12-04 20-08-15

How to reproduce

already explained

Expected behavior

table -e should follow truncating setting

Screenshots

No response

Configuration

key value
version 0.72.1
branch main
commit_hash 0621ab6
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.65.0 (897e37553 2022-11-02)
rust_channel 1.65.0-x86_64-unknown-linux-gnu
cargo_version cargo 1.65.0 (4bc8f24d3 2022-10-20)
pkg_version 0.72.1
build_time 2022-12-01 18:28:24 -03:00
build_rust_channel release
features database, dataframe, default, trash, which, zip
installed_plugins custom-value generate, gstat, inc, query

Additional context

my $env.config.table.trim looks like this:

methodology wrapping_try_keep_words truncating_suffix
truncating true
@sholderbach sholderbach added the tabled Issues about our new table renderer (tabled) label Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tabled Issues about our new table renderer (tabled)
Projects
None yet
Development

No branches or pull requests

2 participants