Commit Graph

105 Commits

Author SHA1 Message Date
Lutetium-Vanadium
e57e487083 Fixed cell_fg being set as bg 2021-07-15 15:13:54 +05:30
Lutetium-Vanadium
c3f3447e4e Fix broken docs and allow compilation with no features 2021-07-14 21:18:36 +05:30
Lutetium-Vanadium
1f271ec2ef Fix ci errors 2021-07-14 20:11:30 +05:30
Lutetium-Vanadium
b8b3b15165 Split some large files 2021-07-14 19:50:09 +05:30
Lutetium-Vanadium
f4b5f017c6 Add new struct instead of generic ExpandItem 2021-07-14 19:13:53 +05:30
Lutetium-Vanadium
e25661e8fd Added height limit for demos and fixed doc(cfg) 2021-07-14 19:08:31 +05:30
Lutetium-Vanadium
6503d0c5ee Added demo gifs and doc(cfg) 2021-07-14 18:31:19 +05:30
Lutetium-Vanadium
f5067a0111 Added docs for discourse 2021-07-13 20:04:21 +05:30
Lutetium-Vanadium
d1c1272a1a remove win from termion tests and split --include-ignored 2021-07-08 18:59:19 +05:30
Lutetium-Vanadium
de232c7404 Fix ci errors 2021-07-08 18:37:02 +05:30
Lutetium-Vanadium
9f84b7ff78 Update msrv version and improve ci 2021-07-08 17:37:30 +05:30
Lutetium-Vanadium
0e92247924 Separate ui::events::Events to CrosstermEvents and TermionEvents
This also allows discourse-ui to be built with all features which is
good for documentation building
2021-07-08 17:01:38 +05:30
Lutetium-Vanadium
95f5049b12 Added shorthand for local variable in proc-macro and docs for the macros 2021-07-07 18:41:07 +05:30
Lutetium-Vanadium
a2bf64ad4a Rename Checkbox to MultiSelect 2021-07-07 16:13:38 +05:30
Lutetium-Vanadium
6d731ba64a Combined ui::widget and ui::widgets modules 2021-07-07 14:15:54 +05:30
Lutetium-Vanadium
57fce982bf Added mapping helper to convert ErrorKind to io::Error 2021-07-07 14:11:04 +05:30
Lutetium-Vanadium
7db351a9c8 Fix termion compilation fail and unnecessary map_errs 2021-07-06 16:26:07 +05:30
Lutetium-Vanadium
cf866f1a5e Use io::Result more, and EventIterator trait 2021-07-06 16:14:21 +05:30
Lutetium-Vanadium
4c075bfccb remove ESC to give default answer 2021-07-06 14:12:04 +05:30
Lutetium-Vanadium
a51af24f08 Fixed reverse scrolling in TestBackend 2021-07-06 13:53:04 +05:30
Lutetium-Vanadium
9d47c3f323 fixed tests 2021-07-05 18:49:41 +05:30
Lutetium-Vanadium
e7823138ec Added docs for discourse-ui 2021-07-05 18:41:17 +05:30
Lutetium-Vanadium
89bfa73538 Update dependencies 2021-06-30 17:42:08 +05:30
Lutetium-Vanadium
291d26eeb5 expand: changed unexpand explanation arrow to look nicer 2021-06-30 17:02:02 +05:30
Lutetium-Vanadium
03e3c2234f return Text<String> instead of just String for multiline errors 2021-06-30 16:54:41 +05:30
Lutetium-Vanadium
4e1b4ff473 Allow multiline strings for auto completions in Input 2021-06-30 16:16:09 +05:30
Lutetium-Vanadium
d6e1c94bde added tests for question 2021-06-30 15:57:03 +05:30
Lutetium-Vanadium
7774ef3c29 added tests for raw select 2021-06-28 18:02:32 +05:30
Lutetium-Vanadium
68c5c214f4 added tests for select 2021-06-28 14:14:03 +05:30
Lutetium-Vanadium
9a456c22a3 Fixed issue with PageDown calculation of new at in ui::widgets::Select
The issue resulted in the previous `at` not being shown when looping is
enabled, and the calculated `page_end` (when previous `at` is `page_start`)
is the is the last element.
2021-06-28 14:03:10 +05:30
Lutetium-Vanadium
35a217e95a fix tests with updated plugin trait and smallvec feature 2021-06-27 17:47:30 +05:30
Lutetium-Vanadium
6dbc00bbbd Added smallvec feature for inlining single completions 2021-06-27 17:26:04 +05:30
Lutetium-Vanadium
80e6d993b3 remove unnecessary ahash feature 2021-06-27 16:57:38 +05:30
Lutetium-Vanadium
08353945e5 Make Plugin::ask take self instead of &mut self 2021-06-27 16:51:05 +05:30
Lutetium-Vanadium
893037fbfe added tests for password 2021-06-24 17:05:03 +05:30
Lutetium-Vanadium
43eb1531cd added tests for input 2021-06-24 16:28:28 +05:30
Lutetium-Vanadium
d8905971cd added tests for int & float 2021-06-23 19:27:43 +05:30
Lutetium-Vanadium
bffe9505e6 Fix reversed foreground to use Color::Black if it is Color::Reset 2021-06-23 19:22:54 +05:30
Lutetium-Vanadium
34351e420f added expand tests 2021-06-22 18:14:40 +05:30
Lutetium-Vanadium
9582a69c04 rustfmt 2021-06-22 17:12:12 +05:30
Lutetium-Vanadium
5970c13f89 added tests for confirm 2021-06-21 19:52:47 +05:30
Lutetium-Vanadium
3123937e14 added tests for checkbox
Also made every event type required by generic over any Iterator
2021-06-20 20:46:12 +05:30
Lutetium-Vanadium
08d2e1649b Use central snapshot folder for each package 2021-06-19 14:25:15 +05:30
Lutetium-Vanadium
270b9be936 remove attribute and colour spilling to new lines while printing in TestBackend 2021-06-16 17:57:20 +05:30
Lutetium-Vanadium
1c22cdfd9e improved attribute handling 2021-06-16 17:50:41 +05:30
Lutetium-Vanadium
e60c8794b2 Change snapshot directory to be separate for crossterm and termion 2021-06-16 17:22:45 +05:30
Lutetium-Vanadium
5321c82456 Make TestBackend render everything instead of asserting correct ops
If the same characters are written through 2 writes instead of 1, the
previous version would error. This version however would not, which
makes more sense since what the user sees is the same.

Tests also now use `insta` for snapshots of the view which is more
manageable then having hard-coded values there.
2021-06-15 18:15:38 +05:30
Lutetium-Vanadium
6cf5d589a9 test ui::Input 2021-06-14 18:01:09 +05:30
Lutetium-Vanadium
00119f7a36 make things generic over Iterator instead of taking the Events struct directly 2021-06-14 14:26:46 +05:30
Lutetium-Vanadium
38d3229cb2 rename set_cursor -> move_cursor_to and get_cursor -> get_cursor_pos 2021-06-14 14:15:03 +05:30