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
Carlos A Becker and Christian Rocha
cf1fe5f9ce
fix: type name
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
2022-03-30 15:24:24 -04:00
Carlos A Becker and Christian Rocha
6c18900279
feat: allow custom filter functions
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
2022-03-30 15:24:24 -04:00
Ayman Bagabas
88562515cf
fix(list): rendering empty list
...
Fixes: 4e18245481 ("Add list bubble")
2022-03-02 17:38:35 -05:00
lorenries and Ayman Bagabas
1d489252fe
fix(list): disable quit keybinding while filtering
2022-02-08 14:42:03 -05:00
mirko and GitHub
005233b529
Improve insert item documentation ( #115 )
2022-02-03 02:58:08 +01:00
Ayman Bagabas and GitHub
18d25458da
fix(list): DisableQuitKeybinding is ignored after updating the list ( #108 )
2022-01-27 13:09:53 -05:00
Christian Rocha
6c015a2aa8
Remove an unused method
2022-01-19 12:31:50 -05:00
Christian Rocha
091c915462
Fix various godoc comments
2022-01-19 12:31:50 -05:00
Jonah and GitHub
7a728eae31
expose list.FilterMachesMsg ( #77 )
2022-01-11 12:28:44 -05:00
Christian Rocha
48e3f85baf
Update keybindings after calling InsertItem on the list model
...
Specifically, if the list was emtpy prior to inserting an item the
up/down keybindings would be hidden and disabled.
2022-01-11 12:08:33 -05:00
Christian Stewart and Christian Rocha
5f256bf34f
fix(list): update keybindings when setting items
...
Bug: when calling SetItems when items was previously empty, the keybindings for
up/down do not appear.
Fix: call updateKeybindings in SetItems.
Signed-off-by: Christian Stewart <christian@paral.in >
2022-01-11 11:58:01 -05:00
Christian Stewart and Christian Rocha
eef9098f37
fix(list): check items slice len
...
Signed-off-by: Christian Stewart <christian@paral.in >
2022-01-11 11:58:01 -05:00
Christian Rocha
b35f96cd2d
Deprecate NewModel() constructors; use New() instead
2022-01-11 11:26:13 -05:00
Christian Muehlhaeuser
4e18245481
Add list bubble
2021-08-23 21:34:13 +02:00