Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ahwxorg opened this issue May 19, 2024 · 3 comments
Open

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

Ahwxorg opened this issue May 19, 2024 · 3 comments

Comments

@Ahwxorg
Copy link

Ahwxorg commented May 19, 2024

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
Copy link
Author

Ahwxorg commented May 19, 2024

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 :)

@mashrit
Copy link

mashrit commented Sep 8, 2024

maybe use --require-match, setting it to false will print whatever was in the input field to stdout

@Ahwxorg
Copy link
Author

Ahwxorg commented Sep 8, 2024

I'll try that, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants