Following situation:
I have written a bash script to provide me a list of text suggestions
Each text has an abbreviation
When typing the abbreviation, I want the script filter to suggest the full text (basically setting the suggestion's autocomplete to "${query}${suggestion}")
This way, I can build a sentence quickly, from multiple text suggestions
My problem is, that when I type text for which there is no suggestion, and I press enter, the workflow step sends an empty string to the next step because it thinks my selection is empty. How can I make the script filter use the entire input field content as output, if no suggestion was selected?
I have multiple problems
I know I can make the text itself into a suggestion, but that is slow (the script has to run each time)
I have to run the script each time anyway, since I need to set "${query}${suggestion}" as autocomplete, or otherwise it will replace the entire content of the input field
Can I make the script filter pass the entire input field value, if no selection matches or my typing is too fast for the script to finish?
I would even prefer a solution with "Alfred filters results"
Thanks!