Notable changes are documented in this file.
- Fixed windows filepath completion #32
- Added exact match option for fuzzy prompt #34
- Fixed InvalidArgument raised for callable default
- number prompt
- Built for receiving number input
- Supports decimal
- Supports negative
- Non number input is disabled
- Supports thresholds
- async support #30
New Documentation: inquirerpy.readthedocs.io
Added optional spinner to display while loading choices for list prompts- Added parameter
borderfor list prompts to display a border around the choices - Added parameter
long_instructionto display longer instructions such as keybinding instructions at the bottom #7 - Added 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 choice- Added
ExpandChoiceforexpandprompt as well
- Added
- Added
raise_keyboard_interruptoption to all prompt initialisation options- The
raise_keyboard_interruptin execute function will be deprecated in future releases
- The
- Added parameter
mandatoryandmandatory_messageto indicate if a prompt can be skipped - Added ability to skip prompt #10
- Fixed fuzzy prompt cannot type space #20
- Fixed multiselect malfunction #25
- Fixed fuzzy prompt toggle_all #14
- Changed fuzzy prompt
borderdefault toFalse- It was
Trueby default, changing this to keep it consistent with other prompts
- It was
- Changed style
fuzzy_infoandinstructiondefault color to#abb2bf - Automatic 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 behavior - Checkbox prompt default value for
enabled_symbolanddisabled_symbolis changed from hex symbol to circle #22 - Behavior of
raise_keyboard_interruptis changed. Checkout the documentation for more info
- Fixed fuzzy prompt choices are centered
- Added option
wrap_linesto all prompts to configure line wrapping - Added option
instructionfor non-list type prompts. This is already supported in all list type prompts previously - Added 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
- For updating the result value, please use the
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()- Line wrapping #11
- Answered question prefix spacing now depends on
amarkparameter instead ofqmark- If you previously disable the
qmarkby setting it to empty string, please also setamarkto empty string
- If you previously disable the
N/A
- 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 answered - Added 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
- Defaults for multi-select list #2
- Disable qmark #3
- Configure
marker_pl- This value exists in all list type prompts which by default is an empty space This space is replaced when the choice is selected in multiselect scenario
- Spacing in
checkboxpromptenabled_symbolanddisabled_symbol- If you have customised these values, add an empty space at the end
- Spacing in
expandpromptseparator- If you have customised these values, add an empty space at the end
- Spacing in
rawlistpromptseparator- If 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()- Height and visual glitch on smaller data sets for fuzzy prompt