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
Christian Muehlhaeuser
1e50e6d291
Add GitHub workflows
2020-10-19 06:16:01 +02:00
John Diego
573f90a876
Fix typo
2020-10-19 06:02:37 +02:00
Christian Rocha
a498b857d6
Update paginator for bubbletea 0.12.0
2020-10-16 14:36:08 -04:00
Christian Rocha
82097a1c79
Remove unused function
2020-10-16 11:54:44 -04:00
Christian Rocha
a8ec421800
Update bubbletea and termenv dependencies
2020-10-16 11:54:00 -04:00
Christian Rocha
9c10cd0586
Remove unused ErrMsg type from textinput module
2020-10-15 18:52:36 -04:00
Christian Rocha
154f3763f7
textinput.View can just accept a textinput.Model argument
2020-10-15 18:43:08 -04:00
Christian Rocha
eff931bdea
Remove replace directive for bubbletea in go.mod
2020-10-12 22:15:02 -04:00
Christian Rocha
0d7b3ed8e8
Fix URLs to Charm and Glow in README
2020-10-06 13:25:46 -04:00
Christian Rocha
cbafae84f9
Update mouse wheel stuff in paginator per last-minute Bubble Tea API change
2020-10-06 12:29:18 -04:00
Christian Rocha
959598c9aa
Fix outdated comment
2020-10-02 13:03:04 -04:00
Christian Rocha
5f7c8b5375
Simplify the API around fine-grained spinner display rules
2020-08-25 09:36:43 -04:00
Christian Rocha
75df6b96a1
Don't return the current frame in TickMsg
2020-08-24 21:09:28 -04:00
Christian Rocha
084d0acefd
Fix comments + minimum lifetime should work in conjunction with HideFor
2020-08-24 21:07:45 -04:00
Christian Rocha
e8526ec4ef
Optional fine-grained rules for the spinner about when and how long to show it
2020-08-24 20:03:54 -04:00
Christian Rocha
68f11d0b63
Update termenv to 0.7.2
2020-08-22 11:24:06 -04:00
Christian Muehlhaeuser
f78a02cc29
Avoid unnecessary conversions
2020-08-22 12:41:37 +02:00
Christian Muehlhaeuser
9a4fbb3be1
Make golint happy
2020-08-22 12:41:09 +02:00
Christian Rocha
d4a0ecd3ee
Bump bubbletea dependency and set termenv dependency to v0.7.0
2020-08-20 13:31:31 -04:00
Christian Rocha
34b1f47068
Fix link to Bubble Tea in README
2020-07-31 19:11:13 -04:00
Christian Rocha
dbd40713ce
Remove extraneous methods
2020-07-29 20:04:09 -04:00
Christian Rocha
54a0d84255
Add badges
2020-07-29 19:24:09 -04:00
Christian Rocha
004511e00f
Add example GIFs
2020-07-29 19:20:41 -04:00
Christian Rocha
7fa53ea961
Link directly to example code and flesh out pagination component description
2020-07-29 16:38:59 -04:00
Christian Rocha
0cc5e71a63
Flesh out README and add Charm badge
2020-07-29 16:34:01 -04:00
Christian Rocha
f11ca377f4
Add clipboard paste support to textarea
2020-07-23 11:53:58 -04:00