14 Commits

Author SHA1 Message Date
Ayman Bagabas
84fd71dae6
fix: use charm.land import path for bubbletea 2025-11-04 14:54:08 -05:00
Ayman Bagabas
061e464a70
refactor!: restore bubbletea model interface 2025-02-04 13:01:13 -05:00
Ayman Bagabas
0719711142
chore: merge branch 'master' into v2-exp 2024-11-12 17:05:54 -05:00
Christian Rocha
730f5a29e2 fix: debounce stopwatch and timer
This keeps them from ticking too fast.

Fixes #661.
2024-11-05 22:06:53 -05:00
Christian Rocha
cc9a727028
fix(timer): restore 1s default interval 2024-10-31 15:58:35 -04:00
Christian Rocha
c560f6a021 feat!(timer): add WithInterval(duration) option, drop NewWithInterval()
This also adds an Option type for arguments to New()
2024-10-31 15:02:05 -04:00
Ayman Bagabas
287c9c4ffd
chore: merge branch 'master' into v2-exp 2024-10-21 14:16:22 -04:00
Carlos Alexandro Becker
9a262e9b0f
fix: use atomic for ids (#634)
closes #622

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Ville Valkonen <weezel@users.noreply.github.com>
2024-10-07 15:26:12 -03:00
Ayman Bagabas
0fdf5f5be5
feat: use bubbletea/v2 2024-09-18 14:09:58 -04:00
Ayman Bagabas
8972b56c9d
feat!: make Init return the model 2024-09-10 14:04:36 -04:00
Glenn Gonda
3d3ed883d3 docs: fix typos and improve comment clarity 2023-02-16 17:49:32 -05:00
Pablo Díaz-López
4c1762413a
fix(timer): stop should return cmd (#138) 2022-07-01 10:36:12 -04: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
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