Darren Schroeder
2b9f258126
bump to dev release 0.71.1 ( #7064 )
2022-11-09 13:18:34 +01:00
JT
6cc4ef6c70
bump to 0.71, use 1.63 toolchain ( #7061 )
2022-11-09 06:54:00 +13:00
Stefan Holderbach
611fe41788
Make the example names unique across workspace ( #7046 )
...
Avoids name collision in the target directory when running test
compilation.
cc @rgwood
2022-11-07 09:00:21 +01:00
Stefan Holderbach
5ea245badf
Make example binaries proper cargo examples ( #7019 )
...
Should not be built by default with `cargo build`
Instead are compiled with `cargo test` to avoid bitrot
Run with `cargo run -p ... --example ...`
2022-11-06 11:39:27 -08:00
Alex Saveau
be5d71ea47
Run a round of clippy --fix to fix a ton of lints ( #7006 )
...
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
2022-11-04 15:11:17 -05:00
Stefan Holderbach
2c4048eb43
Refactor ansi stripping into nu-utils
functions ( #6966 )
...
Allows use of slightly optimized variants that check if they have to use
the heavier vte parser. Tries to avoid unnnecessary allocations. Initial
performance characteristics proven out in #4378 .
Also reduces boilerplate with right-ward drift.
2022-11-05 07:49:45 +13:00
Darren Schroeder
bb968304da
bump rust-toolchain to 1.64 ( #7005 )
...
* bump rust-toolchain to 1.64
* 1.64 clippy
2022-11-04 10:27:23 -05:00
Maxim Zhiburt
66c2a36123
table: Show truncated record differently ( #6884 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-10-28 14:00:10 +02:00
Maxim Zhiburt
b2c29117d9
table -e
align key to 2nd line (#6842 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-10-21 06:29:55 -05:00
Maxim Zhiburt
d37e6ba3b5
nu-table: Check perf improvements ( #6710 )
...
* nu-table: Checkout to test vte parsing
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Bump tabled version
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-10-20 07:52:15 -05:00
Darren Schroeder
a724a8fe7d
bump to dev version 0.70.1 ( #6814 )
2022-10-20 18:04:10 +13:00
JT
c731a4e275
Update Cargo.toml
2022-10-19 11:44:04 +13:00
JT
9ef65dcd69
Bump to 0.70 ( #6800 )
2022-10-19 07:13:36 +13:00
Maxim Zhiburt
5921c19bc0
WIP/ Checkout to new tabled
( #6286 )
...
* nu-table/ Use latest tabled
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table/ Fix first column alignment
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Fix cargo clippy
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Fix color issue
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Fix footer row
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Bump tabled
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Bump tabled
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Bump tabled
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Update
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table/ Update
* Use latest tabled
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Add optional -e, -c argument to `table` command for different view
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix clippy
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix clippy
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Update
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix cargo clippy
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix tests
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Add footer into -e/c mode
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Publish new expand mode
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Add width ctrl for Expand mode
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Refactorings
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Refactorings
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Add tests
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Add tests
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Merge with main
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix clippy
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix tests
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix tests
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Bump tabled
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Add record expand and fix empty list issue
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* refactoring
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-10-03 11:40:16 -05:00
Nano
5c99921e15
Table indexes ( #6620 )
...
* Table indexes
* Renamed to `show_table_indexes`
* Renamed to `table_index_mode`
2022-09-28 17:07:33 -05:00
Darren Schroeder
23bba9935f
bump to dev version 0.69.2 ( #6635 )
2022-09-28 17:06:21 -05:00
JT
8a5abc7afc
bump to 0.69.1 ( #6631 )
2022-09-28 15:48:01 +13:00
JT
3beaca0d06
bump to 0.69 ( #6623 )
2022-09-28 07:14:31 +13:00
Justin Ma
4490e97a13
Bump dev version to v0.68.2 ( #6538 )
2022-09-12 08:29:39 +12:00
Justin Ma
c902d8bc0c
bump dev version to v0.68.1 ( #6504 )
2022-09-07 14:27:33 +12:00
JT
9273bb3f72
bump to 0.68 ( #6501 )
2022-09-07 06:29:01 +12:00
Justin Ma
4bbdb73668
Bump dev version ( #6350 )
2022-08-18 21:14:17 +12:00
JT
33674d3a98
bump to 0.67 ( #6336 )
2022-08-17 05:47:47 +12:00
Richard Braakman
6145f734b7
Add repository info to all workspace crates ( #6320 )
...
This helps people who find these crates on crates.io
2022-08-14 07:21:20 -05:00
Darren Schroeder
47ef193600
add rust toolchain file to pin rust version ( #6298 )
...
* add rust toolchain file to pin rust version
* rust 1.63 release, bump toolchain
* linux clippy
* pin to 1.63
* pin to 1.61
2022-08-11 15:45:01 -05:00
JT
121b801baa
bump dev version ahead of language changes ( #6267 )
2022-08-09 08:15:41 +12:00
Justin Ma
767201c40d
bump to 0.66.3 dev version ( #6183 )
2022-07-30 05:48:10 +12:00
JT
e049ca8ebf
bump to 0.66.2 dev version ( #6157 )
2022-07-28 11:38:52 +12:00
JT
d42cfab6ef
bump to 0.66.1 dev version ( #6140 )
2022-07-27 13:15:04 +12:00
JT
c6cb491e77
bump to 0.66 ( #6137 )
2022-07-27 07:56:14 +12:00
Maxim Zhiburt
453c11b4b5
nu-table/ Bump tabled version ( #6097 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-22 10:33:29 -05:00
Maxim Zhiburt
410f3ef0f0
nu-table: Update tests after #6080 ( #6082 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-19 15:16:12 -05:00
Maxim Zhiburt
e5684bc34c
Consider space for single ...
column not enough space ( #6080 )
...
* nu-table: Refactoring
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: consider space for single `...` column not enough space
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-19 12:35:25 -05:00
Maxim Zhiburt
b4a7e7e6e9
nu-table: Add a few tests ( #6074 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-19 12:35:13 -05:00
Maxim Zhiburt
41669e60c8
nu-table: Fix header style (again 2x) ( #6073 )
...
* nu-table: Fix header style
It did appeared again after my small change...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Add a empty header style test
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-18 11:45:21 -05:00
Maxim Zhiburt
d8d88cd395
nu-table: Add suffix coloring ( #6071 )
...
* nu-table: Bump tabled
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Add suffix coloring while truncating
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix cargo fmt
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-17 13:56:31 -05:00
Maxim Zhiburt
7bf09559a6
Refactoring nu_table ( #6049 )
...
* nu-table: Remove unused dependencies
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Small refactoring
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Refactoring
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Refactoring alignments
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Add width check
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table/ Use commit instead of branch of tabled
To be safe
* Update Cargo.lock
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Bump tabled
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-14 15:24:32 -05:00
Maxim Zhiburt
61e027b227
nu-table: Bump tabled to master ( #6038 )
...
There was aparently some debug message on the target commit?
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-13 06:54:49 -05:00
Maxim Zhiburt
58ab5aa887
nu-table: Remove width estimation logic ( #6037 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-13 06:54:03 -05:00
Maxim Zhiburt
2b2117173c
nu-table: Restore atty check ( #6036 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-13 06:49:43 -05:00
Maxim Zhiburt
f2a79cf381
nu-table: Don't show empty header ( #6035 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-13 06:43:39 -05:00
Maxim Zhiburt
8b6232ac87
nu_table: Fix truncating logic ( #6028 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-12 13:35:05 -05:00
Maxim Zhiburt
93a965e3e2
nu_table: Fix style of tables with no header ( #6025 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-12 20:56:36 +03:00
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
Maxim Zhiburt
e4c512e33d
nu-table: Fix wrap logic ( #5998 )
...
Adding space may overflow a cell_width.
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-09 14:55:39 -05:00
Maxim Zhiburt
6802a4ee21
nu-table: Remove a error prone assertion ( #5993 )
2022-07-08 17:00:01 -05:00
Maxim Zhiburt
d1687df067
Give tabled a try ( #5969 )
...
* Drop in replacement from nu-table to tabled.
Must act the same way as original nu-table.
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
Fix some issues
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Bump ansi-str version
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Update to latest
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix footer issue
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix header alignment
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix header style
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Use latest tabled/ansi-str
* Refactorings
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix clippy warnings
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-06 14:57:40 -05:00
Justin Ma
de162c9aea
Bump to 0.65.1 dev version ( #5962 )
2022-07-06 16:25:09 +12:00
JT
0d40d0438f
bump to 0.65 ( #5952 )
2022-07-05 17:54:16 +12:00
Darren Schroeder
8c9dced71b
fix excessive ansi escape sequences ( #5901 )
2022-06-27 18:51:14 -05:00