Ayman Bagabas
af98365cc6
fix: lint issues
2026-02-23 23:18:55 +03:00
Justin Chadwell
d004225e8c
fix(table): use ansi.Truncate instead of runewidth.Truncate ( #884 )
...
`runewidth.Truncate` does not consider terminal escape characters - this
means that if a table cell contains funky characters, then it will be
incorrectly truncated.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2026-02-13 09:45:48 -03:00
Ayman Bagabas
da0b892d17
refactor: migrate imports to charm.land/lipgloss
2025-11-04 15:02:23 -05:00
Ayman Bagabas
a10cfddef9
chore: update import paths from github.com/charmbracelet/bubbles/v2 to charm.land/bubbles/v2
2025-11-04 14:57:00 -05:00
Ayman Bagabas
84fd71dae6
fix: use charm.land import path for bubbletea
2025-11-04 14:54:08 -05:00
Ayman Bagabas
ffc9ec20b7
chore(table): update golden files for view and alignment tests
2025-11-04 14:25:12 -05:00
Liam Stanley
7445f97348
refactor(viewport): softwrap; improve perf; various bug fixes ( #823 )
2025-09-12 13:24:49 -04:00
Andrey Nering
47b0944fc8
test: fix tests by ignoring func references
2025-05-16 14:41:16 -03:00
Andrey Nering
73839850f7
test: update golden files with nbsp for v2
2025-05-16 14:24:38 -03:00
Andrey Nering
dffbe595a1
Merge branch 'master' into v2-exp-table-tests
2025-05-16 14:23:52 -03:00
Broderick Westrope
f54a125f7d
test(table): improve table unit tests ( #601 )
2025-05-16 14:13:06 -03:00
s0ders
11d52ca426
fix(table): preventing cursor from being out-of-bounds.
...
The following brings:
- Preventing table's cursor from being out-of-bound when the table's
rows shrink.
ref: #782
2025-04-22 13:52:57 +02:00
Carlos Alexandro Becker
9d2d5dfc71
Merge remote-tracking branch 'origin/master' into v2-exp
2025-03-31 14:20:56 -03:00
Carlos Alexandro Becker
bd2a5b0c6a
fix: golangci-lint 2 fixes ( #769 )
2025-03-31 14:18:18 -03:00
Carlos Alexandro Becker
b1cef26c7d
fix: normalize yoffset
2025-03-27 16:34:10 -03:00
Ayman Bagabas
601039139c
test(table): update golden files for alignment tests
2025-03-26 21:53:03 +03:00
Andrey Nering
fff86382cc
chore(lint): remove custom min and max functions
...
These are now available as builtins.
2025-03-20 10:42:52 -03:00
Carlos Alexandro Becker
64c16e990e
feat(v2)!: update to go 1.22 ( #724 )
...
* feat(v2)!: update to go 1.22
* fix: ci
* fix: more
2025-02-05 10:00:01 -03:00
Ayman Bagabas
3b1b9248be
fix(table): crlf on windows
2025-02-04 13:27:29 -05:00
Christian Rocha
52bd03ed5b
feat!(viewport): use getters and setters for width and height
2024-10-31 15:02:05 -04:00
Christian Rocha
3b879e7694
feat!(viewport): width and height are now optional args in New()
2024-10-31 15:02:05 -04:00
Ayman Bagabas
db64e3cd78
feat: update lipgloss to v2
2024-10-29 15:54:24 -04:00
Christian Rocha
57ac102802
chore(merge): branch 'master' into v2-mini-tidy
2024-10-24 15:22:16 -04:00
Christian Rocha
358a6c58c8
chore(lint): fix and suppress all soft lint issues; update directives
2024-10-24 12:35:42 -04:00
Ayman Bagabas
287c9c4ffd
chore: merge branch 'master' into v2-exp
2024-10-21 14:16:22 -04:00
cui fliter
076b578512
chore: Remove duplicate and redundant code ( #626 )
...
Signed-off-by: cuishuang <imcusg@gmail.com>
2024-10-07 15:29:06 -03:00
Ayman Bagabas
f81fd5246a
fix: spacebar keybinding is now "space" instead of a literal space
2024-09-18 14:55:49 -04:00
Ayman Bagabas
a2602f8509
feat!: v2: move to v2 module
2024-09-18 14:12:55 -04:00
Ayman Bagabas
0fdf5f5be5
feat: use bubbletea/v2
2024-09-18 14:09:58 -04:00
Ayman Bagabas
a93bfef532
feat!: use bubbletea@v2-exp
2024-09-09 14:12:52 -04:00
Christian Rocha
235075af49
feat: add HelpView to table as a convenience
2024-08-20 15:22:27 -04:00
bashbunni
c1d9f7dd6b
feat(table): remove StyleFunc + add tests for table alignment ( #586 )
...
* Revert "Add support fo style func to table bubble"
This reverts commit 04658fed8eb24c81d1612d89db091e4f6c1be19f.
* test(table): add tests for table alignment
2024-08-19 13:56:47 -07:00
Aditi Patel
6202df1306
fix: update position constant in JoinHorizontal ( #577 )
2024-08-07 14:06:50 -04:00
Gabriel Fu
36baf3d64e
Update table.go ( #539 )
2024-06-18 11:45:04 -04:00
Ayman Bagabas
11a9fccd58
chore: fix lint issues ( #534 )
2024-05-31 16:48:29 -04:00
Maas Lalani
68a68a472d
fix(table): inherit SelectedStyle for StyleFunc
2024-04-24 13:50:10 -04:00
Kevin Miller
04658fed8e
Add support fo style func to table bubble
2024-04-24 13:37:52 -04:00
David Zeleniak
e726cbfb5c
fix(table): table scrolls before selected reaches top/bottom ( #429 )
...
* Fix bug in moving up in table
* fix
* Fix table viewport scroll down too early
2024-03-13 14:39:10 -04:00
Maciej Więcek
6dbfc8284d
fix(table): substract headers Y size from the total table size ( #434 )
...
* fix(table): substract headers Y size from the total table size
* fix: change GetFrameSize to GetVerticalFrameSize and calc header height
* fix: remove GetVerticalFrameSize at all
* fix: account for headers in height WithHeight, SetHeight
---------
Co-authored-by: Maas Lalani <maas@lalani.dev>
2024-03-13 14:31:42 -04:00
Maciej Więcek
9ffcdc06a0
feat(table): implement help.Keymap interface and add quit mapping ( #440 )
...
* feat(table): implement help.Keymap interface and add quit mapping
* feat(table): implement help.Keymap interface and add quit mapping
2024-02-28 14:12:37 -05:00
Fabrice Bessettes
1029f3164d
(fix)table: don't render a column with a width <= 0 ( #465 )
...
* (fix)table: don't render a column with a width <= 0
This address #464
* Better check location
---------
Co-authored-by: Fabrice Bessettes <fbessett@cisco.com>
2024-02-28 12:15:07 -05:00
Abe Leininger
9a7c783a75
feat(table): added column return func ( #369 )
2024-02-28 11:39:37 -05:00
Maas Lalani
af7e9ed3e1
Render Row Tests ( #487 )
...
* test(table): add renderRow test
* refactor(table): row tests
---------
Co-authored-by: Bill Havanki <bill.havanki@segment.com>
2024-02-28 11:30:22 -05:00
Stefan Bildl
3a1a24e211
refactor(table): remove unused cmds variable
2023-03-17 13:47:12 -04:00
Mikael Fangel
7ba044773b
fix: add bounds checking to the selectedrow func ( #351 )
2023-03-11 15:47:31 +01:00
Glenn Gonda
3d3ed883d3
docs: fix typos and improve comment clarity
2023-02-16 17:49:32 -05:00
Yusuf Malikul Mulki
30998513ba
ypo ( #300 )
2023-01-19 00:20:02 -05:00
Maas Lalani
e78f923af6
feat(table): add SetColumns method to set columns
2022-12-01 09:41:08 -05:00
Marc-Antoine
b528165592
expose table's rows
2022-12-01 09:30:35 -05:00
Jager,Petar
94252ef3b9
remove renderedlines from table struct
2022-12-01 09:24:30 -05:00