magmax / python-inquirer

A collection of common interactive command line user interfaces, based on Inquirer.js (https://github.com/SBoudrias/Inquirer.js/)
MIT License
992 stars 98 forks source link

Clear current selection formatting when submitted #534

Closed gaardhus closed 2 months ago

gaardhus commented 6 months ago

Currently, when ie. a checkbox is submitted, the current line selection formatting persists:

image

I would suggest clearing this part of the formatting after submission, ie:

image

Let me know if you agree and want me to make a PR with a suggested implementation, currently what I have done to achieve the above is:

https://github.com/magmax/python-inquirer/compare/main...gaardhus:python-inquirer:main

Cube707 commented 6 months ago

this makes sense and would be a good addition. Feel free to work on it and open a PR

I am not sure about this, but it would be worth checking if only the single line can be updated easily instead of reprinting the whole thing.

Cube707 commented 2 months ago

closing this due to no activity, feel free to reopen if you want to pick it back up