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
c2223a7c4f
fix(list): ensure correct cursor positions with page/cursor methods ( #831 ) ( #837 )
...
Co-authored-by: Christian Rocha <christian@rocha.is >
2025-09-29 14:38:47 -04:00
Andrey Nering
dffbe595a1
Merge branch 'master' into v2-exp-table-tests
2025-05-16 14:23:52 -03:00
Broderick Westrope and Christian Rocha
dff42ddb7c
feat: update keybindings in list setSize method
2025-05-16 10:03:59 -04: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 and GitHub
bd2a5b0c6a
fix: golangci-lint 2 fixes ( #769 )
2025-03-31 14:18:18 -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
71493456d9
Merge remote-tracking branch 'origin/master' into v2-exp
2025-03-13 16:55:11 -03:00
Michał Kotowski and Christian Rocha
cdc743f1f4
chore(links): switch bubbletea links to use main
...
Cosmetic change.
Old links used `master` as the main branch. Resulting in GitHub
redirecting to the correct default branch and displaying:
> Branch not found, redirected to default branch.
Signed-off-by: Michał Kotowski <dev@mkotowski.dev >
2025-03-05 06:57:17 -05:00
Carlos Alexandro Becker and GitHub
605d06c42b
feat: real cursor in textinput ( #727 )
2025-02-07 10:48:26 -03:00
Carlos Alexandro Becker and GitHub
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
bd415b4eba
chore: update dependencies and fix colors
2024-11-21 12:20:47 -05:00
Christian Rocha
591dfd528e
chore(textinput): use a getter and setter for width
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
ef6a3d2483
chore(list): minimal updates for Lip Gloss v2
2024-10-24 16:44:30 -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
nobe4 and GitHub
171a9d61a0
feat(list): implement GlobalIndex helper ( #574 )
...
* feat(list): implement GlobalIndex helper
This commit introduces a new `filteredItem` field called `index` which
stores the index of the filtered item in the unfiltered list. This
allows to get at runtime the unfiltered list index for the selected (and
possibly filtered) item.
This is the only solution I found to use `SetItem` with a filtered
list.
The name `GlobalIndex` might not be ideal, I'm happy to change it to
something else. (`UnfilteredIndex`?)
Fixes : #550
* docs(list): improve Index() documentation
2024-10-09 16:59:04 -07:00
Aashutosh and GitHub
cf3f46ab31
docs(list): fix grammar in doc comment and README ( #627 )
2024-10-07 15:26:58 -03:00
Ayman Bagabas
09242fdf67
refactor!: remove deprecated references
...
This removes all the `NewModel` functions from all the bubbles and any
deprecated fields and types.
2024-09-19 13:44:03 -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
488bef7c13
Merge branch 'master' into v2-exp
2024-09-18 14:09:05 -04:00
d019ed3cc9
feat(list): add SetFilterText and SetFilterState ( #335 )
...
* Add SetFilterText and SetFilterState
* make linter happy
* make SetFilterState state not hardcoded
* tests for SetFilterText and SetFilterState
* fix small typo
---------
Co-authored-by: k-x7 <97758178+k-x7@users.noreply.github.com >
2024-09-10 14:22:03 -03:00
Ayman Bagabas
a93bfef532
feat!: use bubbletea@v2-exp
2024-09-09 14:12:52 -04:00
Ayman Bagabas and GitHub
11a9fccd58
chore: fix lint issues ( #534 )
2024-05-31 16:48:29 -04:00
Ayman Bagabas and GitHub
e1ea5dc528
refactor: switch to x/ansi for text manipulation ( #505 )
...
Need to be consistent with Lipgloss and https://github.com/charmbracelet/lipgloss/pull/279
2024-05-23 15:13:44 -04:00
neko.py and Maas Lalani
6b817f345c
Fix list pagination functions
...
1. Set receivers for list.NextPage and list.PrevPage to pointers
2024-02-28 11:11:06 -05:00
Carlos Alexandro Becker and GitHub
eed309fb7d
docs: fix list delegate et al links ( #467 )
2024-02-06 09:36:31 -05:00
naglis and GitHub
95d7be54d9
refactor(list): reduce allocations in filterItems ( #396 )
...
As the number of items in `targets` is known, use `make` with the
expected size instead of appending, which requires more allocations as
the `targets` slice grows.
2023-07-25 14:06:33 -07:00
Maas Lalani and GitHub
0bdcc628fb
fix(list): No items found. -> No items. ( #393 )
2023-07-11 14:42:33 -04:00
naglis and GitHub
fa8207d8d8
fix(list): typo in doc comment ( #391 )
2023-07-08 17:10:26 -07:00
Carlos Alexandro Becker and GitHub
7053a7d757
feat(deps): update fuzzy library ( #379 )
2023-06-14 11:10:57 -03:00
Maas Lalani
ab1f7134e4
fix: deprecate CursorStyle in favour of Cursor.Style
2023-04-08 14:19:53 -04:00
bashbunni and GitHub
1de5816ab4
docs(list): add FAQ ( #359 )
2023-03-24 11:57:13 -07:00
jon4hz and GitHub
5b22c92cf3
feat(list): infinite scrolling ( #316 )
2023-03-24 11:05:53 -07:00
Glenn Gonda and Christian Rocha
3d3ed883d3
docs: fix typos and improve comment clarity
2023-02-16 17:49:32 -05:00
Christian Rocha
2b5b8624d6
fix: use non-deprecated spinner tick command in list
2022-11-17 10:41:13 -05:00
Christian Rocha
30c01cabdc
chore: apply appropriate GoDoc syntax to deprecated items
2022-11-17 10:41:13 -05:00
Tom Payne and GitHub
72d87e4513
chore: Miscellaneous minor fixes ( #243 )
...
* chore: remove internal use of deprecated NewModel
* chore: miscellaneous comment fixes
2022-09-15 10:51:42 -04:00
Jonah and GitHub
b74f696cc8
feat(list): add IsFiltered method ( #98 )
2022-07-05 16:38:10 -04:00
Maas Lalani
93e464296e
docs(list): fix linting errors
2022-06-16 18:47:55 -04:00
Weslei Juan Novaes Pereira and GitHub
57d79daf4d
feat(list): ability to SetStatusBarItemName ( #169 )
2022-06-16 18:14:47 -04:00
Carlos Alexandro Becker and GitHub
cd2593cfb7
feat: allow to set the height of the item ( #155 )
...
* feat: allow to set the height of the item
The user might want to show more than 2 lines, and, right now, if they
try to do so, things break.
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
* fix: short-circuit if width <= 0
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
* fix: height check
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
2022-05-24 15:00:35 -03:00
Tim Adler and GitHub
e1871db6d3
fix: padding in titlebar when nothing is displayed ( #139 )
...
* Don't render anything, when nothing is shown
* fix linter issue
2022-05-24 09:05:39 -03:00
Christian Rocha
00ec90b59f
docs(list): fix typo in doc comment
2022-03-30 15:24:24 -04:00
Carlos A Becker and Christian Rocha
aa0744fd8d
docs: godoc
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
2022-03-30 15:24:24 -04:00