Commit Graph

182 Commits

Author SHA1 Message Date
Anna e551d19f95
fix(expand): clear line before printing option 2023-09-10 16:36:21 -04:00
Lutetium-Vanadium c454826c25 Fix clippy warnings and publish 0.5.0 2022-09-01 18:49:34 +05:30
Lutetium-Vanadium e27b63b5cf Fix msrv issue 2022-09-01 18:25:07 +05:30
Lutetium-Vanadium 52fa177a13 Update deps and fix doc compilation issues 2022-09-01 18:24:28 +05:30
Lutetium-Vanadium dc98a89e3e Use winsplit to split editor commands on windows 2022-09-01 17:54:30 +05:30
Lutetium-Vanadium 4228c51459
Merge pull request #14 from kellygravelyn/split-editor-command
Use shell-words to split editor command
2022-09-01 17:39:45 +05:30
Lutetium-Vanadium 2e5ef595b1 Add gif, update macro implementation and fix few errors 2022-09-01 17:29:03 +05:30
NovaliX-Dev 09c9a0b7fc added snapshots 2022-09-01 13:01:29 +02:00
NovaliX-Dev 7a413c3021 small name fix 2022-09-01 13:01:12 +02:00
NovaliX-Dev 684e71d06c moved conversion trait from OrderSelectItem to ListItem 2022-09-01 13:00:14 +02:00
NovaliX-Dev 378f506bbb Updated index so they increment from 1 instead of 0 2022-09-01 08:06:53 +02:00
NovaliX-Dev f3581d900f Fix the check example 2022-08-31 07:30:38 +02:00
NovaliX-Dev b51b074dd4 updated some docs 2022-08-30 17:14:18 +02:00
NovaliX-Dev 6c177bc997 Updated item name to be more explicit 2022-08-30 17:13:49 +02:00
NovaliX-Dev 79825ad342 Updated names to more concrete one in test_filter 2022-08-30 17:05:11 +02:00
NovaliX-Dev 2c30a53dda Removed unnecessary documentation 2022-08-30 17:02:48 +02:00
NovaliX-Dev 620aee1872 removed unused implementation on ListItem 2022-08-30 16:59:58 +02:00
NovaliX-Dev 4e02352f95 made integration tests better 2022-08-30 16:58:44 +02:00
NovaliX-Dev b49b93eb9b Fix validate test always failing because validation failed 2022-08-30 16:43:47 +02:00
NovaliX-Dev 4faaee44dc added a more concrete example on when function 2022-08-30 13:34:52 +02:00
NovaliX-Dev 36596860e6 implemented implementation tests 2022-08-29 08:27:00 +02:00
NovaliX-Dev 743c266f18 Put the filter, validate and transform functions implementation just before build 2022-08-28 15:20:12 +02:00
NovaliX-Dev abf651deb5 Updated argument type for filter, validate and transform function as well as for example 2022-08-28 15:17:33 +02:00
NovaliX 35bd297b0a
Merge branch 'Lutetium-Vanadium:master' into master 2022-08-28 12:44:44 +00:00
Lutetium-Vanadium 8da5afefd3 Make `ChoiceList` more generic as `SelectList` 2022-08-28 18:11:46 +05:30
NovaliX-Dev 74558144c3 Added comments to the dots that were making the doctests fails 2022-08-27 17:15:17 +02:00
NovaliX-Dev b300600202 Updated docs and added more concrete examples 2022-08-27 17:14:25 +02:00
NovaliX-Dev 78369365f7 put insta tests backs 2022-08-27 16:59:34 +02:00
NovaliX-Dev 7bd6d819f1 Updated choice input type as separators aren't allowed 2022-08-27 16:59:00 +02:00
NovaliX-Dev b4033ae0f1 Updated key handling algorithm and key docs 2022-08-27 16:37:38 +02:00
NovaliX-Dev e303a942f7 Optimized index display 2022-08-27 16:35:47 +02:00
NovaliX-Dev 1b03b980da Updated docs about choices type 2022-08-27 16:15:51 +02:00
Lutetium-Vanadium ebe87f88bc update the way indices are showin in `RawSelect` 2022-08-27 18:37:09 +05:30
Lutetium-Vanadium 8fa9485876 Show a message when the prompt is too big for the screen
Earlier, when the prompt was the large, the program would panic and
crash. Now, it displays a message instead.

The ideal solution would be to be able to render things off-screen as
well, however this has a lot of scope for bugs and adds a lot of
complexity to the backends. As such, unless there are any other future
issues regarding this problem, this solution seems like a good enough
tradeoff.

Fixes #17
2022-08-27 16:47:48 +05:30
Lutetium-Vanadium 550ee1dfdf Properly handle unicode rendering
Earlier, the length of the string in characters was used in a few places
instead of the display length which would cause issues when non 1 width
characters were used.

Fixes #18 and #19
2022-08-21 17:59:17 +05:30
NovaliX cb0293d460 added automatic testing 2022-08-15 16:25:29 +02:00
NovaliX ec9e97db7b Added index formatting 2022-08-14 23:17:53 +02:00
NovaliX 2eed5072cb Added example 2022-08-14 00:40:20 +02:00
NovaliX edc956b216 Merge branch 'master' of https://github.com/NovaliX-Dev/requestty 2022-08-14 00:35:39 +02:00
NovaliX e45e139aa7 minor fixes and reformatting 2022-08-14 00:35:25 +02:00
NovaliX 4c4908fddb minor fixe 2022-08-14 00:34:53 +02:00
NovaliX be019a65e8 minor fixe 2022-08-14 00:33:36 +02:00
NovaliX 44738898f2 Added docs 2022-08-14 00:19:17 +02:00
NovaliX 645f368762 Implemented OrderSelect 2022-08-14 00:06:01 +02:00
Kelly Gravelyn 5032b46fb7 Use shell-words to split editor command 2022-07-12 12:33:05 -07:00
Lutetium-Vanadium 10bd277f3d Update README and fix msrv 2022-07-07 14:17:59 +05:30
Lutetium-Vanadium e3d7c9cbdb Remove `dbg!` and bump patch
Fixes issue #12
2022-07-07 14:06:45 +05:30
Lutetium-Vanadium d704892479 fixed doc errors 2022-06-04 18:48:06 +05:30
Lutetium-Vanadium d58f4903c0 Allow setting custom symbol sets and prepare for 0.4.0 2022-06-04 13:36:39 +05:30
Lutetium-Vanadium eeb18799ae added check for zero sized terminals
Before, zero sized terminals would cause panic due to division by zero.
Now it returns an error instead
2022-05-19 18:04:44 +05:30