1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-04 06:30:45 +02:00
nushell/crates/nu-command
Maxim Zhiburt 183be911d0
Patch after fix after fix 7380 ()
> I'm not sure how i feel about that. I mean if there are a lot of
columns, it should probably have a max width so 1 column doesn't take
the entire width of your screen. Ideally it would work closely like
table worked before we migrated to tabled, as far as how column widths
were allocated.

I believe it still not completely matched.
*To be honest I am not against the  approach.

The PR makes a switch between logics on a premise of `termwidth`.
So if `termwidth > 120` we start prioritizing amount of columns we can
show (We try to show as many columns as we can).
Otherwise we do what I've described in  (We show the least columns
but with least truncation involvement).

In case it's OK,
I guess we could make the value configurable.

cc @fdncred 
ref 

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-12-17 16:16:32 -06:00
..
assets refactor html module () 2022-04-20 08:50:14 -05:00
proptest-regressions/format_conversions add tests, deal with pipes, newlines, tabs for to nuon () 2022-09-01 14:08:19 +02:00
src Patch after fix after fix 7380 () 2022-12-17 16:16:32 -06:00
tests Fix cell path when getting columns of non-records () 2022-12-17 09:14:12 -08:00
build.rs Fix panic when building without git () 2022-08-10 10:31:12 -05:00
Cargo.toml replace lazy_static with once_cell () 2022-12-17 10:30:04 -08:00
LICENSE Include license text in all crates () 2022-04-08 10:47:13 +02:00