nushell/crates/nu-table/src
Maxim Zhiburt 0ab6b66d8f
nu-table/ Fix --collapse wrap/truncate [WIP] (#8042)
close #8034

So it's actually a work around to do "our best".

We basically try 3 attemps to build a table with each time truncating
values bigger then (termwidth/2, termwidth/4, termwidth/8).

PS1: The logic is kind of not ideal need to think about it.

_______________

PS2:
I've just noticed that multi-line key behaves strangely; (not sure
whether it's caused by this wrap (unlikely))
Need to investigate this.

I'd bet it's a multiline key.


![image](https://user-images.githubusercontent.com/20165848/218267237-6b7ee9af-675a-428e-92cd-65808cec50f0.png)

---------

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2023-02-22 14:10:17 +00:00
..
lib.rs color_config now accepts closures as color values (#7141) 2022-12-17 07:07:56 -06:00
nu_protocol_table.rs nu-table/ Fix --collapse wrap/truncate [WIP] (#8042) 2023-02-22 14:10:17 +00:00
table_theme.rs nu-table/ table --collapse style fix (#8041) 2023-02-16 19:32:07 +00:00
table.rs with the release of rust 1.67, let's bump to 1.66.1 (#7866) 2023-01-26 15:31:17 -06:00
util.rs Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00