Carlos Alexandro Becker
8d611cb7df
fix(table): grow table rows based on --columns ( #760 )
...
* fix(table): grow table rows based on --columns
closes #411
* fix: merge
2024-12-10 21:26:49 -03:00
Carlos Alexandro Becker
a8cce1cad9
feat(table): --lazy-quotes and --fields-per-record ( #759 )
...
As per [csv.Reader].
closes #345
2024-12-10 21:18:13 -03:00
Carlos Alexandro Becker
bf06fce1c9
fix(table): set widths ( #758 )
...
I'm not sure about this, as it might be slow in big tables...
This will go through all rows, calculate their widths, and set it as the
column width if none was provided with `-w`.
```console
$ echo -e "a,b\naaaaaaaaaaaaaaaaaaaaaaa,bbbbbbbbbbbbbbbb" | gum table
a b
… …
$ echo -e "a,b\naaaaaaaaaaaaaaaaaaaaaaa,bbbbbbbbbbbbbbbb" | gum table
a b
aaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbb
$ echo -e "a,b\naaaaaaaaaaaaaaaaaaaaaaa,bbbbbbbbbbbbbbbb" | gum table -w 5,5
a b
aaaa… bbbb…
```
closes #285
2024-12-10 21:17:53 -03:00
Carlos Alexandro Becker
2b090e8cb5
feat(table): add help ( #756 )
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-12-10 14:45:32 -03:00
Carlos Alexandro Becker
cc71f600f2
fix(table): ignore BOM ( #757 )
...
* fix(table): ignore BOM
closes #520
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: lint issue
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: simplify
* fix: better error
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-12-10 14:45:18 -03:00
Carlos Alexandro Becker
4f469522d5
feat: handle interrupts and timeouts ( #747 )
2024-12-09 14:30:35 -03:00
Carlos Alexandro Becker
6ad8882990
fix(table): only set height if > 0 ( #716 )
...
closes #685
closes #660
2024-11-18 09:07:19 -03:00
Dieter Eickstaedt
93da22d656
feat(table): adds --return-column ( #415 )
...
* feat: Adding Return Column to table command
Consider a table of
ID Name Description
1 Task1 Task description
It would be good to select the row but retrieve the ID for example for further processing
like 'task 1 delete' when first row was selected
* feat: Return Column boundary check fixed
* Update table/options.go
---------
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-11-15 13:50:37 -03:00
Carlos Alexandro Becker
5951e0612f
fix: lint issues, linter config ( #505 )
2024-03-01 08:32:02 -05:00
Maas Lalani
01a66511a1
Hide Style Flags consistently ( #457 )
...
* refactor: hide style flags on error to not clutter usage
* docs(style): add comment regarding dynamically hiding flags
2023-11-28 14:17:57 -05:00
Ayman Bagabas
7d51fd8b73
feat: add log command ( #449 )
...
* feat: add log command
* fix: lint
* refactor: remove switch
* fix: use one level style embed
* fix(log): lint
* Update log/command.go
Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
---------
Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-11-08 10:43:50 -05:00
Maas Lalani
89e2a0fbd5
feat: static --print table ( #436 )
2023-10-16 10:51:31 -04:00
Maas Lalani
92c890e717
fix: use lipgloss.Width instead of runewidth.StringWidth
2023-05-11 22:21:09 -04:00
Mikael Fangel
2bda001480
fix(table): removed inheritance for selected foreground ( #300 )
2023-03-09 12:35:06 -05:00
Lee Marlow
e38cfdaa10
Collapse err assignment and check
2022-11-07 10:09:56 -05:00
Lee Marlow
7bb92dec2f
Set writer.Comma in same manner as reader.Comma
...
Fix linting issue with ignoring an error
2022-11-07 10:09:56 -05:00
Lee Marlow
e20d3a97f0
Use encoding/csv to write proper CSV for the selected row
2022-11-07 10:09:56 -05:00
Maas Lalani
2e4ddce3f7
fix: use program.Start
2022-10-17 20:23:59 -04:00
Maas Lalani
b4c07eb3b9
fix(table): invalid column number
2022-10-11 14:40:25 -04:00
Maas Lalani
995bd04e38
docs: document gum table, file, pager
...
This commit documents `gum table`, `gum file`, and `gum pager` with
demonstration GIFs and sample scripts.
2022-10-07 15:38:48 -04:00
Maas Lalani
bdd86d5fbc
feat(table): gum table for tabular data
2022-10-07 15:38:48 -04:00