prompt-toolkit / python-prompt-toolkit

Library for building powerful interactive command line applications in Python
https://python-prompt-toolkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9.28k stars 715 forks source link

Pass current prompt value to bottom toolbar callback #1699

Open SeanDS opened 1 year ago

SeanDS commented 1 year ago

I'd like to display the result of parsing a date to the user in real time as they type it. It would be nice to be able to do this using the bottom_toolbar parameter to prompt, but as far as I can tell the callable specified in bottom_toolbar is not passed the current value. Is it possible to pass the current value entered into the prompt to some sort of callback that can update the screen?