Commit Graph
95 Commits
Author SHA1 Message Date
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 v0.4.0 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 v0.3.0 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
Christian Rocha 68ec6c7ffc Integrate viewport navigation controls with new renderer 2020-06-15 21:22:25 -04:00
Christian Rocha f332bf2cc2 Simplify the render's write() method and it now takes a slice of lines 2020-06-15 21:21:08 -04:00
Christian Rocha 0b19d41e0a Broad (working) pass at viewport renderer 2020-06-15 21:21:08 -04:00
Christian Rocha 786ec557d4 Bumb Bubble Tea dependency 2020-06-15 12:02:14 -04:00
Christian Rocha d3192a3e70 Update text input viewport scrolling to handle unicode characters v0.2.0 2020-06-11 21:24:41 -04:00
Christian Rocha 74cc86fce5 Use a slice of runes as the underlying textinput value 2020-06-11 18:35:18 -04:00
Christian Rocha 72fd4e3e3e Update to latest Bubble Tea renderer + bump termenv v0.1.0 2020-06-08 13:06:38 -04:00
Christian Rocha 12b2758d50 Fix panic in paginator when setting total items to zero 2020-06-02 18:48:00 -04:00
Christian Rocha 87c7cd778f Rename to Bubbles + copy over components from Bubble Tea + remove examples 2020-05-25 20:08:37 -04:00
Christian Rocha a72bf9128d Update spinner to use proper tea.Tick subscription 2020-05-11 17:33:28 -04:00
Christian Rocha 5179df1982 Bump dependencies 2020-05-11 17:21:14 -04:00
Christian Rocha da64445a0e Update subs for Tea v0.2.1. That is to say, remove the their arguments. 2020-05-04 18:54:26 -04:00
Christian Rocha 6c2e144255 Bump termenv with fix for redraws on mosh, konsole 2020-04-30 19:30:41 -04:00
Christian Rocha 7ef18ab69e Fix a bug where text inputs with no char limit couldn't take input 2020-04-23 12:10:53 -04:00
Christian Rocha bf2d13df66 Rename input to textinput + DefaultModel is now NewModel 2020-04-23 12:10:09 -04:00
Christian Rocha a2ae308e68 Bump Tea dependency to v0.2.0 2020-04-23 12:04:45 -04:00
Christian Rocha 5d987f7933 Remove redundant type declaration 2020-04-22 14:29:58 -04:00
Christian Rocha d964fbe3d7 Updates for Tea v0.2.0 2020-04-22 14:29:58 -04:00