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
Christian Rocha
10022c964c
Fix slice out of bounds errors that could happen when deleting text
2020-07-21 18:22:18 -04:00
Christian Rocha
5357dd61bd
Fix bug where scroll wheel could create duplicate lines on top and bottom
2020-07-20 17:46:15 -04:00
Christian Rocha
5a26cb0d8e
Use pgup/pgdown as default paginator keystrokes
2020-07-20 12:13:53 -04:00
Christian Rocha
88469a499e
Tidy up the key case switch in viewport
2020-07-20 11:56:35 -04:00
Christian Rocha
b130d96434
Add methods for jumping to the tom and bottom of the viewport
2020-07-17 19:22:08 -04:00
Christian Rocha
185a19e56f
Fix cases where pager would add blank lines to bottom of document
2020-07-17 18:38:38 -04:00
Christian Rocha
dbb1d93970
Remove redundant viewport commands
2020-07-17 18:22:51 -04:00
Christian Rocha
2f909886c1
Be more consistent with max() argument order
2020-07-17 18:13:48 -04:00
Christian Rocha
5720cfb35a
Correct scroll percentage reporting
2020-07-17 18:13:05 -04:00
Christian Rocha
3c07b97d37
Correct typo, add potential TODO
2020-07-17 17:02:37 -04:00
Christian Rocha
9b3e5476c3
Update README a little.
2020-07-17 14:03:02 -04:00
Christian Rocha
74e84eca55
Bump Bubbletea dependency
2020-07-14 18:26:59 -04:00