Carlos A Becker
aa0744fd8d
docs: godoc
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-03-30 15:24:24 -04:00
Carlos A Becker
cf1fe5f9ce
fix: type name
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-03-30 15:24:24 -04:00
Carlos A Becker
6c18900279
feat: allow custom filter functions
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-03-30 15:24:24 -04:00
Christian Rocha
d897463138
chore(progress): Percent() now return progress as presented visually
...
Prior to this change Percent() returned the target progress to which the
progress bar was animating.
2022-03-30 14:48:46 -04:00
Ayman Bagabas
88562515cf
fix(list): rendering empty list
...
Fixes: 4e18245481
("Add list bubble")
2022-03-02 17:38:35 -05:00
Austin Schey
e349920524
Add Blink method to textinput to return blink state
2022-03-01 07:35:21 -05:00
Christian Rocha
64b9e0582f
docs: add more libs to Additional Bubbles in the README
2022-02-25 14:47:11 -05:00
Christian Rocha
057f7b9a4d
Add evertras/bubble-table to 'Additional Bubbles' section in README
...
Items in that section are now organized alphabetically.
2022-02-17 10:35:07 -05:00
lorenries
1d489252fe
fix(list): disable quit keybinding while filtering
2022-02-08 14:42:03 -05:00
treilik
06358c35f9
Add bubblelister and bubbleboxer to "additional bubbles" in the README ( #113 )
2022-02-06 07:04:52 +01:00
mirko
005233b529
Improve insert item documentation ( #115 )
2022-02-03 02:58:08 +01:00
Ayman Bagabas
18d25458da
fix(list): DisableQuitKeybinding is ignored after updating the list ( #108 )
2022-01-27 13:09:53 -05:00
Ayman Bagabas
db97ac515d
feat: sync bubbles with git.charm.sh
2022-01-24 17:08:23 -05:00
Christian Muehlhaeuser
200f95759b
Fix key binding documentation
...
Fixes #105 .
2022-01-24 15:09:43 +01:00
Christian Rocha
7ecce3fb97
Ignore width/height settings in viewport's style settings
...
The Lip Gloss width and height settings compete with the main
width/height settings and can result in funny rendering and generally
cause confusion.
2022-01-20 13:23:58 -05:00
Christian Rocha
746834a7ce
Add safety check in textinput's clamp
2022-01-20 13:23:58 -05:00
Christian Rocha
fd306528f9
Rename var in deleteWordRight in textinput for additional clarity
2022-01-20 13:23:58 -05:00
Christian Rocha
a4dc540f3d
Re-add panic guard in deleteWordLeft in textinput, just in case
2022-01-20 13:23:58 -05:00
IllusionMan1212
151d1026dd
fix(textinput): use old cursor pos and simplify logic
2022-01-19 18:31:55 -05:00
Christian Rocha
daba232df4
Fix a bug where viewport y-offset could be negative
2022-01-19 12:32:05 -05:00
Christian Rocha
7a6d306889
Fix off-by-one error in viewport's GotoBottom()
...
This was most likely introduced by the fix for rendering final lines in
0ac5ecdf81
.
2022-01-19 12:32:05 -05:00
Christian Rocha
6c015a2aa8
Remove an unused method
2022-01-19 12:31:50 -05:00
Christian Rocha
764fd321f6
Cleanup an old var
2022-01-19 12:31:50 -05:00
Christian Rocha
091c915462
Fix various godoc comments
2022-01-19 12:31:50 -05:00
Christian Rocha
505a16d057
Bump lipgloss and atotto/clipboard to their latest versions
2022-01-14 13:40:18 -05:00
Christian Rocha
465a66e963
Add timer and stopwatch info to README
2022-01-13 11:30:10 -05:00
Jonah
7a728eae31
expose list.FilterMachesMsg ( #77 )
2022-01-11 12:28:44 -05:00
IllusionMan1212
c426cb580b
fix textinput infinite loop and panic
...
fixes infinite loop when deleting input that only contains whitespace
using deleteWordLeft()
fixes index out of range panic when deleting input that only contains
whitespace using deleteWordRight()
2022-01-11 12:27:57 -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
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
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 Rocha
9401ebbb83
Viewport New() is now optional to ease the upgrade process
2022-01-10 21:21:04 -05:00
Christian Rocha
add13c8028
Add a lipgloss style to the viewport for borders, margins, and padding
2022-01-10 21:21:04 -05:00
Christian Rocha
4aed4e0a88
Viewport now has customizable keybindings
2022-01-10 21:21:04 -05:00
Christian Rocha
9c70b6a216
Bump bubbletea dep
2022-01-10 15:01:52 -05:00
Christian Rocha
9d74635ea3
Update footer image in README
2022-01-10 14:57:12 -05:00
Christian Rocha
e01ee1d17e
Expose IDs on spinners and spinner tick messages
2022-01-10 14:52:35 -05:00
Christian Rocha
e83c113d06
Add spinner.Model.Tick method, deprecate spinner.Tick method.
2022-01-10 14:52:35 -05:00
Christian Rocha
94b84b6120
Make spinners ignore tick messsages send by other spinners
2022-01-10 14:52:35 -05:00
Christian Rocha
f09987549a
Various timer improvements ( #83 )
...
* Add IDs to timers
* Add IDs to timer-related messages
* Ignore messages from other timers
* Add `Timeout` property to `TickMsg`
* Add `Start()`, `Stop()`, and `Toggle()` commands to timer
* Add `Timedout()` method to timer model
* Add `Running()` method to timer model
2022-01-10 13:55:54 -05:00
Christian Rocha
7b20f4fe24
Expose stopwatch StartStopMsg and ResetMsg and bind them to IDs
2022-01-10 13:37:34 -05:00
Christian Rocha
86e0c53e88
Add support for multiple stopwatches
...
In short, stopwatches will now ignore messages sent by other
stopwatches.
2022-01-10 13:37:34 -05:00
Christian Rocha
8d3cfdf380
key.Matches now accepts multiple binding arguments
2022-01-10 12:32:37 -05:00
Anirvan Chatterjee
0f500d5e59
Fixed typo in README ("complimented" → "complemented")
2021-12-09 09:58:11 +01:00
Christian Rocha
0ac5ecdf81
Fix bug where performance rendering could render one line too many
2021-09-17 16:25:25 -04:00
Christian Rocha
8c03905dbe
Fix bug where viewport wouldn't render final lines
...
This previously went unnoticed because we all seemed to have newlines at
the end of our viewport input.
This update introduces the Model.SetYOffset method.
2021-09-17 16:25:25 -04:00
Carlos Alexandro Becker
a7ea1bddbf
feat: stopwatch ( #68 )
...
* feat: stopwatch
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-09 15:21:26 -04:00
Carlos Alexandro Becker
7941c49504
feat: simple timer component ( #67 )
...
* feat: simple timer component
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-09 15:17:33 -04:00
Christian Rocha
da9248f877
Update progress bar description and example links
2021-09-07 14:31:40 -04:00