16 Commits
Author SHA1 Message Date
Sylvestre Ledru 4dced421b7 Fix clippy unreadable literal warnings 2026-03-09 22:52:32 +01:00
Daniel Hofstetter 2c4e778f3a clippy: fix warnings from uninlined_format_args 2025-06-27 11:17:41 +02:00
Leo Emar-KarGitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
c8db34bd41 add \t filling option (#46)
* chore(deps): update codecov/codecov-action action to v5

* add new Tabs filling and rework fmt process

* add filling_with_tabs test

* add tabs example

* update readme

* fix misspelling

* fix fmt in tests

* optimize padding size calc

* remove separator duplication to reduce memory usage

* make DEFAULT_SEPARATOR_SIZE pub

* fix padding calculation

* fix required padding is bigger than widest cell

* add next entry check before printing the separator

* update docs for tabs

* update comments

* add diff size separator with Tabs

* simplify the tabs number calculation

* update readme

* remove comments

* change last in row check to break

* fix some grammar in readme

* update docs with quotes for \t

* rename postion vars and add comment

* rename neares tab var and update comment

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-08 23:21:57 +02:00
Terts Diepraam 925b080d09 add license headers and remove extern crate 2023-11-03 21:09:16 +01:00
Terts Diepraam fe0a129ed0 fix width calculation and remove Cell 2023-11-02 13:38:20 +01:00
Terts Diepraam b9e42522ea make Grid::new always succeed
In uutils, we always fall back on printing everything in a single column
if the width is too small, so we simply use that as the default.
2023-10-31 20:40:55 +01:00
Terts Diepraam 7d37528db6 simplify API
Removes ability to fit into columns. All cells must be given up front. The
`Display` type is removed.
2023-10-31 16:45:46 +01:00
Terts DiepraamandSylvestre Ledru da74ffc216 remove alignment enum and field
The alignment settings are unused by both uutils and eza. So we don't
need to keep them around. Everything is now left-aligned. This
simplifies the code and makes the tests easier to write, too.
2023-09-25 08:06:14 +02:00
Terts Diepraam 6a19da716a add license info to big.rs 2023-08-12 18:49:40 +02:00
Terts Diepraam d5e97d58e9 add big example for benchmarking 2022-11-20 13:42:56 +01:00
Terts Diepraam ace2e7bf69 enable rustfmt 2022-11-19 19:01:23 +01:00
Benjamin Sago 7eea57a933 Fix right-alignment bugs 2020-04-26 18:18:54 +01:00
Benjamin Sago 575711b716 Allow user to put text between columns
This meant replacing the `separator_width` field with a `filling` field that has an enum to get the spaces back.
2015-07-12 22:48:15 +01:00
Ben S 502810a9c1 Improve docs and readme 2015-06-23 10:43:58 +01:00
Ben S b57bf4541c Separate grid creation from grid displaying
Since I wanted to add a 'display in n columns' method, the maximum width of the console would never be relevant, so this had to get moved to a parameter. The Display stuff is just a bonus.
2015-06-22 21:52:13 +01:00
Ben S 4d47879ff6 Spew comments everywhere 2015-06-22 19:07:21 +01:00