Commit Graph

263 Commits

Author SHA1 Message Date
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
Christian Rocha
ccf4c90b6b
Rework spinner to allow for user-defined custom spinners 2020-07-14 18:21:48 -04:00
Christian Rocha
f341e3c896
Correct mouse wheel behavior 2020-06-23 13:10:50 -04:00
Christian Rocha
c9196e5407
Add basic mouse wheel support to viewport 2020-06-23 12:00:17 -04:00
Christian Rocha
f967f6a87f
Fix a bug where placeholder text would not reappear post-input 2020-06-22 15:28:38 -04:00
Christian Rocha
35c3cd626d
Fix spinner frame skipping and remove custom message functionality 2020-06-22 14:49:21 -04:00
Christian Rocha
2525319d72
Bump dependencies 2020-06-22 13:51:51 -04:00
Christian Rocha
e9dd6b06e0
Fix duplicate character bug when deleting chars in long strings
If the string is longer than the width of the field and the horizontal
viewport (so to speak) was on the right edge, the last character would
repeat when deleting characters because the viewport offset wasn't being
corrected. This fixes that.
2020-06-20 23:34:19 -04:00
Christian Rocha
7cef3a6f59
Document comments 2020-06-20 13:59:13 -04:00
Christian Rocha
1cdc2045c7
Fix a potential out of bounds panic 2020-06-19 19:46:51 -04:00
Christian Rocha
cc480dd2f3
Comments 2020-06-19 19:02:14 -04:00
Christian Rocha
0c1781fbb3
Clamp scroll percentage 2020-06-19 15:04:23 -04:00
Christian Rocha
5255143e87
Rework high performance half-view up/down 2020-06-19 13:23:14 -04:00
Christian Rocha
1629afe087
Rework high-performance pgup/pgdown 2020-06-19 12:20:35 -04:00
Christian Rocha
da3150ded7
Rework high performance line-up/line-down 2020-06-19 11:51:44 -04:00
Christian Rocha
b82cf5071d
Send newlines instead of cursor-downs in performance viewport 2020-06-18 18:31:30 -04:00
Christian Rocha
d095a6554c
Retire the internal viewport renderer 2020-06-18 18:25:57 -04:00
Christian Rocha
34ac608122
Correct slice bounding 2020-06-18 16:29:05 -04:00
Christian Rocha
09ae5da7c3
Don't get/set size in viewport; that should happen in the parent 2020-06-18 14:14:21 -04:00
Christian Rocha
5572542e2e
Add command to sync initial high performance view 2020-06-18 13:42:11 -04:00
Christian Rocha
3688351ddf
Viewport now can use Bubble Tea high performance scroll renderer (ish) 2020-06-17 20:55:49 -04:00
Christian Rocha
d9c03fc0b0
Add cursor positioning functions to viewport renderder 2020-06-16 16:10:34 -04:00
Christian Rocha
3321ac12a9
Renderer comments 2020-06-16 14:34:46 -04:00
Christian Rocha
0eaea5cc5d
Use as much terminal movement from termenv as we can 2020-06-16 14:32:00 -04:00
Christian Rocha
0243dff9d3
Remove irrelevant (and erroneous) width settings in viewport renderer 2020-06-16 14:28:01 -04:00