Commit Graph

25 Commits

Author SHA1 Message Date
Lutetium-Vanadium
2cc107cffe added questions and prompt_module macros 2021-05-11 18:18:59 +05:30
Lutetium-Vanadium
bf43beabfb rename a few options and put all base builder fns in src/question/mod.rs 2021-05-07 13:49:49 +05:30
Lutetium-Vanadium
3835a78f19 move ui to inquisition-ui 2021-05-01 17:42:39 +05:30
Lutetium-Vanadium
a3ecf3c249 Add more shortcuts, and a generic way to parse them (Movement) 2021-05-01 17:21:18 +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
69ccc2ae2e accept async handlers for filter, validate & transformer 2021-04-24 13:56:34 +05:30
Lutetium-Vanadium
99169f24e7 allow exit handler to not close program 2021-04-22 13:04:16 +05:30
Lutetium-Vanadium
62aad219ab added ahash under feature flag 2021-04-20 20:46:30 +05:30
Lutetium-Vanadium
4148198cb7 Allow support for using custom prompts
Due to [object safety](https://doc.rust-lang.org/reference/items/traits.html#object-safety),
unlike in built prompts, the plugins can only take `&mut self` and be
given a `&mut dyn Write`.
2021-04-20 18:33:03 +05:30
Lutetium-Vanadium
dd4a077bdf allow setting a custom exit handler 2021-04-19 19:04:26 +05:30
Lutetium-Vanadium
cf98ff42ee improved answers and fixed some FIXMEs 2021-04-19 19:04:26 +05:30
Lutetium-Vanadium
43afdee327 provide answers to user functions 2021-04-18 19:31:24 +05:30
Lutetium-Vanadium
2e3d2740bd added validate, filter and transformer 2021-04-16 17:08:52 +05:30
Lutetium-Vanadium
931bc3ec87 added default and postfix for editor 2021-04-12 19:24:32 +05:30
Lutetium-Vanadium
ea6414a8b2 Rawlist set correct input value when list handles key 2021-04-12 14:51:48 +05:30
Lutetium-Vanadium
76b4a78b3e Added pagination and looping can be disabled 2021-04-12 14:49:56 +05:30
Lutetium-Vanadium
c7e4a73a60 Use default for list, rawlist and expand 2021-04-11 20:26:00 +05:30
Lutetium-Vanadium
73b5626158 added question builders and dynamic message & when 2021-04-11 19:57:00 +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
c1aa566d97 use unicode-segmentation instead of char::is_whitespace 2021-04-10 16:54:31 +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