Maxim Zhiburt
33aea56ccd
Try to fix #7380 ( #7446 )
...
fix https://github.com/nushell/nushell/issues/7380
2022-12-15 08:47:04 -06:00
Maxim Zhiburt
718ee3d545
[MVP][WIP] less
like pager ( #6984 )
...
Run it as `explore`.
#### example
```nu
ls | explore
```
Configuration points in `config.nu` file.
```
# A 'explore' utility config
explore_config: {
highlight: { bg: 'yellow', fg: 'black' }
status_bar: { bg: '#C4C9C6', fg: '#1D1F21' }
command_bar: { fg: '#C4C9C6' }
split_line: '#404040 '
cursor: true
# selected_column: 'blue'
# selected_row: { fg: 'yellow', bg: '#C1C2A3' }
# selected_cell: { fg: 'white', bg: '#777777 ' }
# line_shift: false,
# line_index: false,
# line_head_top: false,
# line_head_bottom: false,
}
```
You can start without a pipeline and type `explore` and it'll give you a
few tips.
![image](https://user-images.githubusercontent.com/343840/205088971-a8c0262f-f222-4641-b13a-027fbd4f5e1a.png )
If you type `:help` you an see the help screen with some information on
what tui keybindings are available.
![image](https://user-images.githubusercontent.com/343840/205089461-c4c54217-7ec4-4fa0-96c0-643d68dc0062.png )
From the `:help` screen you can now hit `i` and that puts you in
`cursor` aka `inspection` mode and you can move the cursor left right up
down and it you put it on an area such as `[table 5 rows]` and hit the
enter key, you'll see something like this, which shows all the `:`
commands. If you hit `esc` it will take you to the previous screen.
![image](https://user-images.githubusercontent.com/343840/205090155-3558a14b-87b7-4072-8dfb-dc8cc2ef4943.png )
If you then type `:try` you'll get this type of window where you can
type in the top portion and see results in the bottom.
![image](https://user-images.githubusercontent.com/343840/205089185-3c065551-0792-43d6-a13c-a52762856209.png )
The `:nu` command is interesting because you can type pipelines like
`:nu ls | sort-by type size` or another pipeline of your choosing such
as `:nu sys` and that will show the table that looks like this, which
we're calling "table mode".
![image](https://user-images.githubusercontent.com/343840/205090809-e686ff0f-6d0b-4347-8ed0-8c59adfbd741.png )
If you hit the `t` key it will now transpose the view to look like this.
![image](https://user-images.githubusercontent.com/343840/205090948-a834d7f2-1713-4dfe-92fe-5432f287df3d.png )
In table mode or transposed table mode you can use the `i` key to
inspect any collapsed field like `{record 8 fields}`, `[table 16 rows]`,
`[list x]`, etc.
One of the original benefits was that when you're in a view that has a
lot of columns, `explore` gives you the ability to scroll left, right,
up, and down.
`explore` is also smart enough to know when you're in table mode versus
preview mode. If you do `open Cargo.toml | explore` you get this.
![image](https://user-images.githubusercontent.com/343840/205091822-cac79130-3a52-4ca8-9210-eba5be30ed58.png )
If you type `open --raw Cargo.toml | explore` you get this where you can
scroll left, right, up, down. This is called preview mode.
![image](https://user-images.githubusercontent.com/343840/205091990-69455191-ab78-4fea-a961-feafafc16d70.png )
When you're in table mode, you can also type `:preview`. So, with `open
--raw Cargo.toml | explore`, if you type `:preview`, it will look like
this.
![image](https://user-images.githubusercontent.com/343840/205092569-436aa55a-0474-48d5-ab71-baddb1f43027.png )
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-12-01 09:32:10 -06:00
Maxim Zhiburt
02ad491dea
[WIP] table: Change Record view in expand-mode ( #6885 )
...
* table: Change Record view in expand-mode
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix width issue
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Remove debug println!
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Update logic
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Improve the logic via a wrapping
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* `table -e` spread table to the whole width
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* fix CI
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fixing tests
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix coloring issues
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Don't expand when can
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix tests
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Change the logic
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix cargo fmt
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-11-16 08:03:56 -06: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
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
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
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
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
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
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
Darren Schroeder
9f07bcc66f
first stab at minimizing ansi escapes ( #5822 )
2022-06-17 22:07:46 -05:00
Vanilla
cb909f810e
fix[table]: Panic when passthru small number of table -w
. ( #5705 )
2022-06-03 07:46:36 -05:00
Vanilla
727ff5f2d4
feat[table]: Allow specific table width with -w
, like command grid
. ( #5643 )
2022-05-26 06:53:05 -05:00
Darren Schroeder
d1e7884d19
table refactor for readability ( #5555 )
2022-05-16 10:35:57 -05:00
Maxim Zhiburt
ac48f5a318
Fix coloring when string has spaces ( #5425 )
...
* Replace ansi-cut with ansi-str
There's no issues with it we just need to use it later.
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix color losing in string spliting into Sublines
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-05-03 09:48:43 -05:00
JT
2126bef052
clean table text before rendering ( #4638 )
2022-02-25 08:13:55 -05:00
Stefan Holderbach
9c7feb2b19
Reduce table allocs: only strip ANSI if necessary ( #4378 )
...
For the width calculations for table layout the `strip_ansi` function
has to be called frequently. By checking for the ASCII control chars
(0x00 to 0x1f) except `\n` that are stripped by `strip_ansi_escapes` the number of
necessary allocations can be reduced significantly for the simple case
of text not containing ANSI escapes.
**Benchmark:**
```
nu -c "for i in 0..1000 { ls } | flatten | table"
```
**Allocation reduction**
Running on the nushell repo root as the directory, this change reduces the
allocation volume by approximately 400 MB
(Measured run via KDE heaptrack)
**Speed improvement to output**
Measured via `/usr/bin/time -v`
*before*
```
Command being timed: "./eager_nu -c for i in 0..1000 {ls} | flatten | table"
User time (seconds): 0.87
System time (seconds): 0.14
Percent of CPU this job got: 87%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:01.16
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 18888
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 4809
Voluntary context switches: 38
Involuntary context switches: 14
Swaps: 0
File system inputs: 0
File system outputs: 0
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
```
*after*
```
Command being timed: "./lazy_nu -c for i in 0..1000 {ls} | flatten | table"
User time (seconds): 0.63
System time (seconds): 0.14
Percent of CPU this job got: 80%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.97
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 18660
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 5149
Voluntary context switches: 24
Involuntary context switches: 5
Swaps: 0
File system inputs: 0
File system outputs: 0
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
```
2022-02-08 17:43:32 -06:00
JT
d70d91e559
Remove old nushell/merge engine-q
2022-02-07 14:54:06 -05:00
Fernando Herrera
fdce6c49ab
engine-q merge
2022-02-07 19:11:34 +00:00
Maxim Zhiburt
fd3eec81b5
Bump ansi-cut version to 0.2.0 ( #822 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-01-22 18:36:40 -05:00
Stefan Holderbach
01e691c5ba
Fix unicode word wrapping with ansi-cut ( #767 )
...
Ansi-cut expects ranges of character numbers (of the non-ansi control
sequence characters) instead of byte indices.
This fixes the panics when wrapping of non-unicode lines (which exceed
the demanded number of characters as byte indices).
Also rectifies some wrong wrapping of unicdoe containing lines that
don't panic
2022-01-17 15:31:21 -05:00
Darren Schroeder
ffb086d56f
a little better table alignment ( #720 )
2022-01-11 08:49:15 -06:00
Darren Schroeder
2e2d5ef0eb
fix 1 off table wrapping for help commands ( #460 )
2021-12-09 19:16:50 -06:00
Darren Schroeder
5c27ffa42e
update to latest reedline, change config point name, enable output without ansi ( #458 )
2021-12-09 16:06:26 -06:00
Darren Schroeder
a8e5cb871e
optionally remove table output color ( #455 )
2021-12-09 10:00:26 -06:00
Fernando Herrera
8a06ea133b
removed unwraps ( #430 )
2021-12-04 12:38:21 +00:00
Darren Schroeder
d8c721282b
add optional footer to table ( #392 )
...
* add optional footer to table
* missed a draw_table
2021-12-01 13:20:23 -06:00
Darren Schroeder
7cf96c6597
added row_index coloring ( #391 )
2021-12-01 09:17:50 -06:00
Darren Schroeder
ab22619f4a
enable ls_colors for the ls
command ( #340 )
...
* enable ls_colors for the `ls` command
* added wrapping with ansi-cut so the ansi sequences don't bleed over
* clippy
2021-11-15 14:09:17 -06:00
JT
5843acec02
Add wrap and get and cell_path parsing
2021-10-02 15:59:11 +13:00
Darren Schroeder
d395816929
remove ansi colors if this is not a tty ( #4058 )
2021-10-01 09:00:08 -05:00
JT
bfd05772ef
Improve completions inside of a pipeline
2021-09-10 20:07:18 +12:00
JT
26d50ebcd5
Add a very silly table
2021-09-10 14:27:12 +12:00
Marcin Puc
51c74eebd0
Add general refactorings ( #3996 )
2021-09-10 10:44:22 +12:00
Darren Schroeder
7c0a52a81e
updated main
in table so that it outputs again ( #3662 )
2021-06-21 14:14:20 -05:00
JT
383e874166
Fix a bunch of future clippy warnings ( #3586 )
...
* Fix a bunch of future clippy warnings
* Fix a bunch of future clippy warnings
2021-06-10 07:08:12 +12:00
Darren Schroeder
0b5e131410
Remove x1b, update prompt ( #3291 )
...
* add term size command
* remove \x1b and use nu_ansi_term, make prompt with no config prettier
2021-04-09 11:38:56 -05:00
Waldir Pimenta
4bc9d9fd3b
Fix typos and capitalization of "Unicode" ( #3234 )
...
* Capitalize "Unicode"
* Fix several typos
* Fix mixed whitespace in nu-parser's tests
2021-04-04 07:14:07 +12:00
Jonathan Turner
7e184b58b2
Fix warnings for Rust 1.51 ( #3214 )
...
* Fix warnings for Rust 1.51
* More fixes
* More fixes
2021-03-26 21:26:57 +13:00
rezural
23d8dc959c
return string from draw_table instead of printing directly ( #3088 )
2021-02-23 22:25:49 +13:00
Darren Schroeder
2c89a228d5
add nu-ansi-term ( #3089 )
2021-02-22 12:33:34 -06:00
Michael Angerman
fc59c87606
this example now runs out of the box instead of failing with no value or the wrong value ( #3067 )
2021-02-19 21:40:53 +13:00
Darren Schroeder
11a9144e84
update mock table for easier table testing ( #3065 )
2021-02-17 04:47:47 +13:00
Jonathan Turner
e1cb026184
Add back in column truncation ( #3061 )
2021-02-16 07:15:16 +13:00
Darren Schroeder
c5485c6501
a small regex optimization ( #2937 )
...
* a small regex optimization
* removed comments
2021-01-15 20:20:28 +13:00
Joseph T. Lyons
a5f7600f6f
Fix typos ( #2842 )
2021-01-02 17:24:32 +13:00
Joseph T. Lyons
15d49e4096
Rust 1.49 Clippy Fixes ( #2835 )
2021-01-01 15:13:59 +13:00
Darren Schroeder
2eac79569c
highlight trailing spaces in tables in darkgray ( #2794 )
...
* highlight trailing spaces in tables in darkgray
* added leading spaces highlighting
* added config point to change the color
* Trigger Build
2020-12-18 07:47:05 -06:00
Darren Schroeder
13ba533fc4
helps table columns align a little bit better ( #2753 )
...
* helps table columns align a little bit better
* no change to push CI to work again.
2020-11-18 07:18:12 -06:00
Darren Schroeder
1eb28c6cb6
add heavy & none table border options ( #2686 )
2020-10-21 08:53:08 -05:00
Darren Schroeder
2b13ac3856
more table themes rounded and reinforced ( #2579 )
2020-09-19 12:10:34 -05:00
Darren Schroeder
2ae2f2ea9d
Ensure ansi mode windows ( #2494 )
...
* WIP - compiling but not working
* semi-working
* making progress
* working except for table lines
* fmt + clippy
* cleaned up some comments
* working line colors
* fmt, clippy, updated sample config.toml
* merges
* ensure ansi mode is enabled on windows
ansi mode sometimes gets out of sync in Windows.
I'm not sure why but this appears to fix it.
2020-09-04 14:24:46 -05:00
Darren Schroeder
57a26bbd42
Default alignment ( #2481 )
...
* WIP - compiling but not working
* semi-working
* making progress
* working except for table lines
* fmt + clippy
* cleaned up some comments
* working line colors
* fmt, clippy, updated sample config.toml
* merges
* fixed bug where no config.toml or not set settings made weird defaults.
* clippy & fmt again
* Header default alignment is left.
Co-authored-by: Andrés N. Robalino <andres@androbtech.com>
2020-09-01 19:08:41 -05:00
Darren Schroeder
569345e1d4
Color info for config.toml ( #2478 )
...
* WIP - compiling but not working
* semi-working
* making progress
* working except for table lines
* fmt + clippy
* cleaned up some comments
* working line colors
* fmt, clippy, updated sample config.toml
* merges
* some info on how to set colors
2020-09-01 08:48:27 -05:00
Darren Schroeder
adbbcafd30
Add minor theme support ( #2449 )
...
* WIP - compiling but not working
* semi-working
* making progress
* working except for table lines
* fmt + clippy
* cleaned up some comments
* working line colors
* fmt, clippy, updated sample config.toml
* removed extra comments
2020-09-01 17:09:55 +12:00
Darren Schroeder
3f443f40d0
with_love table theme ( #2468 )
2020-08-31 11:50:32 -05:00
Darren Schroeder
8192360b20
added compact_double table theme for funsies ( #2467 )
2020-08-31 09:49:27 -05:00
Jonathan Turner
c56cbd0f6b
Cleanup header to work like before ( #2039 )
2020-06-24 06:51:06 +12:00
Jonathan Turner
480600c465
Fix wrap of carriage returns in cells ( #2027 )
...
* Fix carriage returns in cells
* Fix carriage returns in cells
2020-06-21 09:33:58 +12:00
Jonathan Turner
89c737f456
Finish move to nu-table ( #2025 )
2020-06-21 07:25:07 +12:00
Jonathan Turner
fcbaefed52
Nu table ( #2015 )
...
* WIP
* Get ready to land nu-table
* Remove unwrap
2020-06-20 15:41:53 +12:00