Skip to content

Comments

Add kill and relaunch feature#21

Open
mw98 wants to merge 4 commits intongreenstein:masterfrom
mw98:feature-kill-and-relaunch
Open

Add kill and relaunch feature#21
mw98 wants to merge 4 commits intongreenstein:masterfrom
mw98:feature-kill-and-relaunch

Conversation

@mw98
Copy link

@mw98 mw98 commented Nov 18, 2021

Just came across this workflow on Alfred's forum and I love how well thought out it is! Wanted to make some contributions:

  1. Added a kill and relaunch feature in response to this comment on the forum.
    • Feature triggered by shift+return
  2. Changed the output format from XML to JSON using the built-in json library.
    • Unfortunately this means dropping support for Alfred 2, but using JSON seems necessary for implementing this feature.
    • Unlike the JSON format, the XML format does not allow for item-specific workflow variables. Instead, it only seems to support one global variable per output.
      • While Alfred docs indicate that it should be able to support multiple variables, this seems to be broken, at least in v4.6.
      • It's unlikely to ever be fixed as the XML format has been deprecated.

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

Successfully merging this pull request may close these issues.

1 participant