Hironao OTSUBO
d4eeb4f5be
fix(key): unbound keys are not enabled
2022-07-06 17:01:28 -07:00
Jonah
b74f696cc8
feat(list): add IsFiltered
method ( #98 )
2022-07-05 16:38:10 -04:00
Maas Lalani
3a34fc4ff8
fix(textarea): Add deleteWordRight
2022-07-05 14:26:22 -04:00
Maas Lalani
2a2fb10f5f
fix(textarea): account for base styling frame when calculating width
2022-07-05 14:26:22 -04:00
Gabriel Nagy
588393fbf8
fix(textinput): set cursor on initial value
...
This reverts the code back to the logic from 4ce16e8 which fixed the
issue of the cursor not being moved when an initial value was set with
SetValue.
The fix regressed in 16053f4.
2022-07-05 09:16:19 -04:00
Leandro López
7cc5786984
feat(spinners): Construct new spinners with WithSpinner
+ WithStyle
options ( #148 )
...
* Add spinner.New test
Signed-off-by: Leandro López (inkel) <inkel.ar@gmail.com>
* Add spinner.Option type and spinner.WithSpinner option
Signed-off-by: Leandro López (inkel) <inkel.ar@gmail.com>
* Allow passing options in spinner.New
This doesn't break existing code as it uses variadic arguments, so
any existing code as the following should continue to work:
s := spinner.New()
s.spinner = spinner.Dot
This change allows for instead of those two lines, having a call:
s := spinner.New(spinner.WithSpinner(spinner.Dot))
Signed-off-by: Leandro López (inkel) <inkel.ar@gmail.com>
* Add spinner.WithX option for each spinner.Spinner
Signed-off-by: Leandro López (inkel) <inkel.ar@gmail.com>
* Refactor spinner tests
Signed-off-by: Leandro López (inkel) <inkel.ar@gmail.com>
* Add spinner.WithStyle option function
Signed-off-by: Leandro López (inkel) <inkel.ar@gmail.com>
* refactor: remove With... Spinner aliases
Co-authored-by: Maas Lalani <maas@lalani.dev>
2022-07-01 11:31:26 -04:00
Kyosuke Fujimoto
3899e1b4cd
fix(list): Disable Quit Key ( #104 )
2022-07-01 11:00:34 -04:00
Pablo Díaz-López
4c1762413a
fix(timer): stop should return cmd
( #138 )
2022-07-01 10:36:12 -04:00
Maas Lalani
2fd583c8ef
feat(textarea): Add multi-line text input
2022-06-28 12:29:24 -04:00
Charlie Roth
42f85b4a1b
docs: fix paginator example link ( #177 )
2022-06-21 09:23:57 -04:00
vzvu3k6k
4d0a0ea9d8
docs(spinner): correct comment about internal ID ( #171 )
2022-06-21 09:17:48 -04:00
Weslei Juan Novaes Pereira
658a4febc7
feat: new Hamburger + Meter spinners ( #172 )
...
Co-authored-by: Maas Lalani <maas@lalani.dev>
2022-06-21 08:59:23 -04:00
Maas Lalani
93e464296e
docs(list): fix linting errors
2022-06-16 18:47:55 -04:00
Weslei Juan Novaes Pereira
57d79daf4d
feat(list): ability to SetStatusBarItemName
( #169 )
2022-06-16 18:14:47 -04:00
IllusionMan1212
e57fd292cc
feat: added Validate function for textinput
2022-06-10 12:17:24 -04:00
Hironao OTSUBO
54869f7a1d
docs(spinner): remove obsolete comment ( #168 )
...
The doc for spinner.Model.Update is obsolete as per 35c3cd626d
,
which made Update aware of Msg's type.
2022-06-10 10:03:55 -04:00
Ayman Bagabas
7959eb4867
fix(progress): set a custom termenv color profile ( #152 )
2022-06-01 18:04:33 -07:00
Christian Rocha
fd03b6195d
chore: bump bubbletea, harmonica, lipgloss and termenv deps
2022-06-01 17:53:14 -07:00
Christian Rocha
a1e1b461b6
fix(textinput): support KeySpace in both present and future Bubble Tea versions
...
Closes #144
2022-05-29 08:25:34 -07:00
Carlos Alexandro Becker
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
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
2a8d463bd1
chore: shorten half page up/down help widths
2022-04-29 12:20:18 -04:00
Ayman Bagabas
c214837839
fix: add viewport keymap help
2022-04-29 12:20:18 -04:00
Ayman Bagabas
f5ac64216b
fix: lint warn
2022-04-29 12:20:18 -04:00
Christian Rocha
292a1dd7ba
fix(spinner): remove unused member in model
2022-04-12 10:12:14 -04:00
Christian Rocha
154cdbc53a
docs: add Tyler's Teacup library to resources
2022-04-12 10:11:59 -04:00
Christian Rocha
430b7b5d36
Remove provisional spinner lifetime stuff
...
The design was overly complicated, especially for such subtle benefits.
2022-03-31 10:59:39 -04:00
Christian Rocha
00ec90b59f
docs(list): fix typo in doc comment
2022-03-30 15:24:24 -04:00
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