This is a huge re-write of the existing library. It removes a lot of the "magic" that was happening in pre-1.0.0 releases and opts instead for increased clarity and a better IDE experience. It also catches the library up to speed with the latest Alfred features.
For a complete upgrade guide, please visit https://www.alfredphpworkflows.com/docs/upgrading
- Bump minimum PHP version to 7.4
result
method renamed toitem
(docs)mod
method refactored to accept less arguments and increase clarity (docs)largetype
helper function renamed tolargeType
- Argument order for the
text
method has been reversed (docs) fileiconIcon
method renamed toiconForFilePath
(docs)filetypeIcon
method renamed toiconForFileType
(docs)type
method refactored to helper methods (docs)output
method now echoes JSON by default (docs)- Sorting is now a method off of the
items
method, and no longer returns anitem
(is no longer chainable) . (docs) - Filtering is now a method off of the
items
method, and no longer returns anitem
(is no longer chainable) . (docs)
Full documentation for all of these new features can be found at alfredphpworkflows.com.
- Ability to use combo modifier keys (e.g.
shift
+cmd
) - Ability to add an icon, arguments, and variables to a modifier key
- Ability to specify match text for items
- Ability to specify Universal Actions for items
- Ability to add variables by associative array
- Ability to read and write from a cache
- Ability to read and write data
- Item
invalid
helper method (as opposed to writingvalid(false)
) - Logger to aid in debugging
argument
andarguments
methods to baseWorkflow
class to easily retrieve workflow arguments- Ability to re-run workflow automatically after an interval
skipKnowledge
method- Ability to easily retrieve Alfred-specific environment variables
- Ability to easily retrieve environment variables