An Alfred 4 workflow for generating lorem ipsum dummy text using joshtronic/php-loremipsum.
Alfred Powerpack is required to use workflows.
PHP is no longer supported out of the box since MacOS Monterey. Therefore you need to install PHP 7 or above, for example via Homebrew.
- Download the workflow.
- Double click the
.alfredworkflow
file to install.
- Use the keyword
lip
to trigger the workflow. - Select format you want to generate (characters, words, sentences, or paragraphs).
- (Optional) Add options to the format you would like to generate.
- Press
enter
to copy to clipboard and paste into the forefront application.
There are multiple options to enhance the output.
Option | Usage | Description |
---|---|---|
length | lip 5 |
Default: 1 (10 for characters) Generates 5 instances of the format you have chosen |
tags | lip 5 p |
Default: false Generates 5 instances of the format you have chosen and wraps each instance in a p tag. You can wrap an instance in multiple tags by comma separating the tags like lip 5 div,p . Use false or 0 if you want to skip this option, but would like the next option. |
array | lip 5 p true |
Default: false Generates 5 instances of the format you have chosen, wraps each instance in a p tag and outputs it as a PHP array with a value for each instance. |
- The joshtronic/php-loremipsum copy in this project is slightly changed. The
output
method is made public to be able to use the tags and array options with characters as well.
If there are enhancements that I would like to add, then I will add them as issues in the repository.
Please feel free to give feedback, share ideas or report bugs. Email me at marc [at] mghollander [dot] nl or add an issue.
I work on this extension in my free time, but you can support me by making a donation (or buy me a beer) via https://paypal.me/mghollander.
- Forked from alexchantastic/alfred-lipsum-workflow
- Thanks to joshtronic/php-loremipsum