bcbnz / python-rofi

A Python module to make simple GUIs with Rofi
MIT License
111 stars 20 forks source link

Allow arbitrary input while suggesting options #8

Open hugoShaka opened 6 years ago

hugoShaka commented 6 years ago

The select() method returns -1 if the user input is not in options. Currently it does not permit to recover the original input and does not allow to use rofi as a free text prompt while providing input suggestions (I may be wrong, if so please correct me :grin: ).

It may be useful to allow arbitrary user inputs while providing optional default values. I thought of 2 ways of doing it :

I can submit a PR if you tell me what way suits you.

PS : thanks for the module, it made my day.

Vresod commented 4 years ago

If you're still active, could you tell me if/how you did this? my current project requires exactly this