-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Support setting Alfred variables with alfy.output #43
Comments
I didn't know about this, but would definitely be useful. A pull request would be lovely :D |
Cool! Could you maybe add support for the "rerun" parameter as well? See: https://www.alfredapp.com/help/workflows/inputs/script-filter/ {
"rerun" : 1,
"items": [
...
]
} |
How is this coming along? Would be really useful. :) |
Agreed, would be really useful! |
For anyone that wants to work on this, see the discussion and feedback in #44. |
@issuehunt has funded $60.00 to this issue.
|
If anyone wants to work on this, see the initial attempt in and the feedback given there: #122 (comment) |
ATM the workaround to pass multiple variables to the workflow that I found is to pass an array as {
title: `${key}`,
subtitle: `${summary}`,
arg: [jiraUrl, key, summary, kebabCaseSummary], // hack to pass variables to the workflow
... Then you split the output into variables like so: Example: https://github.com/hoto/alfred-my-jira-tickets/blob/master/mapper.js#L14 |
You can set variables in Alfred by writing to stdout using a special JSON format. It would be handy if
alfy.output
supported this, perhaps in a specialvariables
key:Or as a second argument:
I'm happy to write a pull request if this seems worthwhile.
JSON Format
The format for emitting variables isn't complicated, but life would be easier if Alfy handled it.
Emit a string and set variables
Emit multiple items and set variables
Note, you can access Alfred variables through the environment:
IssueHunt Summary
Backers (Total: $60.00)
Submitted pull Requests
Become a backer now!
Or submit a pull request to get the deposits!
Tips
The text was updated successfully, but these errors were encountered: