philj56 / tofi

Tiny dynamic menu for Wayland
MIT License
837 stars 35 forks source link

Q: How do I get information from tofi? #168

Open Ahwxorg opened 3 months ago

Ahwxorg commented 3 months ago

I am building a script and would like to ask the user for something, that I can process in the backend. Something like msg="$(tofi --prompt-text 'Enter commit message for version control' --fuzzy-match true)" to let me then use $msg for something else in the script. Is this possible with tofi?

Ahwxorg commented 3 months ago

It would be even more ideal if I can do something like rofi drun mode, show all outputs from something like this: find "$HOME/Notes" -follow | grep -E '.md$' | tofi, then, when I enter something into tofi that doesn't exist, still return that, otherwise fuzzy-find close to what I am tying.

Just making this issue because someone might be able to help :)