nushell/crates/nu-table/src
Maxim Zhiburt 217c2bae99
Move wrap responsibility on tabled (#5999)
* nu_table/ Replace wrap.rs logic by tabled::Width::wrap

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>

* nu_table: Rename wrap.rs to width_control.rs

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>

* nu_table: Add configuration of trimming

```
let-env config = ($env.config | upsert table_trim { methodology: 'wrapping', wrapping_try_keep_words: false })
let-env config = ($env.config | upsert table_trim { methodology: 'truncating', truncatting_suffix: '...@@...' })
```

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>

* nu_table: Fix right padding issue

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>

* nu_table: Fix trancate issue

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>

* nu_table: Fix spelling in config

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>

* nu_table: Update tabled dependency

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>

* Update default_config.nu with a table_trim options

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-12 11:23:50 -05:00
..
lib.rs Move wrap responsibility on tabled (#5999) 2022-07-12 11:23:50 -05:00
main.rs Give tabled a try (#5969) 2022-07-06 14:57:40 -05:00
table_theme.rs Give tabled a try (#5969) 2022-07-06 14:57:40 -05:00
table.rs Move wrap responsibility on tabled (#5999) 2022-07-12 11:23:50 -05:00
textstyle.rs Give tabled a try (#5969) 2022-07-06 14:57:40 -05:00
width_control.rs Move wrap responsibility on tabled (#5999) 2022-07-12 11:23:50 -05:00