1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-05-01 22:17:51 +08:00

637 Commits

Author SHA1 Message Date
Jakub Sobon
0c68b3d745
The donut widget can optionally display a text label. 2019-04-28 21:17:07 -04:00
Jakub Sobon
4391f3846d
Adding HSplitCells into the area package. 2019-04-28 20:14:26 -04:00
Jakub Sobon
f7cb7e8b8f
Adjusting width of the text input demo. 2019-04-27 03:17:17 -04:00
Jakub Sobon
eacd178c7e
Merge pull request #189 from mum4k/text-input
Implementing text input field widget.
2019-04-27 02:58:23 -04:00
Jakub Sobon
3b7ae3e319
Adding text input field to the main demo. 2019-04-27 02:50:13 -04:00
Jakub Sobon
e1fc3d17e7
Adding textinput demo to the README. 2019-04-27 02:10:03 -04:00
Jakub Sobon
d105df4413
Refactoring the Draw method for readability. 2019-04-27 01:58:37 -04:00
Jakub Sobon
304c59f211
Mouse support for the text input field. 2019-04-27 01:45:15 -04:00
Jakub Sobon
c25580c335
Updating CHANGELOG. 2019-04-25 23:46:36 -04:00
Jakub Sobon
886f970586
Completing test coverage and most of the functionality.
Mouse support is outstanding.
2019-04-25 23:44:14 -04:00
Jakub Sobon
1df5298809
Test coverage for basic functionality of the text input field.
Tests without any input text for now.
2019-04-24 23:44:44 -04:00
Jakub Sobon
88d4632adf
Correctly handle setting cells to zero values. 2019-04-24 22:58:00 -04:00
Jakub Sobon
c2f5326954
Polishing the editor code.
Some helper functions and better comments.
2019-04-22 23:46:36 -04:00
Jakub Sobon
22c89bc2a7
Finishing test coverage for the field editor. 2019-04-22 21:44:00 -04:00
Jakub Sobon
32c9c724f2
Enhancing the editor to correctly handle unicode. 2019-04-21 23:58:35 -04:00
Jakub Sobon
e49a4438b1
Fixing lint issues. 2019-04-20 17:37:45 -04:00
Jakub Sobon
c0c9727c80
Working proof-of-concept of the textinput field. 2019-04-20 17:33:23 -04:00
Jakub Sobon
bda6223690
Don't split keyboard shortcuts.
It makes it hard to recognize when a shortcut is pressed and when a
single character is pressed. Do what termbox does and identify these
separately.

Obsoletes #20.
2019-04-20 17:10:59 -04:00
Jakub Sobon
23c4ced3b0
Function that splits canvas to parts for label and text input. 2019-04-20 00:50:46 -04:00
Jakub Sobon
f8fddfcef2
Function that splits area after a number of cells. 2019-04-20 00:45:05 -04:00
Jakub Sobon
da70101c28 Merge branch 'devel' into text-input 2019-04-19 00:03:15 -04:00
Jakub Sobon
afe70553e5 Merge branch 'devel' into text-input 2019-04-18 23:57:35 -04:00
Jakub Sobon
c890f0be5f
Editor can delete runes before the cursor. 2019-04-18 23:57:24 -04:00
Jakub Sobon
2f1d16bbea
Merge pull request #186 from mum4k/go1.10
Advancing to Go1.10.
2019-04-18 23:04:27 -04:00
Jakub Sobon
5dd1aff803
Advancing to Go1.10.
- switching to math.Round and deleting out clone.
- switching all bytes.Buffer instances to strings.Builder.
2019-04-18 22:55:05 -04:00
Jakub Sobon
544632f1e9
Merge pull request #185 from slok/linechart-no-values
Allow empty values on line chart
2019-04-18 14:45:14 -04:00
Xabier Larrakoetxea
53abc10da3
Remove not required constants from linechart minMax wrapper
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-04-18 20:33:53 +02:00
Xabier Larrakoetxea
2ae5ca1dcb
Simplify MinMax result float checks on test
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-04-18 20:32:30 +02:00
Jakub Sobon
72989e7e39
Editor: support for insertion and scrolling. 2019-04-17 23:59:33 -04:00
Xabier Larrakoetxea
b54694ed12
LineChart defaults to 0 mix and max when these are NaN
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-04-17 13:42:05 +02:00
Xabier Larrakoetxea
9b25e35172
Make MinMax return NaN when all values are NaN
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-04-17 13:40:32 +02:00
Xabier Larrakoetxea
6cf2caf0b6
Update changelog
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-04-14 10:23:12 +02:00
Xabier Larrakoetxea
42c2731286
Allow 'no values' on linechart represented by NaN float64 that will be displayed as empty cells
Signed-off-by: Xabier Larrakoetxea <slok69@gmail.com>
2019-04-14 10:16:44 +02:00
Jakub Sobon
b33c3d2eec
Logic that returns number of cells before and after. 2019-04-10 23:42:49 -04:00
Jakub Sobon
beb37775b8
Intermediate commit. 2019-04-10 00:09:46 -04:00
Jakub Sobon
2e7d295af7
Planning out the editing algorithm. 2019-04-08 23:32:00 -04:00
Jakub Sobon
2cfaf25b9b
Initial functionality and tests for the field editor. 2019-04-07 23:31:41 -04:00
Jakub Sobon
b031be6046
Adding a type that holds data in the text input field. 2019-04-07 22:37:28 -04:00
Jakub Sobon
76c4fc0ec5
Merge pull request #182 from mum4k/grid-options
Allow options on intermediate containers in the grid.
2019-04-07 17:08:19 -04:00
Jakub Sobon
d31b767d5d
Allow options on intermediate containers in the grid.
Fixes #181.
2019-04-07 16:58:18 -04:00
Jakub Sobon
bf72b5ddc2
Skeleton of the TextInput widget. 2019-04-07 00:41:09 -04:00
Jakub Sobon
ea2e0b7855
Merge pull request #180 from mum4k/sd-capacity
SegmentDisplay now reports its capacity.
2019-04-07 00:05:23 -04:00
Jakub Sobon
2de4a9a865
SegmentDisplay now reports its capacity. 2019-04-06 23:57:22 -04:00
Jakub Sobon
9543219b48
Merge pull request #179 from mum4k/draw-metadata
Provide metadata to widgets when drawing.
2019-04-03 23:26:27 -04:00
Jakub Sobon
10d4a55348
Provide metadata to widgets when drawing. 2019-04-03 23:13:18 -04:00
Jakub Sobon
a9515f2721
Switching termdashdemo back to grid layout. 2019-03-30 03:00:41 -04:00
Jakub Sobon
4237512047
Merge pull request #177 from mum4k/release-0-8-0
Release v0.8.0
v0.8.0
2019-03-30 02:35:15 -04:00
Jakub Sobon
d5fdc1faae
Updating the CHANGELOG. 2019-03-30 02:24:37 -04:00
Jakub Sobon
bf6b61a7ce
Merge pull request #176 from mum4k/dynamic-layout
Container now supports dynamic layout changes.
2019-03-30 02:12:29 -04:00
Jakub Sobon
bfb092622b
Adding recording of dynamic layout changes. 2019-03-30 01:55:53 -04:00