sepulchra Posted July 31, 2017 Share Posted July 31, 2017 Is there a way to use the snippet workflow trigger mentioned here: https://www.alfredapp.com/help/workflows/triggers/snippet/ to fill multiple {query} fields with different text? I would like to be able to be prompted to fill multiple "fill-in" fields with different text. Is that possible? Link to comment
deanishe Posted July 31, 2017 Share Posted July 31, 2017 You need to connect a series of Keyword inputs to your Snippet Trigger, saving the input from each to a workflow variable, then calling the next. Then in your Paste template, you can use: Dear {var:NAME}, Thank you for your {var:WHAT}, which we received on {var:DATE}. It's nowhere near as simple, or convenient, as a "form" fill-in in TextExpander or Typinator, but it is possible. And with Alfred you can add additional logic between the inputs if you like. Link to comment
Vero Posted July 31, 2017 Share Posted July 31, 2017 @sepulchra Here's an example workflow I created where you can chain inputs (three list filters in this case): https://www.dropbox.com/s/eqq91b8tyxom5t1/Chaining inputs for a Snippet Trigger.alfredworkflow?dl=0 Each item doesn't have to be a List Filter, as you can combine list filters, free text, scripts, etc. You'll find examples of each of these in the Getting Started > Snippet Triggers built-in workflow, and some more info here: https://www.alfredapp.com/help/workflows/triggers/snippet/snippet-triggers-with-dynamic-inputs/ Cheers, Vero Link to comment
sepulchra Posted July 31, 2017 Author Share Posted July 31, 2017 and one more question -- I use ISO dates all of the time, is it possible to do date math with dynamic placeholders like this: {date:yyyy-MM-dd+1d} I can't get that to work for me. Link to comment
deanishe Posted July 31, 2017 Share Posted July 31, 2017 (edited) You have to use correct format: {date +1d :yyyy-MM-dd} Edited July 31, 2017 by deanishe Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now