Commit Graph

32 Commits

Author SHA1 Message Date
Lutetium-Vanadium
5476f21831 Final changes for v0.2.1 2021-12-30 16:46:12 +08:00
Lutetium-Vanadium
e322486209 Fix #3
The `set_at` function for `requestty_ui::widgets::Select` adjusts the
page bounds if required. However, it wouldn't check if the component has
never been rendered (and so heights never calculated) and thus cause a
panic if called before ever being rendered. Now `set_at` can be called
at any point.
2021-10-25 19:01:30 +05:30
Lutetium-Vanadium
962cb819a8 Fix #2
`Widget::cursor_pos` used to return the position relative to the root
widget component. However, components such as `Input` would adjust the
layout to include the `Prompt` and then calculate `cursor_pos`. Since
the `cursor_pos` returned was relative to the end of the `Prompt`, if
the `Prompt` was more than one line, it would calculate the wrong
location.

This commit now makes `cursor_pos` return the position relative to the
screen.
2021-10-10 20:02:12 +05:30
Lutetium-Vanadium
d464999c38 Fix small documenation issues 2021-07-17 18:36:30 +05:30
Lutetium-Vanadium
5399e0e64e Prepare for publish 2021-07-17 18:18:57 +05:30
Lutetium-Vanadium
6829f10496 Workaround trybuild ignoring optional dependencies as features 2021-07-16 20:34:23 +05:30
Lutetium-Vanadium
417f0b723d Added macros features 2021-07-16 19:55:41 +05:30
Lutetium-Vanadium
a2abf6b335 Add more examples 2021-07-16 10:48:48 +05:30
Lutetium-Vanadium
732dc1e9d9 rename to requestty 2021-07-15 17:05:17 +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
de232c7404 Fix ci errors 2021-07-08 18:37:02 +05:30
Lutetium-Vanadium
89bfa73538 Update dependencies 2021-06-30 17:42:08 +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
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
37489944a7 added auto_complete for input 2021-05-29 14:52:37 +05:30
Lutetium-Vanadium
20b2c31632 rename to discourse 2021-05-27 21:15:50 +05:30
Lutetium-Vanadium
6dd7007033 remove async 2021-05-25 17:27:51 +05:30
Lutetium-Vanadium
40689dd0ae added examples 2021-05-24 19:49:56 +05:30
Lutetium-Vanadium
0edf503811 fix msrv to include async features 2021-05-12 14:22:51 +05:30
Lutetium-Vanadium
2cc107cffe added questions and prompt_module macros 2021-05-11 18:18:59 +05:30
Lutetium-Vanadium
3835a78f19 move ui to inquisition-ui 2021-05-01 17:42:39 +05:30
Lutetium-Vanadium
3657064185 Remove curses as a possible option for a backend
Curses requires to take control of the full screen. Unlike crossterm or
termion, it doesn't provide tools to only make interactive prompts in
the current screen
2021-04-30 19:19:00 +05:30
Lutetium-Vanadium
176a22b9c0 add termion backend 2021-04-29 20:20:54 +05:30
Lutetium-Vanadium
16f8e3ad52 Extract crossterm into a backend 2021-04-29 13:42:28 +05:30
Lutetium-Vanadium
ad569fd25f async implementation 2021-04-24 14:02:21 +05:30
Lutetium-Vanadium
62aad219ab added ahash under feature flag 2021-04-20 20:46:30 +05:30
Lutetium-Vanadium
cf98ff42ee improved answers and fixed some FIXMEs 2021-04-19 19:04:26 +05:30
Lutetium-Vanadium
818e2b54ee first question impl
There are a lot of things to do, but everything renders well
2021-04-10 17:27:14 +05:30
Lutetium-Vanadium
0866cfb239 Generic ui rendering crate
It provides generic ui elements which can be used to compose the more
complex prompts
2021-04-10 10:56:52 +05:30
Lutetium-Vanadium
0fca4ccc15 initial commit 2021-03-27 18:32:42 +05:30