whaaaaat icon indicating copy to clipboard operation
whaaaaat copied to clipboard

Modify support

Open rog555 opened this issue 8 years ago • 1 comments

would be great to have more control within the event loop of updating kwargs sent to prompt_toolkit (eg allowing completer to be defined) and for access to answers

this PR allows this via modifyKwargs and modifyAnswers parameters which take function as value. It could be possible to use filter to achieve same affect as modifyAnswers, but this might be less of a hack

documentation and tests included, however although it works - i cant get test to fully work with completer (involves TAB key) - but it does actually work :-)

hopefully this is of interest

rog555 avatar Nov 30 '17 00:11 rog555

Hi Roger, thank you for your PR. I do not really see how you need a new TAB control. I hope you understand that I can not accept a PR that breaks the tests.

markfink avatar Dec 04 '17 06:12 markfink