CHANGELOG¶
Notable changes are documented in this file.
0.3.4 (28/06/22)¶
0.3.3 (04/02/2022)¶
Fixed windows filepath completion #32
0.3.2 (28/01/2022)¶
Added exact match option for fuzzy prompt #34
0.3.1 (13/12/2021)¶
Fixed¶
Fixed InvalidArgument raised for callable default
Added¶
-
Built for receiving number input
Supports decimal
Supports negative
Non number input is disabled
Supports thresholds
async support #30
0.3.0 (12/10/2021)¶
New Documentation: inquirerpy.readthedocs.io
Added¶
~~Added optional spinner to display while loading choices for list prompts~~
Added parameter
borderfor list prompts to display a border around the choicesAdded parameter
long_instructionto display longer instructions such as keybinding instructions at the bottom #7Added parameter
expand_helpforexpandprompt to customise the help message and expansion keyhelp_msgparameter is deprecated and should useexpand_help
Added alternate way of creating choices. Introduced a new class
Choiceas an alternate option for dictionary choiceAdded
ExpandChoiceforexpandprompt as well
Added
raise_keyboard_interruptoption to all prompt initialisation optionsThe
raise_keyboard_interruptin execute function will be deprecated in future releases
Added parameter
mandatoryandmandatory_messageto indicate if a prompt can be skippedAdded ability to skip prompt #10
Fixed¶
Changed¶
Changed fuzzy prompt
borderdefault toFalseIt was
Trueby default, changing this to keep it consistent with other prompts
Changed style
fuzzy_infoandinstructiondefault color to#abb2bfAutomatic spacing added for checkbox prompt, if you have customised the prompt using
enabled_symbolanddisabled_symbol, you may need to remove the extra space you have previously added. The change here is to align with other prompts current behaviorCheckbox prompt default value for
enabled_symbolanddisabled_symbolis changed from hex symbol to circle #22Behavior of
raise_keyboard_interruptis changed. Checkout the documentation for more info
0.2.4 (12/08/2021)¶
Fixed¶
Fixed fuzzy prompt choices are centered
0.2.3 (04/08/2021)¶
Added¶
Added option
wrap_linesto all prompts to configure line wrappingAdded option
instructionfor non-list type prompts. This is already supported in all list type prompts previouslyAdded option
confirm_letterandreject_letterto confirm prompts. Use the 2 value to change from the default “y/n”For updating the result value, please use the
transformerparameter. By default, no matter what confirm_letter or reject letter you set, it will always be Yes or No
from InquirerPy import inquirer
inquirer.confirm(
message="Proceed?",
default=True,
confirm_letter="s",
reject_letter="n",
transformer=lambda result: "SIm" if result else "Não",
).execute()
Fixed¶
Line wrapping #11
Changed¶
Answered question prefix spacing now depends on
amarkparameter instead ofqmarkIf you previously disable the
qmarkby setting it to empty string, please also setamarkto empty string
0.2.2 (03/07/2021)¶
N/A
0.2.1 (03/07/2021)¶
Added¶
Added option to disable cycle behavior in list type prompts #9
Added parameter
amark. You can use this value to change theqmarkafter the question is answeredAdded some more style customisation option
answermark: Used to change the color and style ofamarkanswered_question: Used to change the color and style ofquestionmessage once the question is answered
0.2.0 (01/05/2021)¶
Added¶
Changed¶
Spacing in
checkboxpromptenabled_symbolanddisabled_symbolIf you have customised these values, add an empty space at the end
Spacing in
expandpromptseparatorIf you have customised these values, add an empty space at the end
Spacing in
rawlistpromptseparatorIf you have customised these values, add an empty space at the end
# v0.1.1
regions = inquirer.checkbox(
message="Select regions:",
choices=["us-east-1", "us-east-2"],
enabled_symbol=">",
disabled_symbol="<"
).execute()
# v0.2.0
regions = inquirer.checkbox(
message="Select regions:",
choices=["us-east-1", "us-east-2"],
enabled_symbol="> ", # add a space
disabled_symbol="< " # add a space
).execute()
0.1.1 (03/04/2021)¶
Fixed¶
Height and visual glitch on smaller data sets for fuzzy prompt