Commit Graph

  • 090c983bd5 Bump termenv and futher integrate it into terminal controls Christian Rocha 2020-06-17 11:03:45 -04:00
  • 830beecffb Fix render's view clearing loop Christian Rocha 2020-06-17 10:48:08 -04:00
  • 217c506a49 Add logging option in simple example Christian Rocha 2020-06-16 22:31:37 -04:00
  • b72009105b Fix infinte loop + backwards ignore behavior Christian Rocha 2020-06-16 22:30:47 -04:00
  • 683473c26d Blind pass at adding high performance scrolling into the renderer Christian Rocha 2020-06-16 16:41:35 -04:00
  • da86f9ac1a Renderer comments Christian Rocha 2020-06-16 11:05:04 -04:00
  • 01032f0579 Set FPS in a more readable fashion (thanks @muesli!) Christian Rocha 2020-06-15 20:01:18 -04:00
  • 45f62bad33 Add go-runewidth to resources in README Christian Rocha 2020-06-11 21:51:52 -04:00
  • 3aba272a10 Fix nonsensical comment Christian Rocha 2020-06-11 21:38:27 -04:00
  • 5ccb786eec Um, the package is called Bubble Tea, thank-you-very-much Christian Rocha 2020-06-11 19:34:08 -04:00
  • 55a8d1853e Comments Christian Rocha 2020-06-08 12:43:24 -04:00
  • 3647042096 Fix renderer bug where UI could be duplicated in inline-TUIs Christian Rocha 2020-06-05 14:00:39 -04:00
  • 2896e0e8e6 Remove now unused vars from old renderer Christian Rocha 2020-06-05 13:45:28 -04:00
  • fcbc427098 Properly shut down renderer when quitting program Christian Rocha 2020-06-05 12:47:02 -04:00
  • 87434a2569 Buffer/ticker-based renderer Christian Rocha 2020-06-05 12:40:44 -04:00
  • 4ce9b4ea83 Fix broken logic in original "views" example Christian Rocha 2020-06-05 14:12:02 -04:00
  • b10f6d6791 How about if we count the lines rendered correctly Christian Rocha 2020-05-28 10:47:15 -04:00
  • e7130c9633 Remove an extraneous var and rename another var for clarity Christian Rocha 2020-05-28 10:26:03 -04:00
  • 99df3d4226 Only render if view has actually changed Christian Rocha 2020-05-28 10:20:59 -04:00
  • e79ee747c9 Fix import in simple example Christian Rocha 2020-05-27 14:47:31 -04:00
  • a454089275 Update example in README Christian Rocha 2020-05-27 14:21:54 -04:00
  • 35731d4046 Bump termenv dependency Christian Rocha 2020-05-26 13:04:56 -04:00
  • 847c8b88a0 Implement resize handling in pager example Christian Rocha 2020-05-26 09:53:15 -04:00
  • 845a269706 Update pager example with resize listening + log to file Christian Rocha 2020-05-25 20:24:17 -04:00
  • 40332a36b3 Migrate components over to github.com/charmbracelet/bubbles Christian Rocha 2020-05-25 20:10:15 -04:00
  • 3b8b011b5a Rename to Bubble Tea (with the import name tea) Christian Rocha 2020-05-25 19:26:40 -04:00
  • 200891b022 Update dependencies in examples Christian Rocha 2020-05-25 14:22:32 -04:00
  • dd79195e1b Add alt+left/right and alt+b/f to jump between words in text input Christian Rocha 2020-05-25 14:21:03 -04:00
  • bb85a886fd Use consts for default values Christian Muehlhaeuser 2020-05-25 14:12:42 +02:00
  • cd4e02b1a8 Simplify code a bit Christian Muehlhaeuser 2020-05-25 14:12:30 +02:00
  • e8b7e510bb Simplify key/sequence map Christian Muehlhaeuser 2020-05-25 14:03:59 +02:00
  • 0957c58e05 Make type documentation godoc-compliant Christian Muehlhaeuser 2020-05-25 14:02:46 +02:00
  • bb19d42cc0 Rename PaginatorType to Type Christian Muehlhaeuser 2020-05-25 13:55:28 +02:00
  • 6db7c48ba8 Use a buffered channel for signal.Notify Christian Muehlhaeuser 2020-05-25 13:43:02 +02:00
  • 15e623358e Bump dependencies, namely github.com/pkg/term Christian Rocha 2020-05-21 22:31:39 -04:00
  • bdf6f07c75 Resetting a text input also resets the cursor blink state Christian Rocha 2020-05-21 22:30:38 -04:00
  • 9d175b5ed7 Add ability to log directly to a file Christian Rocha 2020-05-21 16:56:47 -04:00
  • 6ceafa032c Text input value getter/setter + cursor movement methods Christian Rocha 2020-05-20 16:12:14 -04:00
  • 826420a00e Add method to text input model to reset the state Christian Rocha 2020-05-20 13:55:09 -04:00
  • 3868858947 Support bounded width in text input Christian Rocha 2020-05-20 13:44:20 -04:00
  • 9fc0d0ea82 Support background colors in textinput Christian Rocha 2020-05-19 14:58:08 -04:00
  • ee5f82579f Don't treat the space character as a control character Christian Rocha 2020-05-19 14:41:55 -04:00
  • dafb022fe5 Pager is now called viewport and allows for non-default keybindings Christian Rocha 2020-05-19 13:18:32 -04:00
  • 822c234a82 Use a mutual exclusion lock when writing to stdout Christian Rocha 2020-05-19 13:16:02 -04:00
  • 28deb6c543 Correct doc comment Christian Rocha 2020-05-18 18:45:37 -04:00
  • 61285e4e90 Disable OnResize command on Windows Christian Rocha 2020-05-18 11:41:59 -04:00
  • d2ae1b0fb7 Add command for listening for window resizes Christian Rocha 2020-05-17 19:28:12 -04:00
  • 25f8b8c99b Simplify pager component and fix pager example Christian Rocha 2020-05-15 16:08:58 -04:00
  • 7562f29046 Use more idiomatic function name for content setter in pager Christian Rocha 2020-05-15 14:14:17 -04:00
  • 149579d584 Add helper method to paginator for determining if we're on the last page Christian Rocha 2020-05-15 13:24:32 -04:00
  • 5a1ee26a6b Fix typo in comment Christian Rocha 2020-05-14 20:59:03 -04:00
  • 959b9c3a45 Cleanup pager Christian Rocha 2020-05-14 17:56:54 -04:00
  • 82e1aa81da Fix percentage artithmetic in pager Christian Rocha 2020-05-14 15:10:07 -04:00
  • 3960657824 Pager: fill empty space with newlines Christian Rocha 2020-05-14 15:04:39 -04:00
  • 6176ad6f8e Add method to pager model for getting percent scrolled Christian Rocha 2020-05-14 15:04:18 -04:00
  • db4600aeb2 Add a command and message for getting terminal size Christian Rocha 2020-05-14 10:49:08 -04:00
  • 0e39761525 Strip down pager; the teminal size must now be fetched by the parent Christian Rocha 2020-05-14 10:45:53 -04:00
  • ffdaba08eb Remove this extraneous type Christian Rocha 2020-05-14 10:45:37 -04:00
  • 254c098066 Pager: expose cmd for getting terminal size + bind pgup/pgdown Christian Rocha 2020-05-13 22:06:35 -04:00
  • 251f944f12 Spinner doc comments Christian Rocha 2020-05-13 16:06:15 -04:00
  • 82a40119b9 Spinner can now send custom messages Christian Rocha 2020-05-13 15:55:53 -04:00
  • ade8203c21 Remove entire subscription model Christian Rocha 2020-05-12 17:56:30 -04:00
  • 82ddbb8e12 Move components over and update examples Christian Rocha 2020-05-12 17:05:16 -04:00
  • 4bf40fbe62 Rename project to Boba Christian Rocha 2020-05-12 16:39:08 -04:00
  • 9dd9461dde It's a safer bet not to render any extra newlines whatsoever Christian Rocha 2020-05-11 23:05:24 -04:00
  • 767f4bec2d Built-in subscriptions are clearer without the extra type definition Christian Rocha 2020-05-11 22:13:34 -04:00
  • b6eeef2127 Pager example Christian Rocha 2020-05-11 21:03:04 -04:00
  • 5ae602953c Fix bug where extra blank line was being adding to output Christian Rocha 2020-05-11 20:58:21 -04:00
  • 72c1a1c0ef Treat space key as a control character (instead of a " ") Christian Rocha 2020-05-11 19:56:46 -04:00
  • 88e4df4055 Update spinner example so it works with the spinner version in master Christian Rocha 2020-05-11 17:37:23 -04:00
  • 2a82e2a75e Add Tick to run timers independent of the system clock Christian Rocha 2020-05-11 13:01:42 -04:00
  • 7b887b0a05 Update example in README to use tea.Every Christian Rocha 2020-05-11 12:54:44 -04:00
  • d503d5dbf6 Every sends the time at which the timer ticked Christian Rocha 2020-05-05 14:26:06 -04:00
  • ac67237eab Add 'Every' subscription for ticking with the system clock Christian Rocha 2020-05-05 13:36:46 -04:00
  • b50ee76165 Subs shouldn't take a model as an argument Christian Rocha 2020-05-04 18:51:47 -04:00
  • dada718393 Fix and improve spinner example Christian Rocha 2020-05-04 18:33:17 -04:00
  • 39ec5b5233 Bump termenv with fix for redraws on mosh, konsole Christian Rocha 2020-04-30 19:29:59 -04:00
  • f57e384548 Remove SSH stuff Christian Rocha 2020-04-27 11:51:02 -04:00
  • 8471cb03c1 Add Reflow and Tea Party to resources in README Christian Rocha 2020-04-27 11:46:44 -04:00
  • 6c8ee9f7dc Remove authors Christian Rocha 2020-04-27 11:43:11 -04:00
  • f93b752fcc Remove ErrMsg and ModelAssertionErr Christian Rocha 2020-04-22 11:00:30 -04:00
  • aa6d766e42 Catch errors when reading keyboard input Christian Rocha 2020-04-22 10:32:18 -04:00
  • 50b16d2df1 Model doesn't need to be a member of the Program struct Christian Rocha 2020-04-22 10:25:49 -04:00
  • 4351c9f903 Cmds no longer takes a Model as an argument, CmdMap no longer needed Christian Rocha 2020-04-22 10:15:04 -04:00
  • 5612c85b72 Bump termenv for examples Christian Rocha 2020-04-22 10:09:57 -04:00
  • 01b14bacca Ignore .envrc Christian Rocha 2020-04-22 09:53:18 -04:00
  • 4f2c60372d Improve some comments Christian Rocha 2020-04-17 19:02:25 -04:00
  • bf92cd6cce Add missing error handling Christian Muehlhaeuser 2020-04-17 20:35:54 +02:00
  • 27416e9976 Add nil checks to CmdMap and SubMap functors Christian Rocha 2020-04-10 15:43:18 -04:00
  • 4a41a61919 Short-ciruit the message loop when processing batched commands Christian Rocha 2020-04-03 18:31:40 -04:00
  • cd63ed1e44 Stop old subscription when it becomes reassigned as nil Christian Rocha 2020-04-02 12:07:23 -04:00
  • 2e509ad32c Don't do command batching if the batch is 0 items long Christian Rocha 2020-04-01 12:05:05 -04:00
  • 1bf93b1ccf Provisionally add CmdMap and SubMap functions Christian Rocha 2020-03-31 16:27:36 -04:00
  • 6e769686f1 Add support for command batching Christian Rocha 2020-03-31 16:08:03 -04:00
  • 58a047c2ac Bump termenv to v0.5.0 Christian Rocha 2020-03-31 11:18:42 -04:00
  • 87ff36e345 Bump termenv dependency Christian Rocha 2020-03-27 12:14:23 -04:00
  • 23432f30dd Add TODO + comment Christian Rocha 2020-02-19 22:22:12 -05:00
  • abf5c6e845 Also catch home/end/pgup/pgdown on urxvt Christian Rocha 2020-02-19 22:06:23 -05:00
  • 0cb138f63d Catch a bunch of outlier alt-prefixed keystokes + home/end/pgup/pgdown Christian Rocha 2020-02-19 21:06:57 -05:00
  • eefa9c7aa3 Catch the alt key modifier Christian Rocha 2020-02-19 18:35:34 -05:00