Christian Rocha
47b8d9c6a8
Doc comments, optimizations, and magic number removal
2020-12-01 17:03:48 -05:00
Christian Rocha
b78277e7ec
Add progress bar example
2020-12-01 17:03:48 -05:00
Christian Rocha
6a768905a6
Add initialization options for scaled ramps
2020-12-01 17:03:48 -05:00
Christian Rocha
0f06d78b92
Support for solid (non-gradient) fills too
2020-12-01 17:03:48 -05:00
Christian Rocha
1e16eca939
Set ramp in NewModel via functional argument
2020-12-01 17:03:48 -05:00
Christian Rocha
d81e5713d4
Cache termenv color profile lookup
2020-12-01 17:03:48 -05:00
Christian Rocha
b10dbcb4dd
Add option to show percent
2020-12-01 17:03:48 -05:00
Christian Rocha
a2e0a2e72e
Remove initial width argument; add default width
2020-12-01 17:03:48 -05:00
Christian Rocha
3dea7d036e
Reduce progress component to (more or less) a pure view function
...
We really only need the View function in this case since the progress
value will come from the program that implements this.
2020-12-01 17:03:48 -05:00
Richard Cooper
68e87e08c5
gofmt-ed last commit
2020-12-01 17:03:48 -05:00
Richard Cooper
65a17d039e
length field changed to width
2020-12-01 17:03:48 -05:00
ololosha228
38d59517fb
Added progress bar
2020-12-01 17:03:48 -05:00
Christian Rocha
06109f45ce
Add Bubbles title treatment to README
2020-11-19 19:11:24 -05:00
Christian Rocha
9cb8e8d90a
Remove spaces after emoji spinners
2020-11-11 15:39:42 -05:00
Christian Rocha
e6219572e5
Add points spinner
2020-11-11 15:39:42 -05:00
Christian Rocha
81feaacf5b
Remove bit8 spinner
2020-11-11 15:39:42 -05:00
Christian Rocha
9a25d8b8b9
Add pulse spinner
2020-11-11 15:39:42 -05:00
Christian Rocha
e8e052c64b
Add mini dot spinner
2020-11-11 15:39:42 -05:00
Christian Rocha
3d7cd43046
Rework Spinner so that default spinners have FPS built-in
2020-11-11 15:39:42 -05:00
Christian Rocha
9c38e101d2
Remove internal msg in spinner so all tick msgs can be caught externally
2020-11-10 15:44:42 -05:00
Christian Rocha
84f7b047bb
Make Viewport more idomatic BubbleTea (per v0.12.x)
2020-11-08 21:20:15 -05:00
Christian Rocha
9e1e435bba
Make Spinner more idomatic Bubble Tea (per v0.12.x)
2020-11-08 21:20:15 -05:00
Christian Rocha
0fd072ddcc
Make Paginator more idomatic Bubble Tea (per v0.12.x)
2020-11-08 21:20:15 -05:00
ololosha228
a07ab1d6af
Added more spinners
2020-11-04 14:48:03 +01:00
Christian Rocha
8e49ee609e
Bump Bubble Tea dependency to v0.12.2
2020-11-02 10:24:20 -05:00
Christian Rocha
d02641f6b5
Update textinput for multi-char (IME) input in Bubble Tea master
2020-11-01 09:11:18 -05:00
Christian Rocha
9b47f26bdd
Doc and logic corrections per the linter
2020-10-28 21:27:15 -04:00
Christian Rocha
9c780011ff
Underpinnings for always-on and always-hidden cursor modes
2020-10-28 21:27:15 -04:00
Christian Rocha
8148e61443
Correct ^F/^B keybindings for forward/back cursor movement
2020-10-28 21:27:15 -04:00
Christian Rocha
ce7d8da084
Fix lock-up that could occur with cursor blinking
...
Note that to do this we've replaced the blink timer with a context.
2020-10-28 21:27:15 -04:00
Christian Rocha
d14fdf585c
Textinput Update and View functions are now methods on the model
2020-10-28 21:27:15 -04:00
Christian Rocha
bf7719e6c1
Handle paste via command/message since it's IO
2020-10-28 21:27:15 -04:00
Christian Rocha
1b530b293c
Reset blink timer when moving the cursor
2020-10-28 21:27:15 -04:00
Nicolas Martin
7d1c04164e
Return the value of paginator.TotalPages in SetTotalPages...
...
when the given number of items is below 1.
2020-10-28 10:40:23 -04:00
Christian Muehlhaeuser
97020cd0d2
Support Alt-Backspace to delete previous word
2020-10-27 08:50:22 +01:00
Christian Rocha
5dbcf95877
Fix situation where short viewports would panic ( closes #20 )
2020-10-25 15:21:49 -04:00
Christian Muehlhaeuser
f58fead10d
Support Ctrl-W and Alt-D to delete words left/right of cursor
...
Ctrl-W: deletes word left of cursor
Alt-D: deletes word right of cursor
2020-10-25 14:52:16 -04:00
Christian Rocha
703de11da4
Fix regression where cursor was misplaced after a paste
2020-10-24 19:51:13 -04:00
Christian Rocha
03461d6804
Fix panic when pasting into a textinput with no char limit
2020-10-24 19:51:13 -04:00
Christian Muehlhaeuser
4445acbace
Use the same badge order as in our other repos
2020-10-24 08:43:30 +02:00
Christian Muehlhaeuser
bd161e8ded
Add release badge to README
2020-10-24 08:39:00 +02:00
Christian Muehlhaeuser
d9716a97f6
Fix link to example in README
2020-10-24 08:36:29 +02:00
Christian Muehlhaeuser
a0fe547fdb
Make textinput cursor visible whenever it changes its position
...
This improves the UX because you never lose track of the cursor
moving around while it's currently hidden.
2020-10-24 00:12:27 -04:00
Christian Muehlhaeuser
1cb36774ed
Split up workflows and automatically pick latest Go version
2020-10-23 13:18:52 +02:00
Christian Rocha
bdd909a5d7
Textinput: bind home/end and fix behavior of delete key
2020-10-22 15:36:54 -04:00
Will Bradley
b08b3efa02
add a couple alternate key bindings to make the scrolling slightly more intuitive
2020-10-21 22:54:58 -04:00
Christian Muehlhaeuser
83b6a2205f
Add an EchoMode and EchoCharacter property to textinputs ( #11 )
...
EchoModes are:
- EchoNormal, displays text as is
- EchoPassword, displays EchoCharacter mask instead of actual characters
- EchoNone, displays nothing
Note that EchoOnEdit, which should displays character as they are entered and is otherwise identical to EchoPassword, is not yet implemented.
2020-10-21 18:17:41 -04:00
Christian Rocha
c06af8962d
Update footer in README
2020-10-20 10:17:26 -04:00
Christian Muehlhaeuser
3a65be950a
Remove release badge from README
2020-10-19 06:20:37 +02:00
Christian Muehlhaeuser
2dd6e0c80b
Update README badges
2020-10-19 06:19:24 +02:00